diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2017-02-27 14:02:50 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 11:17:45 +0000 |
commit | 254bfb107134702d8d1e0bfbdd1b011212e8c291 (patch) | |
tree | 188ddf3ea786bc1b913904330e4f95125bd6def4 /meta/conf/machine | |
parent | dec5650bc292aa3c4a0a04ace72d2cf762e9620b (diff) | |
download | poky-254bfb107134702d8d1e0bfbdd1b011212e8c291.tar.gz |
recipes: Make use of the new bb.utils.filter() function
(From OE-Core rev: 0a1427bf9aeeda6bee2cc0af8da4ea5fd90aef6f)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine')
-rw-r--r-- | meta/conf/machine/include/mips/arch-mips.inc | 4 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-ppce500.inc | 2 | ||||
-rw-r--r-- | meta/conf/machine/include/tune-ppce500v2.inc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/meta/conf/machine/include/mips/arch-mips.inc b/meta/conf/machine/include/mips/arch-mips.inc index ec3af0af92..2f625119cb 100644 --- a/meta/conf/machine/include/mips/arch-mips.inc +++ b/meta/conf/machine/include/mips/arch-mips.inc | |||
@@ -17,7 +17,7 @@ TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'o32', ' -mabi=32', '', d) | |||
17 | 17 | ||
18 | TUNEVALID[n32] = "MIPS64 n32 ABI" | 18 | TUNEVALID[n32] = "MIPS64 n32 ABI" |
19 | TUNECONFLICTS[n32] = "o32 n64" | 19 | TUNECONFLICTS[n32] = "o32 n64" |
20 | ABIEXTENSION .= "${@bb.utils.contains('TUNE_FEATURES', 'n32', 'n32', '' ,d)}" | 20 | ABIEXTENSION .= "${@bb.utils.filter('TUNE_FEATURES', 'n32' ,d)}" |
21 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'n32', ' -mabi=n32', '', d)}" | 21 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'n32', ' -mabi=n32', '', d)}" |
22 | 22 | ||
23 | # user mode qemu doesn't support mips64 n32: "Invalid ELF image for this architecture" | 23 | # user mode qemu doesn't support mips64 n32: "Invalid ELF image for this architecture" |
@@ -44,7 +44,7 @@ MIPSPKGSFX_BYTE = "${@bb.utils.contains('TUNE_FEATURES', 'n64' , '64', '', d)}" | |||
44 | MIPSPKGSFX_BYTE .= "${@bb.utils.contains('TUNE_FEATURES', 'n32' , '64', '', d)}" | 44 | MIPSPKGSFX_BYTE .= "${@bb.utils.contains('TUNE_FEATURES', 'n32' , '64', '', d)}" |
45 | MIPSPKGSFX_FPU = "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard' , '', '-nf', d)}" | 45 | MIPSPKGSFX_FPU = "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard' , '', '-nf', d)}" |
46 | MIPSPKGSFX_ABI = "${@bb.utils.contains('TUNE_FEATURES', 'n32', '-n32', '', d)}" | 46 | MIPSPKGSFX_ABI = "${@bb.utils.contains('TUNE_FEATURES', 'n32', '-n32', '', d)}" |
47 | MIPSPKGSFX_R6 = "${@bb.utils.contains('TUNE_FEATURES', 'r6', 'r6', '', d)}" | 47 | MIPSPKGSFX_R6 = "${@bb.utils.filter('TUNE_FEATURES', 'r6', d)}" |
48 | MIPSPKGSFX_64R6 = "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa64r6', 'isa', '', d)}" | 48 | MIPSPKGSFX_64R6 = "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa64r6', 'isa', '', d)}" |
49 | MIPSPKGSFX_32R6 = "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa32r6', 'isa32', '', d)}" | 49 | MIPSPKGSFX_32R6 = "${@bb.utils.contains('TUNE_FEATURES', 'mipsisa32r6', 'isa32', '', d)}" |
50 | 50 | ||
diff --git a/meta/conf/machine/include/tune-ppce500.inc b/meta/conf/machine/include/tune-ppce500.inc index 96073d2d0b..89ec3f38a7 100644 --- a/meta/conf/machine/include/tune-ppce500.inc +++ b/meta/conf/machine/include/tune-ppce500.inc | |||
@@ -11,7 +11,7 @@ TARGET_FPU .= "${@bb.utils.contains('TUNE_FEATURES', [ 'ppce500' , 'spe' ], 'ppc | |||
11 | 11 | ||
12 | # spe is defined potentially in two places, so we want to be sure it will | 12 | # spe is defined potentially in two places, so we want to be sure it will |
13 | # only write spe once to the ABIEXTENSIONS field. | 13 | # only write spe once to the ABIEXTENSIONS field. |
14 | SPEABIEXTENSION = "${@bb.utils.contains('TUNE_FEATURES', 'spe', 'spe', '', d)}" | 14 | SPEABIEXTENSION = "${@bb.utils.filter('TUNE_FEATURES', 'spe', d)}" |
15 | ABIEXTENSION .= "${SPEABIEXTENSION}" | 15 | ABIEXTENSION .= "${SPEABIEXTENSION}" |
16 | 16 | ||
17 | AVAILTUNES += "ppce500" | 17 | AVAILTUNES += "ppce500" |
diff --git a/meta/conf/machine/include/tune-ppce500v2.inc b/meta/conf/machine/include/tune-ppce500v2.inc index 20a5f25b62..3a006e2cae 100644 --- a/meta/conf/machine/include/tune-ppce500v2.inc +++ b/meta/conf/machine/include/tune-ppce500v2.inc | |||
@@ -11,7 +11,7 @@ TARGET_FPU .= "${@bb.utils.contains('TUNE_FEATURES', [ 'ppce500v2' , 'spe' ], 'p | |||
11 | 11 | ||
12 | # spe is defined potentially in two places, so we want to be sure it will | 12 | # spe is defined potentially in two places, so we want to be sure it will |
13 | # only write spe once to the ABIEXTENSIONS field. | 13 | # only write spe once to the ABIEXTENSIONS field. |
14 | SPEABIEXTENSION = "${@bb.utils.contains('TUNE_FEATURES', 'spe', 'spe', '', d)}" | 14 | SPEABIEXTENSION = "${@bb.utils.filter('TUNE_FEATURES', 'spe', d)}" |
15 | ABIEXTENSION .= "${SPEABIEXTENSION}" | 15 | ABIEXTENSION .= "${SPEABIEXTENSION}" |
16 | 16 | ||
17 | AVAILTUNES += "ppce500v2" | 17 | AVAILTUNES += "ppce500v2" |