summaryrefslogtreecommitdiffstats
path: root/bitbake/doc/user-manual
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2014-02-03 12:07:43 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-11 12:17:06 +0000
commitdecc756e8990bfc5e0aa973320b2b81419a33518 (patch)
tree5dd8773025f8bb1a06566b8b8992483959d4abed /bitbake/doc/user-manual
parent2fc9281c49a562083d3736b2f8b159f0e76e3c0b (diff)
downloadast2050-yocto-poky-decc756e8990bfc5e0aa973320b2b81419a33518.zip
ast2050-yocto-poky-decc756e8990bfc5e0aa973320b2b81419a33518.tar.gz
bitbake: user-manual-metadata.xml: Edits to "Defining Pure Python Functions"
Made a review edit here to the section per Paul Eggleton. (Bitbake rev: 3b6ab095862367bc0101b995b002f62e7968ccf3) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/doc/user-manual')
-rw-r--r--bitbake/doc/user-manual/user-manual-metadata.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/doc/user-manual/user-manual-metadata.xml b/bitbake/doc/user-manual/user-manual-metadata.xml
index fb4bf40..05cb985 100644
--- a/bitbake/doc/user-manual/user-manual-metadata.xml
+++ b/bitbake/doc/user-manual/user-manual-metadata.xml
@@ -537,7 +537,10 @@
</note>
<para>
- Python functions should use unique names.
+ For utility functions that you intend to call from
+ in-line Python or other Python functions, BitBake allows
+ you to define these as pure Python functions.
+ Here is an example:
<literallayout class='monospaced'>
def get_depends(d):
if d.getVar('SOMECONDITION', True):
OpenPOWER on IntegriCloud