[oe-commits] Paul Eggleton : classes/sanity: validate SDKMACHINE value
git at git.openembedded.org
git at git.openembedded.org
Wed Nov 20 11:09:36 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 8c984f92af821a4048c93f8e308c5f4a3fa39ca4
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8c984f92af821a4048c93f8e308c5f4a3fa39ca4
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date: Wed Nov 13 14:32:40 2013 +0000
classes/sanity: validate SDKMACHINE value
If SDKMACHINE is set then check that a configuration file matching it
actually exists, otherwise the user won't know that they've set it
incorrectly.
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/sanity.bbclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 83378b0..6807a23 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -625,6 +625,11 @@ def check_sanity_everybuild(status, d):
if machinevalid:
status.addresult(check_toolchain(d))
+ # Check that the SDKMACHINE is valid, if it is set
+ if d.getVar('SDKMACHINE', True):
+ if not check_conf_exists("conf/machine-sdk/${SDKMACHINE}.conf", d):
+ status.addresult('Specified SDKMACHINE value is not valid\n')
+
check_supported_distro(d)
# Check if DISPLAY is set if TEST_IMAGE is set
More information about the Openembedded-commits
mailing list