mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-01 13:40:04 +00:00
meta-oe: remove True option to getVar calls (again)
A couple have still been missed in the past despite multiple
attempts at doing so (or simply have re-appeared?).
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)
Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ BBCLASSEXTEND = "native"
|
||||
# you need to install the multilib development package (e.g.
|
||||
# libc6-dev-i386 on Debian/Ubuntu) and build a 32 bit host part
|
||||
# (HOST_CC="gcc -m32").
|
||||
BUILD_CC_ARCH_append = " ${@['-m32',''][d.getVar('SITEINFO_BITS', True) != '32']}"
|
||||
BUILD_CC_ARCH_append = " ${@['-m32',''][d.getVar('SITEINFO_BITS') != '32']}"
|
||||
|
||||
# The lua makefiles expect the TARGET_SYS to be from uname -s
|
||||
# Values: Windows, Linux, Darwin, iOS, SunOS, PS3, GNU/kFreeBSD
|
||||
|
||||
@@ -8,7 +8,7 @@ BBCLASSEXTEND = "native"
|
||||
DEPENDS = "zlib bzip2 libxml2 virtual/libiconv php-native lemon-native"
|
||||
DEPENDS_class-native = "zlib-native libxml2-native"
|
||||
|
||||
PHP_MAJOR_VERSION = "${@d.getVar('PV', True).split('.')[0]}"
|
||||
PHP_MAJOR_VERSION = "${@d.getVar('PV').split('.')[0]}"
|
||||
|
||||
SRC_URI = "http://php.net/distributions/php-${PV}.tar.bz2 \
|
||||
file://0001-php-don-t-use-broken-wrapper-for-mkdir.patch \
|
||||
|
||||
@@ -21,7 +21,7 @@ LDFLAGS_append_libc-musl = " -largp"
|
||||
|
||||
def set_target_arch(d):
|
||||
import re
|
||||
arch = d.getVar('TARGET_ARCH', True)
|
||||
arch = d.getVar('TARGET_ARCH')
|
||||
if re.match(r'i.86', arch, re.I):
|
||||
return 'i386'
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user