mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True option from getVar() calls with a regex search and replace. Search made with the following regex: getVar ?\(( ?[^,()]*), True\) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
This commit is contained in:
committed by
Martin Jansa
parent
761639b9d7
commit
efd3696e70
@@ -5,7 +5,7 @@ LICENSE_DEFAULT = "GPLv2"
|
||||
LICENSE = "${LICENSE_DEFAULT} & BSD-2-Clause & GPLv3"
|
||||
|
||||
python () {
|
||||
for plugin in d.getVar('PLUGINS', True).split():
|
||||
for plugin in d.getVar('PLUGINS').split():
|
||||
if 'LICENSE_%s' % plugin not in d:
|
||||
d.setVar('LICENSE_' + plugin, '${LICENSE_DEFAULT}')
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ do_configure () {
|
||||
GYP_DEFINES="${GYP_DEFINES}" export GYP_DEFINES
|
||||
# $TARGET_ARCH settings don't match --dest-cpu settings
|
||||
./configure --prefix=${prefix} --without-snapshot --shared-openssl --shared-zlib \
|
||||
--dest-cpu="${@map_nodejs_arch(d.getVar('TARGET_ARCH', True), d)}" \
|
||||
--dest-cpu="${@map_nodejs_arch(d.getVar('TARGET_ARCH'), d)}" \
|
||||
--dest-os=linux \
|
||||
${ARCHFLAGS}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ SRC_URI[sha256sum] = "d62c371a71b4744ed830e3c21d27968c31dba74dd2c45f36b9b071e6d8
|
||||
S = "${WORKDIR}/${BPN}${PV}/unix"
|
||||
|
||||
# Short version format: "8.6"
|
||||
VER = "${@os.path.splitext(d.getVar('PV', True))[0]}"
|
||||
VER = "${@os.path.splitext(d.getVar('PV'))[0]}"
|
||||
|
||||
LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib"
|
||||
inherit autotools distro_features_check
|
||||
|
||||
@@ -15,4 +15,4 @@ S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake lib_package
|
||||
|
||||
EXTRA_OECMAKE = "-DLIB_SUFFIX=${@d.getVar('baselib', True).replace('lib', '')}"
|
||||
EXTRA_OECMAKE = "-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')}"
|
||||
|
||||
Reference in New Issue
Block a user