diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-30 15:55:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-01 14:29:30 +0100 |
commit | 4489f20b6fa83ac0ab55cfd1e951fe80da98cca1 (patch) | |
tree | fe9f2a9ae996ed761a76f870d2e15c7a1aa02bc7 /meta/conf | |
parent | fe5bc386f6f6d5dabc40ccdb0de0f6ef8c9f6b9d (diff) | |
download | poky-4489f20b6fa83ac0ab55cfd1e951fe80da98cca1.tar.gz |
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.
(From OE-Core rev: 106e9a3f594658b6a207f1f29bd4007616cc31d6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/bitbake.conf | 1 |
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}" | |||
132 | SDK_LD_ARCH = "${BUILD_LD_ARCH}" | 132 | SDK_LD_ARCH = "${BUILD_LD_ARCH}" |
133 | SDK_AS_ARCH = "${BUILD_AS_ARCH}" | 133 | SDK_AS_ARCH = "${BUILD_AS_ARCH}" |
134 | 134 | ||
135 | TUNE_PKGARCH ??= "" | ||
135 | PACKAGE_ARCH = "${TUNE_PKGARCH}" | 136 | PACKAGE_ARCH = "${TUNE_PKGARCH}" |
136 | MACHINE_ARCH = "${@[d.getVar('TUNE_PKGARCH', True), d.getVar('MACHINE', True)][bool(d.getVar('MACHINE', True))].replace('-', '_')}" | 137 | MACHINE_ARCH = "${@[d.getVar('TUNE_PKGARCH', True), d.getVar('MACHINE', True)][bool(d.getVar('MACHINE', True))].replace('-', '_')}" |
137 | PACKAGE_EXTRA_ARCHS ??= "${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}" | 138 | PACKAGE_EXTRA_ARCHS ??= "${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}" |