diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2007-12-15 05:25:44 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2007-12-15 05:25:44 +0000 |
commit | c415ee0b42783845087f27f2c8c003ca34d65ca5 (patch) | |
tree | 08980cef24f225402630668ce702dc5eea0e5e20 /classes | |
parent | b3f0aa20d4e63ee1af3f6ba7e3691b8e7de19ad8 (diff) |
sanity.bbclass: Requiring MACHINE to be set is too paranoid.
* It's pretty legal to have only TARGET_ARCH set, for example to build
non-machine-specific packages (for example, using external SDK).
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sanity.bbclass | 5 |
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 |