diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-03-31 11:29:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-31 22:53:45 +0100 |
commit | 49f2bc450c1dd969eba30287050e25030116b714 (patch) | |
tree | 7ab182bacfef1d38c8ea12c99822fbd0937d544d /meta/classes/sanity.bbclass | |
parent | 79dc4f01585421cc6e8d0660b9caa9bf5e259b72 (diff) | |
download | poky-49f2bc450c1dd969eba30287050e25030116b714.tar.gz |
classes/sanity: check if SDKMACHINE setting has taken effect
If you try to set SDKMACHINE in a distro configuration file, it won't
take effect because by the time that is parsed the line in bitbake.conf
which includes the appropriate conf file for SDKMACHINE has already been
parsed. Check that SDK_ARCH has changed from its default value and show
an error if it hasn't in order to catch this misconfiguration.
Fixes [YOCTO #5861].
(From OE-Core rev: 25ba4042ae782016aaf1cb5d3dac09b2a1030a1e)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r-- | meta/classes/sanity.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index cf514d0c23..69d6a246de 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -667,6 +667,8 @@ def check_sanity_everybuild(status, d): | |||
667 | if d.getVar('SDKMACHINE', True): | 667 | if d.getVar('SDKMACHINE', True): |
668 | if not check_conf_exists("conf/machine-sdk/${SDKMACHINE}.conf", d): | 668 | if not check_conf_exists("conf/machine-sdk/${SDKMACHINE}.conf", d): |
669 | status.addresult('Specified SDKMACHINE value is not valid\n') | 669 | status.addresult('Specified SDKMACHINE value is not valid\n') |
670 | elif d.getVar('SDK_ARCH', False) == "${BUILD_ARCH}": | ||
671 | status.addresult('SDKMACHINE is set, but SDK_ARCH has not been changed as a result - SDKMACHINE may have been set too late (e.g. in the distro configuration)\n') | ||
670 | 672 | ||
671 | check_supported_distro(d) | 673 | check_supported_distro(d) |
672 | 674 | ||