]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: user-manual-metadata.xml: Added BB_ORIGENV example.
authorScott Rifenbark <scott.m.rifenbark@intel.com>
Tue, 4 Mar 2014 20:03:01 +0000 (14:03 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Mar 2014 01:59:04 +0000 (18:59 -0700)
(Bitbake rev: d4328e2df355252870c3bf01031538a77795cedb)

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

index 6736bc7b779ed818b6e02591471d3214a4886f8e..748b959d98820bdd6e4a40d412a99fcadf3a41dd 100644 (file)
                 such as <filename>getVar()</filename>.
                 The datastore object is useful, for example, to find the original
                 <filename>DISPLAY</filename> variable.
+                Here is an example:
+                <literallayout class='monospaced'>
+     BB_ORIGENV - add example?
+
+     origenv = d.getVar("BB_ORIGENV", False)
+     bar = origenv.getVar("BAR", False)
+                </literallayout>
+                The previous example returns <filename>BAR</filename> from the original
+                execution environment.
             </para>
 
             <para>