diff options
| author | Samuli Piippo <samuli.piippo@qt.io> | 2018-11-20 13:43:51 +0200 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@qt.io> | 2018-11-21 11:43:18 +0000 |
| commit | c5a5bce25764de55420664b6896fd76ba5d18f45 (patch) | |
| tree | 37946f9fcb4cf9dc9f09e0f693cb2b95a1c1f775 /meta-boot2qt/classes | |
| parent | 41105c273d58293be70f23d8e0ac24f41042d3f0 (diff) | |
| download | meta-boot2qt-5.12.0-rc.tar.gz | |
Remove default expansion parameter from getVarv5.12.0-rc
getVar defaults to expanding the variable, the second True
parameter is unnecessary.
Change-Id: Iafaf179c67ffedaba2946c078c1810a80198cf5e
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
Diffstat (limited to 'meta-boot2qt/classes')
| -rw-r--r-- | meta-boot2qt/classes/abi-arch.bbclass | 4 | ||||
| -rw-r--r-- | meta-boot2qt/classes/qbsp.bbclass | 4 | ||||
| -rw-r--r-- | meta-boot2qt/classes/qt5-features.bbclass | 2 | ||||
| -rw-r--r-- | meta-boot2qt/classes/sdk-sources.bbclass | 14 |
4 files changed, 12 insertions, 12 deletions
diff --git a/meta-boot2qt/classes/abi-arch.bbclass b/meta-boot2qt/classes/abi-arch.bbclass index 23b9b1c..63f9d1e 100644 --- a/meta-boot2qt/classes/abi-arch.bbclass +++ b/meta-boot2qt/classes/abi-arch.bbclass | |||
| @@ -33,7 +33,7 @@ valid_archs = "arm x86 itanium mips ppc sh" | |||
| 33 | def map_abi_arch(a, d): | 33 | def map_abi_arch(a, d): |
| 34 | import re | 34 | import re |
| 35 | 35 | ||
| 36 | valid_archs = d.getVar('valid_archs', True).split() | 36 | valid_archs = d.getVar('valid_archs').split() |
| 37 | 37 | ||
| 38 | if re.match('i.86$', a): return 'x86' | 38 | if re.match('i.86$', a): return 'x86' |
| 39 | elif re.match('x86.64$', a): return 'x86' | 39 | elif re.match('x86.64$', a): return 'x86' |
| @@ -46,4 +46,4 @@ def map_abi_arch(a, d): | |||
| 46 | else: | 46 | else: |
| 47 | bb.error("cannot map '%s' to a abi architecture" % a) | 47 | bb.error("cannot map '%s' to a abi architecture" % a) |
| 48 | 48 | ||
| 49 | ABI = "${@map_abi_arch(d.getVar('TARGET_ARCH', True), d)}" | 49 | ABI = "${@map_abi_arch(d.getVar('TARGET_ARCH'), d)}" |
diff --git a/meta-boot2qt/classes/qbsp.bbclass b/meta-boot2qt/classes/qbsp.bbclass index 7c6f7ef..fbfd266 100644 --- a/meta-boot2qt/classes/qbsp.bbclass +++ b/meta-boot2qt/classes/qbsp.bbclass | |||
| @@ -50,7 +50,7 @@ do_qbsp[depends] += "\ | |||
| 50 | " | 50 | " |
| 51 | 51 | ||
| 52 | QBSP_VERSION ?= "${PV}${VERSION_AUTO_INCREMENT}" | 52 | QBSP_VERSION ?= "${PV}${VERSION_AUTO_INCREMENT}" |
| 53 | QBSP_INSTALLER_COMPONENT ?= "${@d.getVar('MACHINE', True).replace('-','')}" | 53 | QBSP_INSTALLER_COMPONENT ?= "${@d.getVar('MACHINE').replace('-','')}" |
| 54 | QBSP_INSTALL_PATH ?= "/Extras/${MACHINE}" | 54 | QBSP_INSTALL_PATH ?= "/Extras/${MACHINE}" |
| 55 | 55 | ||
| 56 | QBSP_LICENSE_FILE ?= "" | 56 | QBSP_LICENSE_FILE ?= "" |
| @@ -69,7 +69,7 @@ SDK_NAME = "${DISTRO}-${SDK_MACHINE}-${QBSP_SDK_TASK}-${MACHINE}.${SDK_POSTFIX}" | |||
| 69 | SDK_POSTFIX = "sh" | 69 | SDK_POSTFIX = "sh" |
| 70 | SDK_POSTFIX_sdkmingw32 = "7z" | 70 | SDK_POSTFIX_sdkmingw32 = "7z" |
| 71 | REAL_MULTIMACH_TARGET_SYS = "${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" | 71 | REAL_MULTIMACH_TARGET_SYS = "${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" |
| 72 | SDK_MACHINE = "${@d.getVar('SDKMACHINE', True) or '${SDK_ARCH}'}" | 72 | SDK_MACHINE = "${@d.getVar('SDKMACHINE') or '${SDK_ARCH}'}" |
| 73 | 73 | ||
| 74 | B = "${WORKDIR}/build" | 74 | B = "${WORKDIR}/build" |
| 75 | 75 | ||
diff --git a/meta-boot2qt/classes/qt5-features.bbclass b/meta-boot2qt/classes/qt5-features.bbclass index 89b3ee6..8e90811 100644 --- a/meta-boot2qt/classes/qt5-features.bbclass +++ b/meta-boot2qt/classes/qt5-features.bbclass | |||
| @@ -31,7 +31,7 @@ FEATURES := "${THISDIR}/features/${QT_MODULE}.opt" | |||
| 31 | do_configure[file-checksums] += "${FEATURES}:True" | 31 | do_configure[file-checksums] += "${FEATURES}:True" |
| 32 | 32 | ||
| 33 | def qt_features(d): | 33 | def qt_features(d): |
| 34 | featurefile = d.getVar('FEATURES', True) | 34 | featurefile = d.getVar('FEATURES') |
| 35 | with open(featurefile, 'r') as f: | 35 | with open(featurefile, 'r') as f: |
| 36 | features = f.read().replace('\n', ' ') | 36 | features = f.read().replace('\n', ' ') |
| 37 | return features | 37 | return features |
diff --git a/meta-boot2qt/classes/sdk-sources.bbclass b/meta-boot2qt/classes/sdk-sources.bbclass index b12f371..10454b4 100644 --- a/meta-boot2qt/classes/sdk-sources.bbclass +++ b/meta-boot2qt/classes/sdk-sources.bbclass | |||
| @@ -28,11 +28,11 @@ | |||
| 28 | ############################################################################ | 28 | ############################################################################ |
| 29 | 29 | ||
| 30 | python do_fetch () { | 30 | python do_fetch () { |
| 31 | src_uri = (d.getVar('SRC_URI', True) or "").split() | 31 | src_uri = (d.getVar('SRC_URI') or "").split() |
| 32 | if len(src_uri) == 0: | 32 | if len(src_uri) == 0: |
| 33 | return | 33 | return |
| 34 | 34 | ||
| 35 | sdk_path = d.getVar('QT_SDK_PATH', True) or "" | 35 | sdk_path = d.getVar('QT_SDK_PATH') or "" |
| 36 | if len(sdk_path) != 0: | 36 | if len(sdk_path) != 0: |
| 37 | uris = list(src_uri); | 37 | uris = list(src_uri); |
| 38 | for url in uris: | 38 | for url in uris: |
| @@ -53,13 +53,13 @@ python do_fetch () { | |||
| 53 | 53 | ||
| 54 | python do_unpack () { | 54 | python do_unpack () { |
| 55 | sdk_uds = []; | 55 | sdk_uds = []; |
| 56 | src_uri = (d.getVar('SRC_URI', True) or "").split() | 56 | src_uri = (d.getVar('SRC_URI') or "").split() |
| 57 | if len(src_uri) == 0: | 57 | if len(src_uri) == 0: |
| 58 | return | 58 | return |
| 59 | 59 | ||
| 60 | rootdir = d.getVar('WORKDIR', True) | 60 | rootdir = d.getVar('WORKDIR') |
| 61 | 61 | ||
| 62 | sdk_path = d.getVar('QT_SDK_PATH', True) or "" | 62 | sdk_path = d.getVar('QT_SDK_PATH') or "" |
| 63 | if len(sdk_path) != 0: | 63 | if len(sdk_path) != 0: |
| 64 | uris = list(src_uri); | 64 | uris = list(src_uri); |
| 65 | for url in uris: | 65 | for url in uris: |
| @@ -81,8 +81,8 @@ python do_unpack () { | |||
| 81 | 81 | ||
| 82 | def unpack_local_uri(ud, d): | 82 | def unpack_local_uri(ud, d): |
| 83 | import subprocess | 83 | import subprocess |
| 84 | rootdir = d.getVar('WORKDIR', True) | 84 | rootdir = d.getVar('WORKDIR') |
| 85 | sdk_path = d.getVar('QT_SDK_PATH', True) | 85 | sdk_path = d.getVar('QT_SDK_PATH') |
| 86 | 86 | ||
| 87 | destdir = os.path.join(rootdir, ud[5].get("destsuffix", "git")) | 87 | destdir = os.path.join(rootdir, ud[5].get("destsuffix", "git")) |
| 88 | srcdir = os.path.join(sdk_path, ud[5].get("sdk-uri")) | 88 | srcdir = os.path.join(sdk_path, ud[5].get("sdk-uri")) |
