[oe-commits] Martin Jansa : bitbake.conf: don' t append MACHINE_OVERRIDES to OVERRIDES when it's empty

git version control git at git.openembedded.org
Fri Oct 22 19:35:42 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 0770548c90b819a90bdf74f98664966c75bd5326
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=0770548c90b819a90bdf74f98664966c75bd5326

Author: Martin Jansa <martin.jansa at gmail.com>
Date:   Sat Oct 16 09:24:41 2010 +0000

bitbake.conf: don't append MACHINE_OVERRIDES to OVERRIDES when it's empty

* empty MACHINE_OVERRIDES adds :: to OVERRIDES (then in FILESPATH skips
  every directory after this)
* strip() is needed to remove space in case some distribution has ie
  MACHINE_OVERRIDES ?= ""
  and then
  MACHINE_OVERRIDES += ""
  or
  MACHINE_OVERRIDES ?= "${MACHINE_CLASS}", where MACHINE_CLASS is empty again

While FILESPATH was fixed separately, having :: in OVERRIDES still makes
bitbake 1.8.18 to throw a "RuntimeError: Set changed size during iteration"
exception when used together with collections.inc, since bitbake is being
re-spawned in there. More details here:

http://thread.gmane.org/gmane.comp.handhelds.openembedded/38254/focus=38595

Acked-by: Chase Maupin <chase.maupin at ti.com>
Signed-off-by: Denys Dmytriyenko <denis at denix.org>

---

 conf/bitbake.conf |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index 923cf19..539ab3d 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -677,8 +677,9 @@ BUILDCFG_NEEDEDVARS ?= "TARGET_ARCH TARGET_OS"
 # Overrides are processed left to right, so the ones that are named later take precedence.
 # You generally want them to go from least to most specific.
 MACHINE_OVERRIDES ?= ""
-OVERRIDES = "pn-${PN}:fail-fast:build-${BUILD_OS}:${TARGET_ARCH}:${TARGET_OS}:\
-${DISTRO}:${@':'.join(d.getVar('MACHINE_OVERRIDES', True).split())}:${MACHINE}:local"
+OVERRIDES = "pn-${PN}:fail-fast:build-${BUILD_OS}:${TARGET_ARCH}:${TARGET_OS}:${DISTRO}:\
+${@[':'.join(d.getVar('MACHINE_OVERRIDES', True).split())+':',''][d.getVar('MACHINE_OVERRIDES', True).strip() == '']}\
+${MACHINE}:local"
 
 ##################################################################
 # Include the rest of the config files.





More information about the Openembedded-commits mailing list