summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2015-12-07 23:39:36 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2015-12-10 13:35:25 +0100
commit6a436dcf61c09862e4ee54c2c33065b22de7bedc (patch)
tree00f07d58d6b695eb97fb2710b31efccb99ad42b1
parentf16dca081b84ba5daec7a7a073f819f7ba21dcbb (diff)
downloadopenembedded-core-contrib-6a436dcf61c09862e4ee54c2c33065b22de7bedc.tar.gz
openembedded-core-contrib-6a436dcf61c09862e4ee54c2c33065b22de7bedc.tar.bz2
openembedded-core-contrib-6a436dcf61c09862e4ee54c2c33065b22de7bedc.zip
sanity.bbclass: add more information to error message about TUNE_PKGARCH missing in PACKAGE_ARCHS
* sometimes it's hard to see whots wrong here * error message: Error, the PACKAGE_ARCHS variable does not contain TUNE_PKGARCH (cortexa7t2hfhf-vfp-vfpv4-neon). doesn't help much to understand what exactly went wrong and where Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta/classes/sanity.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index ad9dda878a..9f35558af8 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -329,6 +329,7 @@ def check_sanity_validmachine(sanity_data):
# Check that we don't have duplicate entries in PACKAGE_ARCHS & that TUNE_PKGARCH is in PACKAGE_ARCHS
pkgarchs = sanity_data.getVar('PACKAGE_ARCHS', True)
tunepkg = sanity_data.getVar('TUNE_PKGARCH', True)
+ defaulttune = sanity_data.getVar('DEFAULTTUNE', True)
tunefound = False
seen = {}
dups = []
@@ -345,7 +346,7 @@ def check_sanity_validmachine(sanity_data):
messages = messages + "Error, the PACKAGE_ARCHS variable contains duplicates. The following archs are listed more than once: %s" % " ".join(dups)
if tunefound == False:
- messages = messages + "Error, the PACKAGE_ARCHS variable does not contain TUNE_PKGARCH (%s)." % tunepkg
+ messages = messages + "Error, the PACKAGE_ARCHS variable (%s) for DEFAULTTUNE (%s) does not contain TUNE_PKGARCH (%s)." % (pkgarchs, defaulttune, tunepkg)
return messages