diff options
| author | Richard Purdie <richard@openedhand.com> | 2006-08-27 16:01:33 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2006-08-27 16:01:33 +0000 |
| commit | 93a8d0662ed361c76defe75a5cd84f203fdb1af1 (patch) | |
| tree | 3481256915c4474980290e53c086af8f8389a10e /meta/classes/sanity.bbclass | |
| parent | 37d03b1b00610716b27259a42c8718c8628b2ad3 (diff) | |
| download | poky-93a8d0662ed361c76defe75a5cd84f203fdb1af1.tar.gz | |
classes: Sync with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@651 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/sanity.bbclass')
| -rw-r--r-- | meta/classes/sanity.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index a626162ffb..91ca9865fd 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
| @@ -64,13 +64,14 @@ def check_sanity(e): | |||
| 64 | if "diffstat-native" not in data.getVar('ASSUME_PROVIDED', e.data, True).split(): | 64 | if "diffstat-native" not in data.getVar('ASSUME_PROVIDED', e.data, True).split(): |
| 65 | raise_sanity_error('Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf') | 65 | raise_sanity_error('Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf') |
| 66 | 66 | ||
| 67 | # Check the MACHINE is valid | 67 | # Check that the MACHINE is valid |
| 68 | if not check_conf_exists("conf/machine/${MACHINE}.conf", e.data): | 68 | if not check_conf_exists("conf/machine/${MACHINE}.conf", e.data): |
| 69 | raise_sanity_error('Please set a valid MACHINE in your local.conf') | 69 | raise_sanity_error('Please set a valid MACHINE in your local.conf') |
| 70 | 70 | ||
| 71 | # Check the distro is valid | 71 | # Check that the DISTRO is valid |
| 72 | if not check_conf_exists("conf/distro/${DISTRO}.conf", e.data): | 72 | # need to take into account DISTRO renaming DISTRO |
| 73 | raise_sanity_error('Please set a valid DISTRO in your local.conf') | 73 | if not ( check_conf_exists("conf/distro/${DISTRO}.conf", e.data) or check_conf_exists("conf/distro/include/${DISTRO}.inc", e.data) ): |
| 74 | raise_sanity_error("DISTRO '%s' not found. Please set a valid DISTRO in your local.conf" % data.getVar("DISTRO", e.data, True )) | ||
| 74 | 75 | ||
| 75 | if not check_app_exists("${MAKE}", e.data): | 76 | if not check_app_exists("${MAKE}", e.data): |
| 76 | raise_sanity_error('GNU make missing. Please install GNU make') | 77 | raise_sanity_error('GNU make missing. Please install GNU make') |
