On Wed, Apr 6, 2011 at 12:25 PM, Michael Smith <[email protected]> wrote:
> Esben Haabendal wrote:
>
>> I really believe that most people would expect
>>
>>    BAR = "bar"
>>    FOO_${BAR} = "1"
>>    FOO_bar = "2"
>>
>> to result in FOO_bar to be "2".
>
> Yes, as a luser that's what I expected before I learned the hard way what
> actually happens. IMHO "last assignment wins" would follow the principle of
> least surprise, but I don't know how to get there.
>
> At a minimum we'd have to find a way to audit recipes for variable
> assignments that would change. That's easy enough for FOO_${PN} but harder
> for FOO_${otherstuff}.

recipe_sanity warns you if you define FOO_bar and FOO_${BAR} both.
I'm sure it could be tweaked to do what you want there.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to