diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-12-29 10:44:03 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-30 23:39:09 +0000 |
commit | c1d47c21afe7372b26c6f6bd92019a761161c854 (patch) | |
tree | c618ba8bf6e5f4be3cae879d5c1fe6b0c6ec5817 /meta/conf/machine/include | |
parent | d38ac0741f2a67c34e95419d73afc988e99f1b7b (diff) | |
download | poky-c1d47c21afe7372b26c6f6bd92019a761161c854.tar.gz |
powerpc, powerpc64: Append little-endianness to tune arch
This helps in constructing right arch for target tuple name for
Little-endian ppc
(From OE-Core rev: b6ac40f1cbabb20896bf113568f7735a462ed1a6)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine/include')
-rw-r--r-- | meta/conf/machine/include/powerpc/arch-powerpc.inc | 3 | ||||
-rw-r--r-- | meta/conf/machine/include/powerpc/arch-powerpc64.inc | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/meta/conf/machine/include/powerpc/arch-powerpc.inc b/meta/conf/machine/include/powerpc/arch-powerpc.inc index 8c0c943044..ef18e9ac8b 100644 --- a/meta/conf/machine/include/powerpc/arch-powerpc.inc +++ b/meta/conf/machine/include/powerpc/arch-powerpc.inc | |||
@@ -15,7 +15,8 @@ TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "bigendian", " -mbig-endia | |||
15 | 15 | ||
16 | TUNEVALID[m32] = "Power ELF32 standard ABI" | 16 | TUNEVALID[m32] = "Power ELF32 standard ABI" |
17 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', ' -m32', '', d)}" | 17 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', ' -m32', '', d)}" |
18 | TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', 'powerpc', '', d)}" | 18 | TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', 'm32', 'powerpc${ENDIAN_SFX}', '', d)}" |
19 | ENDIAN_SFX = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', '', 'le', d)}" | ||
19 | 20 | ||
20 | TUNEVALID[fpu-hard] = "Use hardware FPU." | 21 | TUNEVALID[fpu-hard] = "Use hardware FPU." |
21 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', ' -mhard-float', '', d)}" | 22 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'fpu-hard', ' -mhard-float', '', d)}" |
diff --git a/meta/conf/machine/include/powerpc/arch-powerpc64.inc b/meta/conf/machine/include/powerpc/arch-powerpc64.inc index 4bc5983087..cf5c3ef8e6 100644 --- a/meta/conf/machine/include/powerpc/arch-powerpc64.inc +++ b/meta/conf/machine/include/powerpc/arch-powerpc64.inc | |||
@@ -5,7 +5,7 @@ require conf/machine/include/powerpc/arch-powerpc.inc | |||
5 | TUNEVALID[m64] = "Power ELF64 standard ABI" | 5 | TUNEVALID[m64] = "Power ELF64 standard ABI" |
6 | TUNECONFLICTS[m64] = "m32 nf" | 6 | TUNECONFLICTS[m64] = "m32 nf" |
7 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'm64', ' -m64', '', d)}" | 7 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'm64', ' -m64', '', d)}" |
8 | TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', [ 'm64' ], 'powerpc64', '', d)}" | 8 | TUNE_ARCH .= "${@bb.utils.contains('TUNE_FEATURES', [ 'm64' ], 'powerpc64${ENDIAN_SFX}', '', d)}" |
9 | 9 | ||
10 | # musl only supports elfv2 ABI for ppc64 | 10 | # musl only supports elfv2 ABI for ppc64 |
11 | TUNE_CCARGS .= "${@['', ' -mabi=elfv2']['libc-musl' in d.getVar('OVERRIDES').split(':')]}" | 11 | TUNE_CCARGS .= "${@['', ' -mabi=elfv2']['libc-musl' in d.getVar('OVERRIDES').split(':')]}" |