]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: bitbake-user-manual: Added non-existant variable expansion
authorScott Rifenbark <srifenbark@gmail.com>
Fri, 22 Jul 2016 15:36:09 +0000 (08:36 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Aug 2016 14:22:15 +0000 (15:22 +0100)
Fixes [YOCTO #10003]

I added a small paragraph explaining what happens when expansion
of a variable that does not exist occurs.

(Bitbake rev: 8006da3f229d0227215ccd59cd273edacf72f9ce)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml

index fe04103dae209caae415483c5b09017a612e4636..ce0e84db0261fbf7c6a4d7662813c3359c52c51d 100644 (file)
                 <link linkend='immediate-variable-expansion'>immediate variable expansion</link>
                 operator (i.e. ":=").
             </para>
+
+            <para>
+                If the variable expansion syntax is used on a variable that
+                does not exist, the string is kept as is.
+                For example, given the following assignment,
+                <filename>BAR</filename> expands to the literal string
+                "${FOO}" as long as <filename>FOO</filename> does not exist.
+                <literallayout class='monospaced'>
+     BAR = "${FOO}"
+                </literallayout>
+            </para>
         </section>
 
         <section id='setting-a-default-value'>