diff options
Diffstat (limited to 'bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml')
-rw-r--r-- | bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml index cfa85b379a..359df8f75f 100644 --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml | |||
@@ -840,6 +840,18 @@ | |||
840 | is a global variable and is always automatically | 840 | is a global variable and is always automatically |
841 | available. | 841 | available. |
842 | </para> | 842 | </para> |
843 | |||
844 | <note> | ||
845 | Variable expressions (e.g. <filename>${X}</filename>) are no | ||
846 | longer expanded within Python functions. | ||
847 | This behavior is intentional in order to allow you to freely | ||
848 | set variable values to expandable expressions without having | ||
849 | them expanded prematurely. | ||
850 | If you do wish to expand a variable within a Python function, | ||
851 | use <filename>d.getVar("X", True)</filename>. | ||
852 | Or, for more complicated expressions, use | ||
853 | <filename>d.expand()</filename>. | ||
854 | </note> | ||
843 | </section> | 855 | </section> |
844 | 856 | ||
845 | <section id='python-functions'> | 857 | <section id='python-functions'> |