summaryrefslogtreecommitdiff
path: root/meta/conf/distro/include
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-07-19 12:41:33 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-20 15:24:57 +0100
commit1a9ae8ea8c0540d41b8ff4d95c0420d6df754634 (patch)
tree0f6aadbed8f0a600ae14fd6ee98064d858f7367e /meta/conf/distro/include
parent5136c4ad6279c1593301f6dde9b959ad26a2fd0f (diff)
downloadopenembedded-core-1a9ae8ea8c0540d41b8ff4d95c0420d6df754634.tar.gz
openembedded-core-1a9ae8ea8c0540d41b8ff4d95c0420d6df754634.tar.bz2
openembedded-core-1a9ae8ea8c0540d41b8ff4d95c0420d6df754634.tar.xz
openembedded-core-1a9ae8ea8c0540d41b8ff4d95c0420d6df754634.zip
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. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'meta/conf/distro/include')
-rw-r--r--meta/conf/distro/include/tclibc-eglibc.inc2
-rw-r--r--meta/conf/distro/include/tclibc-glibc.inc2
-rw-r--r--meta/conf/distro/include/tclibc-uclibc.inc1
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 e070aad71..9fab4dc67 100644
--- a/meta/conf/distro/include/tclibc-eglibc.inc
+++ b/meta/conf/distro/include/tclibc-eglibc.inc
@@ -5,7 +5,7 @@
TARGET_OS = "linux"
TARGET_OS_arm = "linux-gnueabi"
TARGET_OS_armeb = "linux-gnueabi"
-TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('BASE_PACKAGE_ARCH',d,1) in ['ppce500', 'ppce500v2']]}"
+TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_FPU',d,1) in ['ppc-efd', 'ppc-efs']]}"
# Add glibc overrides to the overrides for eglibc.
OVERRIDES .= ":libc-glibc"
diff --git a/meta/conf/distro/include/tclibc-glibc.inc b/meta/conf/distro/include/tclibc-glibc.inc
index 5e7afc1c0..0370dfa82 100644
--- a/meta/conf/distro/include/tclibc-glibc.inc
+++ b/meta/conf/distro/include/tclibc-glibc.inc
@@ -5,7 +5,7 @@
TARGET_OS = "linux"
TARGET_OS_arm = "linux-gnueabi"
TARGET_OS_armeb = "linux-gnueabi"
-TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('BASE_PACKAGE_ARCH',d,1) in ['ppce500', 'ppce500v2']]}"
+TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_FPU',d,1) in ['ppc-efd', 'ppc-efs']]}"
# Add glibc to the overrides.
OVERRIDES =. "libc-glibc:"
diff --git a/meta/conf/distro/include/tclibc-uclibc.inc b/meta/conf/distro/include/tclibc-uclibc.inc
index 65693a9ca..2ccda5bb6 100644
--- a/meta/conf/distro/include/tclibc-uclibc.inc
+++ b/meta/conf/distro/include/tclibc-uclibc.inc
@@ -5,6 +5,7 @@
TARGET_OS = "linux-uclibc"
TARGET_OS_arm = "linux-uclibceabi"
TARGET_OS_armeb = "linux-uclibceabi"
+TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_FPU',d,1) in ['ppc-efd', 'ppc-efs']]}"
# Add uclibc overrides to the overrides.
OVERRIDES =. "libc-uclibc:"