bitbake: data_smart: Fix bug with overrides and weak default values
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jun 2013 11:31:32 +0000 (11:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jun 2013 12:00:57 +0000 (13:00 +0100)
commit73ec8c0839786c446c15dfb6a52736834ddc1f56
tree50b24c16b874fb84c1c35a5371755d55edf1e929
parente139ccf156e4107221f5423261a66595f9aea4f5
bitbake: data_smart: Fix bug with overrides and weak default values

(aka pay the cookie monster for weak defaults)

If you have code like:

MYVAR = "a"
MYVAR_override ??= "b"

then MYVAR will get the value "a" even when override is in OVERRIDES. The
reason is that the value of ??= is set as a flag not a value and the cookie
monster isn't paid.

The fix is to ensure appropriate payment is made for a defaultval varflag
matching the usual setVar case.

(Bitbake rev: 3d8044bc79c482c5ea008ddf12a8128dcd1527ee)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/data_smart.py