[bitbake-devel] Key expansion and overrides?

Christopher Larson clarson at kergoth.com
Thu Mar 26 15:23:49 UTC 2015


On Thu, Mar 26, 2015 at 7:30 AM, Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:

> Two interesting test cases:
>
> OVERIDES = "myoverride"
> TESTME = "myoverride"
> FOO = "1"
> FOO_${TESTME} = "2"
>
> FOO = 1 or 2?
>
> OVERIDES = "myoverride"
> TESTME = "myoverride"
> FOO = "1 2"
> FOO_remove_${TESTME} = "2"
>
> FOO = "1 2" or "1"?
>
> Currently expansion in overrides doesn't work. I discovered this trying
> to do:
>
> X_remove_pn-gcc-cross-${TARGET_ARCH} = "Y"
>
> which I do believe is a valid thing to attempt.
>
> There are two ways of fixing this I guess. One is to call expandKeys()
> before and after update_data() but I suspect we can still cases which
> won't work. The other is to move to a model where overrides are applied
> more dynamically and we lose the need for update_data(). There may be
> some performance penalty for it.
>
> I'm leaning towards trying to kill off update_data() right now...
>

I also would lean towards removing update_data, at least prototyping it to
see what the performance penalties are.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20150326/3d43006d/attachment-0002.html>


More information about the bitbake-devel mailing list