[bitbake-devel] when does ${XX} in variable names get expanded?

Khem Raj raj.khem at gmail.com
Thu Aug 4 15:30:28 UTC 2011


On 08/04/2011 02:19 AM, Lu, Lianhao wrote:
> Hi guys,
>
> For the following variable definition in bitbake,
>
> VVV = "llu"
> A_${VVV} = "VVV"
> A_llu = "llu"
>
> B = "${@bb.data.getVar('A_llu', d, True)}"
> C := "${@bb.data.getVar('A_llu', d, True)}"
>
> Why B is "VVV" and C is "llu" in final? I'm wondering when is the ${VVV} in the variable name of A_${VVV} expanded.
>

:= demands immediate expansion so any variables thats in the expression 
will be evaluated right there

where as = will be evaluated on reference and the variables it uses will 
be read/evaluated at that time.

> Best Regards,
> -Lianhao Lu
>
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel





More information about the bitbake-devel mailing list