diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2011-07-19 12:41:33 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-20 15:27:34 +0100 |
commit | cc8a2a0ff325ac86ad2dd1ceb0c2d3e15401dcd9 (patch) | |
tree | 978d1c53eee7ad6fe3bef69729b7abf67913a5eb /meta/conf | |
parent | e10a1d6cd3584ea5a310af1c124f94ae39a6e578 (diff) | |
download | poky-cc8a2a0ff325ac86ad2dd1ceb0c2d3e15401dcd9.tar.gz |
tclibc-*libc: Utilize TARGET_FPU for gnuspe setting
Its possible that BASE_PACKAGE_ARCH isn't set to ppce500 or ppce500v2 when
we build native toolchains. So we can utilize TARGET_FPU being set to
'ppc-efd' or 'ppc-efs' to determine if we should enable the gnuspe ABI.
(From OE-Core rev: 1a9ae8ea8c0540d41b8ff4d95c0420d6df754634)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/distro/include/tclibc-eglibc.inc | 2 | ||||
-rw-r--r-- | meta/conf/distro/include/tclibc-glibc.inc | 2 | ||||
-rw-r--r-- | meta/conf/distro/include/tclibc-uclibc.inc | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/meta/conf/distro/include/tclibc-eglibc.inc b/meta/conf/distro/include/tclibc-eglibc.inc index e070aad716..9fab4dc678 100644 --- a/meta/conf/distro/include/tclibc-eglibc.inc +++ b/meta/conf/distro/include/tclibc-eglibc.inc | |||
@@ -5,7 +5,7 @@ | |||
5 | TARGET_OS = "linux" | 5 | TARGET_OS = "linux" |
6 | TARGET_OS_arm = "linux-gnueabi" | 6 | TARGET_OS_arm = "linux-gnueabi" |
7 | TARGET_OS_armeb = "linux-gnueabi" | 7 | TARGET_OS_armeb = "linux-gnueabi" |
8 | TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('BASE_PACKAGE_ARCH',d,1) in ['ppce500', 'ppce500v2']]}" | 8 | TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_FPU',d,1) in ['ppc-efd', 'ppc-efs']]}" |
9 | 9 | ||
10 | # Add glibc overrides to the overrides for eglibc. | 10 | # Add glibc overrides to the overrides for eglibc. |
11 | OVERRIDES .= ":libc-glibc" | 11 | OVERRIDES .= ":libc-glibc" |
diff --git a/meta/conf/distro/include/tclibc-glibc.inc b/meta/conf/distro/include/tclibc-glibc.inc index 5e7afc1c00..0370dfa822 100644 --- a/meta/conf/distro/include/tclibc-glibc.inc +++ b/meta/conf/distro/include/tclibc-glibc.inc | |||
@@ -5,7 +5,7 @@ | |||
5 | TARGET_OS = "linux" | 5 | TARGET_OS = "linux" |
6 | TARGET_OS_arm = "linux-gnueabi" | 6 | TARGET_OS_arm = "linux-gnueabi" |
7 | TARGET_OS_armeb = "linux-gnueabi" | 7 | TARGET_OS_armeb = "linux-gnueabi" |
8 | TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('BASE_PACKAGE_ARCH',d,1) in ['ppce500', 'ppce500v2']]}" | 8 | TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_FPU',d,1) in ['ppc-efd', 'ppc-efs']]}" |
9 | 9 | ||
10 | # Add glibc to the overrides. | 10 | # Add glibc to the overrides. |
11 | OVERRIDES =. "libc-glibc:" | 11 | OVERRIDES =. "libc-glibc:" |
diff --git a/meta/conf/distro/include/tclibc-uclibc.inc b/meta/conf/distro/include/tclibc-uclibc.inc index 65693a9ca8..2ccda5bb65 100644 --- a/meta/conf/distro/include/tclibc-uclibc.inc +++ b/meta/conf/distro/include/tclibc-uclibc.inc | |||
@@ -5,6 +5,7 @@ | |||
5 | TARGET_OS = "linux-uclibc" | 5 | TARGET_OS = "linux-uclibc" |
6 | TARGET_OS_arm = "linux-uclibceabi" | 6 | TARGET_OS_arm = "linux-uclibceabi" |
7 | TARGET_OS_armeb = "linux-uclibceabi" | 7 | TARGET_OS_armeb = "linux-uclibceabi" |
8 | TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_FPU',d,1) in ['ppc-efd', 'ppc-efs']]}" | ||
8 | 9 | ||
9 | # Add uclibc overrides to the overrides. | 10 | # Add uclibc overrides to the overrides. |
10 | OVERRIDES =. "libc-uclibc:" | 11 | OVERRIDES =. "libc-uclibc:" |