summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@jci.com>2019-01-15 12:08:24 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-16 15:35:57 +0000
commitee30b9a77dc4b0700093cd0dc8ae89ebc5778274 (patch)
tree78469c40d9d688d0b41f14fc21489df7126cb867 /documentation
parentdc24d6393893218e2791a6ba09205629b4b7f704 (diff)
downloadpoky-ee30b9a77dc4b0700093cd0dc8ae89ebc5778274.tar.gz
dev-manual: Remove True option to getVar calls
getVar() has been defaulting to expanding by default for a long time (2016), thus remove the True option from getVar() examples with a regex search and replace. Search & replace made using the following command: sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' \ -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' \ | cut -d':' -f1 \ | sort -u) Note that there are are several other examples of getVar() usage which already don't explicitly add the True option, this patch just align some stray remainders. (From yocto-docs rev: 9824280085c4164c614c5ef2bc1e69ffac1732dd) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml12
1 files changed, 6 insertions, 6 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index c75e718d67..af0e4d53bf 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -5116,15 +5116,15 @@
5116 So, commands such as the following are useful when exploring the data 5116 So, commands such as the following are useful when exploring the data
5117 store and running functions: 5117 store and running functions:
5118 <literallayout class='monospaced'> 5118 <literallayout class='monospaced'>
5119 pydevshell> d.getVar("STAGING_DIR", True) 5119 pydevshell> d.getVar("STAGING_DIR")
5120 '/media/build1/poky/build/tmp/sysroots' 5120 '/media/build1/poky/build/tmp/sysroots'
5121 pydevshell> d.getVar("STAGING_DIR", False) 5121 pydevshell> d.getVar("STAGING_DIR")
5122 '${TMPDIR}/sysroots' 5122 '${TMPDIR}/sysroots'
5123 pydevshell> d.setVar("FOO", "bar") 5123 pydevshell> d.setVar("FOO", "bar")
5124 pydevshell> d.getVar("FOO", True) 5124 pydevshell> d.getVar("FOO")
5125 'bar' 5125 'bar'
5126 pydevshell> d.delVar("FOO") 5126 pydevshell> d.delVar("FOO")
5127 pydevshell> d.getVar("FOO", True) 5127 pydevshell> d.getVar("FOO")
5128 pydevshell> bb.build.exec_func("do_unpack", d) 5128 pydevshell> bb.build.exec_func("do_unpack", d)
5129 pydevshell> 5129 pydevshell>
5130 </literallayout> 5130 </literallayout>
@@ -6892,8 +6892,8 @@
6892 <literallayout class='monospaced'> 6892 <literallayout class='monospaced'>
6893 MACHINE = "qemux86-64" 6893 MACHINE = "qemux86-64"
6894 DEFAULTTUNE = "x86-64-x32" 6894 DEFAULTTUNE = "x86-64-x32"
6895 baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) \ 6895 baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE') \
6896 or 'INVALID'), True) or 'lib'}" 6896 or 'INVALID')) or 'lib'}"
6897 </literallayout> 6897 </literallayout>
6898 Once you have set up your configuration file, use BitBake to 6898 Once you have set up your configuration file, use BitBake to
6899 build an image that supports the x32 psABI. 6899 build an image that supports the x32 psABI.