From 64bf49826088c56b739ed971251f05b4564c712e Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 21 Jul 2016 11:02:52 -0700 Subject: bitbake-user-manual: Updated the "Inline Python Variable Expansion" section. Fixes [YOCTO #9984] Added a small note to the bottom to help clarify. Signed-off-by: Scott Rifenbark --- .../bitbake-user-manual-metadata.xml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml b/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml index 436abd5ec..f7b541d9d 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml +++ b/doc/bitbake-user-manual/bitbake-user-manual-metadata.xml @@ -316,7 +316,7 @@ It is never necessary to use "+=" together with "_append". - The following sequence of assignments appepnds "barbaz" to + The following sequence of assignments appends "barbaz" to FOO: FOO_append = "bar" @@ -401,6 +401,21 @@ PN = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}" PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}" + + Inline Python expressions work just like variable expansions + insofar as the "=" and ":=" operators are concerned. + Given the following assignment, foo() + is called each time FOO is expanded: + + FOO = "${@foo()}" + + Contrast this with the following immediate assignment, where + foo() is only called once, while the + assignment is parsed: + + FOO := "${@foo()}" + + -- cgit 1.2.3-korg