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}.

Mike
_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to