From 638ad177aa4e36636113bc1c1608085380d264ce Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 23 Feb 2016 09:18:08 -0800 Subject: [PATCH] bitbake: bitbake-user-manual: Added note for Python variable ref expansion. Fixes [YOCTO #9148] Added a note about Variable expressions (e.g. ${X}) are no longer expanded within Python functions. (Bitbake rev: 4ebe55cb8c8db1c5cf5d127e213487c5a453a68a) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../bitbake-user-manual-metadata.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 @@ is a global variable and is always automatically available. + + + Variable expressions (e.g. ${X}) are no + longer expanded within Python functions. + This behavior is intentional in order to allow you to freely + set variable values to expandable expressions without having + them expanded prematurely. + If you do wish to expand a variable within a Python function, + use d.getVar("X", True). + Or, for more complicated expressions, use + d.expand(). +