[oe-commits] Richard Purdie : bitbake.conf: Set a dafault value for TUNE_PKGARCH
git at git.openembedded.org
git at git.openembedded.org
Sun Jun 1 13:30:35 UTC 2014
Module: openembedded-core.git
Branch: master-next
Commit: 106e9a3f594658b6a207f1f29bd4007616cc31d6
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=106e9a3f594658b6a207f1f29bd4007616cc31d6
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Fri May 30 15:55:02 2014 +0100
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 at linuxfoundation.org>
---
meta/conf/bitbake.conf | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index fde8d76..1d70d3c 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}}"
More information about the Openembedded-commits
mailing list