summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-11-13 14:32:40 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-14 13:38:28 +0000
commit8c984f92af821a4048c93f8e308c5f4a3fa39ca4 (patch)
tree6055ca22c7712930773a4e8694633e7c50fd9cb1 /meta/classes
parentf4692afb518f07e17fbd35a2023877b7041abef9 (diff)
downloadopenembedded-core-8c984f92af821a4048c93f8e308c5f4a3fa39ca4.tar.gz
openembedded-core-8c984f92af821a4048c93f8e308c5f4a3fa39ca4.tar.bz2
openembedded-core-8c984f92af821a4048c93f8e308c5f4a3fa39ca4.zip
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@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sanity.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 83378b0573..6807a23152 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