From: Paul Eggleton Date: Wed, 13 Nov 2013 14:32:40 +0000 (+0000) Subject: classes/sanity: validate SDKMACHINE value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c028dcda06733f6a6b3386279fb6089ab0d468ea;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. (From OE-Core rev: 8c984f92af821a4048c93f8e308c5f4a3fa39ca4) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 83378b05735..6807a231520 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