]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
native: Drop special variable handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Jan 2023 12:55:24 +0000 (12:55 +0000)
committerSteve Sakoman <steve@sakoman.com>
Tue, 31 Jan 2023 23:15:53 +0000 (13:15 -1000)
commit6e307036a130b6b3f7162ca81746a90efb7b30e3
tree81efefcd1610d82897d23b200a97b52ef47e5309
parent05a062c0112788b7c1f819e28bf7e9da47ad7e6a
native: Drop special variable handling

Back when it was merged in https://git.yoctoproject.org/poky/commit/?id=c4257ed8b1040a5a0e9a95846d81961741239116
it appeared special handling in setVar was necessary. Likely due to
other fixes and improvements it no longer appears to be. The results of
"bitbake world -g" before and after this change are identical for oe-core
and meta-openembedded. Therefore drop the "parsing=True" special parameter to
setVar() meaning overrides can now be cleared.

This means that something like:

DEPENDS:append = " bash"

now functions as expected, adding bash to the target recipe and bash-native to
the native BBCLASSEXTENDED version.

Without this change, it would add bash to the native version as well as
bash-native which is clearly incorrect.

[YOCTO #15010]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 99a5105f7b5303cd36077b5910c662a865c1782c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes-recipe/native.bbclass