summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2015-12-18 14:14:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-07 13:40:18 +0000
commite2736f7db6bb4548498d9a09fddbefd925242f2c (patch)
treee842278409c800fdf9dce8bf0883af0e9c8c3768 /meta/classes
parentb68d947e7c727dc36c6eec064e0c7ef894320f39 (diff)
downloadpoky-e2736f7db6bb4548498d9a09fddbefd925242f2c.tar.gz
sanity.bbclass: add more information to error message about TUNE_PKGARCH missing in PACKAGE_ARCHS
* sometimes it's hard to see what's 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 (From OE-Core rev: 4bedd149964b3b594d7b1a233a9cc436925288e9) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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):
329 # Check that we don't have duplicate entries in PACKAGE_ARCHS & that TUNE_PKGARCH is in PACKAGE_ARCHS 329 # Check that we don't have duplicate entries in PACKAGE_ARCHS & that TUNE_PKGARCH is in PACKAGE_ARCHS
330 pkgarchs = sanity_data.getVar('PACKAGE_ARCHS', True) 330 pkgarchs = sanity_data.getVar('PACKAGE_ARCHS', True)
331 tunepkg = sanity_data.getVar('TUNE_PKGARCH', True) 331 tunepkg = sanity_data.getVar('TUNE_PKGARCH', True)
332 defaulttune = sanity_data.getVar('DEFAULTTUNE', True)
332 tunefound = False 333 tunefound = False
333 seen = {} 334 seen = {}
334 dups = [] 335 dups = []
@@ -345,7 +346,7 @@ def check_sanity_validmachine(sanity_data):
345 messages = messages + "Error, the PACKAGE_ARCHS variable contains duplicates. The following archs are listed more than once: %s" % " ".join(dups) 346 messages = messages + "Error, the PACKAGE_ARCHS variable contains duplicates. The following archs are listed more than once: %s" % " ".join(dups)
346 347
347 if tunefound == False: 348 if tunefound == False:
348 messages = messages + "Error, the PACKAGE_ARCHS variable does not contain TUNE_PKGARCH (%s)." % tunepkg 349 messages = messages + "Error, the PACKAGE_ARCHS variable (%s) for DEFAULTTUNE (%s) does not contain TUNE_PKGARCH (%s)." % (pkgarchs, defaulttune, tunepkg)
349 350
350 return messages 351 return messages
351 352