[oe-commits] Richard Purdie : bitbake.conf: Set PACKAGE_ARCH with ??=

git at git.openembedded.org git at git.openembedded.org
Tue Aug 19 19:41:56 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 4ae134023ec56fb9e5fe5398e37598b6605a22db
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=4ae134023ec56fb9e5fe5398e37598b6605a22db

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Tue Aug 19 13:31:22 2014 +0100

bitbake.conf: Set PACKAGE_ARCH with ??=

Currently its near impossible for other classes to sanely override
this value with their own default. By setting a weak default we can
allow other classes to change the default and allow end recipes to
again override this.

As far as I can tell, there shouldn't be any regressions from this
change.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/conf/bitbake.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 5872d1d..436e528 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -133,7 +133,7 @@ SDK_LD_ARCH = "${BUILD_LD_ARCH}"
 SDK_AS_ARCH = "${BUILD_AS_ARCH}"
 
 TUNE_PKGARCH ??= ""
-PACKAGE_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}}"
 PACKAGE_ARCHS = "all any noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}"



More information about the Openembedded-commits mailing list