Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] bitbake.conf: Set PACKAGE_ARCH with ??=
@ 2014-08-19 12:31 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-08-19 12:31 UTC (permalink / raw)
  To: openembedded-core

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@linuxfoundation.org>

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index ef30cb6..2537ef1 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}"




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-19 12:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-19 12:31 [PATCH] bitbake.conf: Set PACKAGE_ARCH with ??= Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox