summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-30 15:55:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-01 14:28:35 +0100
commit106e9a3f594658b6a207f1f29bd4007616cc31d6 (patch)
tree9a0f5e53adcc96254c2c52ee3cbc02429aa4bdfe
parentdb44be06c75f2ac17a55dd1764471e869e872b8b (diff)
downloadopenembedded-core-contrib-106e9a3f594658b6a207f1f29bd4007616cc31d6.tar.gz
openembedded-core-contrib-106e9a3f594658b6a207f1f29bd4007616cc31d6.tar.bz2
openembedded-core-contrib-106e9a3f594658b6a207f1f29bd4007616cc31d6.zip
bitbake.conf: Set a dafault value for TUNE_PKGARCH
If we don't do this, we see an exception: ERROR: Failure expanding variable MACHINE_ARCH, expression was ${@[d.getVar('TUNE_PKGARCH', True), d.getVar('MACHINE', True)][bool(d.getVar('MACHINE', True))].replace('-', '_')} which triggered exception AttributeError: 'NoneType' object has no attribute 'replace' Setting a default value avoids this error and allows the sanity checker to trigger instead. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/bitbake.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index fde8d76410..1d70d3c9dd 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -132,6 +132,7 @@ SDK_PACKAGE_ARCHS = "all any noarch ${SDK_ARCH}-${SDKPKGSUFFIX}"
SDK_LD_ARCH = "${BUILD_LD_ARCH}"
SDK_AS_ARCH = "${BUILD_AS_ARCH}"
+TUNE_PKGARCH ??= ""
PACKAGE_ARCH = "${TUNE_PKGARCH}"
MACHINE_ARCH = "${@[d.getVar('TUNE_PKGARCH', True), d.getVar('MACHINE', True)][bool(d.getVar('MACHINE', True))].replace('-', '_')}"
PACKAGE_EXTRA_ARCHS ??= "${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}"