diff options
author | Michael Lauer <mickey@vanille-media.de> | 2006-07-15 09:54:08 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-07-15 09:54:08 +0000 |
commit | 366b84b3732b9bd7463f68ed7402aa608dd8ac7e (patch) | |
tree | fe053b83a9e9bf5da55c234946cc723f2cd7ff95 /classes/sanity.bbclass | |
parent | e3db3e898d593acc7fcfc3f48a356bbe6bd0b6a0 (diff) |
sanity.bbclass: relax the DISTRO check a bit, taking into account that some DISTRO configurations
override DISTRO before sanity.bbclass gets a chance to see it. By definition, in this case $RENAMED_DISTRO
needs to be present in distro/include/ though, so we have a second chance for the test to succeed.
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r-- | classes/sanity.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index a626162ffb..91ca9865fd 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -64,13 +64,14 @@ def check_sanity(e): if "diffstat-native" not in data.getVar('ASSUME_PROVIDED', e.data, True).split(): raise_sanity_error('Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf') - # Check the MACHINE is valid + # Check that the MACHINE is valid if not check_conf_exists("conf/machine/${MACHINE}.conf", e.data): raise_sanity_error('Please set a valid MACHINE in your local.conf') - # Check the distro is valid - if not check_conf_exists("conf/distro/${DISTRO}.conf", e.data): - raise_sanity_error('Please set a valid DISTRO in your local.conf') + # Check that the DISTRO is valid + # need to take into account DISTRO renaming DISTRO + if not ( check_conf_exists("conf/distro/${DISTRO}.conf", e.data) or check_conf_exists("conf/distro/include/${DISTRO}.inc", e.data) ): + raise_sanity_error("DISTRO '%s' not found. Please set a valid DISTRO in your local.conf" % data.getVar("DISTRO", e.data, True )) if not check_app_exists("${MAKE}", e.data): raise_sanity_error('GNU make missing. Please install GNU make') |