bitbake.conf: don't append MACHINE_OVERRIDES to OVERRIDES when it's empty
authorMartin Jansa <martin.jansa@gmail.com>
Sat, 16 Oct 2010 09:24:41 +0000 (09:24 +0000)
committerDenys Dmytriyenko <denis@denix.org>
Fri, 22 Oct 2010 19:31:44 +0000 (15:31 -0400)
commit0770548c90b819a90bdf74f98664966c75bd5326
tree463c3cc4350a4a2f85891acb347ca5238e2cdf7c
parentc0155f9063b0edecd77ab7e10f483cf82b6dc384
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@ti.com>
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
conf/bitbake.conf