mirror of
https://git.yoctoproject.org/poky
synced 2026-02-15 21:23:04 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
b68d947e7c
commit
e2736f7db6
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user