summaryrefslogtreecommitdiff
path: root/classes/sanity.bbclass
diff options
context:
space:
mode:
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>2007-12-19 10:02:27 +0000
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>2007-12-19 10:02:27 +0000
commitc7e33ecf737e93f9ecec2cc609064bfd593f2b61 (patch)
treea657ac69b5e38e1887286933e9ae748e2267b27b /classes/sanity.bbclass
parentef93660d2fbd162ca59457c96d7e1cea9cd8b907 (diff)
parentf871fead79da276cf252c7a9ab1b33e33119b009 (diff)
merge of '074f227db84b62ec3c531c61efcd62fc6b429dc3'
and '5af64e0f29377b9ebbc655af469dd70d6a2f6dfb'
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r--classes/sanity.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 479abce7fa..cc413b7011 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -70,8 +70,9 @@ def check_sanity(e):
if "diffstat-native" not in assume_provided:
messages = messages + 'Please use ASSUME_PROVIDED +=, not ASSUME_PROVIDED = in your local.conf\n'
- # Check that the MACHINE is valid
- if not check_conf_exists("conf/machine/${MACHINE}.conf", e.data):
+ # Check that the MACHINE is valid, if it is set
+ if data.getVar('MACHINE', e.data, True):
+ if not check_conf_exists("conf/machine/${MACHINE}.conf", e.data):
messages = messages + 'Please set a valid MACHINE in your local.conf\n'
# Check that the DISTRO is valid