bitbake-user-manual: immediate-variable-expansion: Correct description
PATCH 1/1 bitbake-user-manual: immediate-variable-expansion: Correct description
References to undefined variables are preserved as is and do not expand to nothing as in GNU Make.
Signed-off-by Jacob Kroon <[email protected]>
--- .../bitbake-user-manual-metadata.xml | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-)
doc/bitbake-user-manual/bitbake-user-manual-metadata.xml +4 -16
@@ -291,22 +291,10 @@ <para> The ":=" operator results in a variable's contents being expanded immediately, - rather than when the variable is actually used: - <literallayout class='monospaced'> - T = "123" - A := "${B} ${A} test ${T}" - T = "456" - B = "${T} bval" - C = "cval" - C := "${C}append" - </literallayout> - In this example, <filename>A</filename> contains - "test 123" because <filename>${B}</filename> and - <filename>${A}</filename> at the time of parsing are undefined, - which leaves "test 123". - And, the variable <filename>C</filename> - contains "cvalappend" since <filename>${C}</filename> immediately - expands to "cval". + rather than when the variable is actually used. + In contrast to how GNU Make handles immediate expansion, + references to undefined variables are preserved as is, + instead of evaluating to nothing. </para> </section>
Signature · 1 line
2.24.1