[bitbake-devel] [PATCH] bitbake-user-manual: immediate-variable-expansion: Correct description
Jacob Kroon
jacob.kroon at gmail.com
Tue Jan 28 19:10:29 UTC 2020
References to undefined variables are preserved as is and do not
expand to nothing as in GNU Make.
Signed-off-by: Jacob Kroon <jacob.kroon at gmail.com>
---
.../bitbake-user-manual-metadata.xml | 20 ++++---------------
1 file changed, 4 insertions(+), 16 deletions(-)
diff --git a/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml b/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml
index 421364c2..0104b174 100644
--- a/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml
+++ b/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml
@@ -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>
--
2.24.1
More information about the bitbake-devel
mailing list