summaryrefslogtreecommitdiffstats
path: root/bitbake/doc/user-manual/user-manual-metadata.xml
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/doc/user-manual/user-manual-metadata.xml')
-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 fb4bf4044c..05cb9850c6 100644
--- a/bitbake/doc/user-manual/user-manual-metadata.xml
+++ b/bitbake/doc/user-manual/user-manual-metadata.xml
@@ -537,7 +537,10 @@
537 </note> 537 </note>
538 538
539 <para> 539 <para>
540 Python functions should use unique names. 540 For utility functions that you intend to call from
541 in-line Python or other Python functions, BitBake allows
542 you to define these as pure Python functions.
543 Here is an example:
541 <literallayout class='monospaced'> 544 <literallayout class='monospaced'>
542 def get_depends(d): 545 def get_depends(d):
543 if d.getVar('SOMECONDITION', True): 546 if d.getVar('SOMECONDITION', True):