summaryrefslogtreecommitdiffstats
path: root/meta/conf/bitbake.conf
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-03 10:59:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-05 10:22:56 -0800
commit06f2f8ce0a3093973ca54b48f542f8485b666079 (patch)
treedbcfa5c491eb2e5d237aa539cb7c6e77dc07dd6f /meta/conf/bitbake.conf
parentd01dadfb87cfd2284b3e849d35a35fe5df0239c4 (diff)
downloadpoky-06f2f8ce0a3093973ca54b48f542f8485b666079.tar.gz
meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True)
Using "1" with getVar is bad coding style and "True" is preferred. This patch is a sed over the meta directory of the form: sed \ -e 's:\(\.getVar([^,()]*, \)1 *):\1True):g' \ -e 's:\(\.getVarFlag([^,()]*, [^,()]*, \)1 *):\1True):g' \ -i `grep -ril getVar *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r--meta/conf/bitbake.conf12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 18879c82fe..c8d9a31074 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -102,7 +102,7 @@ ABIEXTENSION ??= ""
102TARGET_ARCH = "${TUNE_ARCH}" 102TARGET_ARCH = "${TUNE_ARCH}"
103TARGET_OS = "linux${LIBCEXTENSION}${ABIEXTENSION}" 103TARGET_OS = "linux${LIBCEXTENSION}${ABIEXTENSION}"
104TARGET_VENDOR = "-oe" 104TARGET_VENDOR = "-oe"
105TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + d.getVar('TARGET_OS', 1), ''][d.getVar('TARGET_OS', 1) == ('' or 'custom')]}" 105TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + d.getVar('TARGET_OS', True), ''][d.getVar('TARGET_OS', True) == ('' or 'custom')]}"
106TARGET_PREFIX = "${TARGET_SYS}-" 106TARGET_PREFIX = "${TARGET_SYS}-"
107TARGET_CC_ARCH = "${TUNE_CCARGS}" 107TARGET_CC_ARCH = "${TUNE_CCARGS}"
108TARGET_LD_ARCH = "${TUNE_LDARGS}" 108TARGET_LD_ARCH = "${TUNE_LDARGS}"
@@ -111,7 +111,7 @@ TARGET_AS_ARCH = "${TUNE_ASARGS}"
111SDK_ARCH = "${BUILD_ARCH}" 111SDK_ARCH = "${BUILD_ARCH}"
112SDK_OS = "${BUILD_OS}" 112SDK_OS = "${BUILD_OS}"
113SDK_VENDOR = "-oesdk" 113SDK_VENDOR = "-oesdk"
114SDK_SYS = "${SDK_ARCH}${SDK_VENDOR}${@['-' + d.getVar('SDK_OS', 1), ''][d.getVar('SDK_OS', 1) == ('' or 'custom')]}" 114SDK_SYS = "${SDK_ARCH}${SDK_VENDOR}${@['-' + d.getVar('SDK_OS', True), ''][d.getVar('SDK_OS', True) == ('' or 'custom')]}"
115SDK_PREFIX = "${SDK_SYS}-" 115SDK_PREFIX = "${SDK_SYS}-"
116SDK_CC_ARCH = "${BUILD_CC_ARCH}" 116SDK_CC_ARCH = "${BUILD_CC_ARCH}"
117SDK_PACKAGE_ARCHS = "all any noarch ${SDK_ARCH}-nativesdk" 117SDK_PACKAGE_ARCHS = "all any noarch ${SDK_ARCH}-nativesdk"
@@ -119,7 +119,7 @@ SDK_LD_ARCH = "${BUILD_LD_ARCH}"
119SDK_AS_ARCH = "${BUILD_AS_ARCH}" 119SDK_AS_ARCH = "${BUILD_AS_ARCH}"
120 120
121PACKAGE_ARCH = "${TUNE_PKGARCH}" 121PACKAGE_ARCH = "${TUNE_PKGARCH}"
122MACHINE_ARCH = "${@[d.getVar('TUNE_PKGARCH', 1), d.getVar('MACHINE', 1)][bool(d.getVar('MACHINE', 1))].replace('-', '_')}" 122MACHINE_ARCH = "${@[d.getVar('TUNE_PKGARCH', True), d.getVar('MACHINE', True)][bool(d.getVar('MACHINE', True))].replace('-', '_')}"
123PACKAGE_EXTRA_ARCHS ??= "${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}" 123PACKAGE_EXTRA_ARCHS ??= "${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}"
124PACKAGE_ARCHS = "all any noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}" 124PACKAGE_ARCHS = "all any noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}"
125# MACHINE_ARCH shouldn't be included here as a variable dependency 125# MACHINE_ARCH shouldn't be included here as a variable dependency
@@ -300,14 +300,14 @@ FILES_${PN}-locale = "${datadir}/locale"
300FILE_DIRNAME = "${@os.path.dirname(d.getVar('FILE'))}" 300FILE_DIRNAME = "${@os.path.dirname(d.getVar('FILE'))}"
301# FILESPATH is set in base.bbclass 301# FILESPATH is set in base.bbclass
302#FILESPATH = "${FILE_DIRNAME}/${PF}:${FILE_DIRNAME}/${P}:${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/${BP}:${FILE_DIRNAME}/${BPN}:${FILE_DIRNAME}/files:${FILE_DIRNAME}" 302#FILESPATH = "${FILE_DIRNAME}/${PF}:${FILE_DIRNAME}/${P}:${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/${BP}:${FILE_DIRNAME}/${BPN}:${FILE_DIRNAME}/files:${FILE_DIRNAME}"
303FILESDIR = "${@bb.which(d.getVar('FILESPATH', 1), '.')}" 303FILESDIR = "${@bb.which(d.getVar('FILESPATH', True), '.')}"
304 304
305################################################################## 305##################################################################
306# General work and output directories for the build system. 306# General work and output directories for the build system.
307################################################################## 307##################################################################
308 308
309TMPDIR ?= "${TOPDIR}/tmp" 309TMPDIR ?= "${TOPDIR}/tmp"
310CACHE = "${TMPDIR}/cache${@['', '/' + str(d.getVar('MACHINE', 1))][bool(d.getVar('MACHINE', 1))]}${@['', '/' + str(d.getVar('SDKMACHINE', 1))][bool(d.getVar('SDKMACHINE', 1))]}" 310CACHE = "${TMPDIR}/cache${@['', '/' + str(d.getVar('MACHINE', True))][bool(d.getVar('MACHINE', True))]}${@['', '/' + str(d.getVar('SDKMACHINE', True))][bool(d.getVar('SDKMACHINE', True))]}"
311# The persistent cache should be shared by all builds 311# The persistent cache should be shared by all builds
312PERSISTENT_DIR = "${TMPDIR}/cache" 312PERSISTENT_DIR = "${TMPDIR}/cache"
313LOG_DIR = "${TMPDIR}/log" 313LOG_DIR = "${TMPDIR}/log"
@@ -408,7 +408,7 @@ export PATH
408# Build utility info. 408# Build utility info.
409################################################################## 409##################################################################
410 410
411CCACHE = "${@bb.which(d.getVar('PATH', 1), 'ccache') and 'ccache '}" 411CCACHE = "${@bb.which(d.getVar('PATH', True), 'ccache') and 'ccache '}"
412TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}" 412TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"
413 413
414export CCACHE_DIR = "${TMPDIR}/ccache/${MULTIMACH_HOST_SYS}/${PN}" 414export CCACHE_DIR = "${TMPDIR}/ccache/${MULTIMACH_HOST_SYS}/${PN}"