summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2009-08-23 00:34:30 -0700
committerKhem Raj <raj.khem@gmail.com>2009-08-23 00:34:30 -0700
commitebbe06e97f0ee51a788a93e0e852bdb0e27c37d6 (patch)
tree6cdec42c9637247bb4d6cdc7c27aebe0c3532d3e
parentcb55e663972541124c1b93848da46a16938e75c6 (diff)
minimal, sane-toolchain: Use eglibc if LIBC is not selected.
Currently we fall back to glibc if LIBC is not set. We now will use eglibc as default lib for minimal and sane-toolchain Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--conf/distro/include/sane-toolchain-eglibc.inc2
-rw-r--r--conf/distro/include/sane-toolchain.inc2
-rw-r--r--conf/distro/minimal.conf2
3 files changed, 4 insertions, 2 deletions
diff --git a/conf/distro/include/sane-toolchain-eglibc.inc b/conf/distro/include/sane-toolchain-eglibc.inc
index 4c5f44ff8e..88719f5f33 100644
--- a/conf/distro/include/sane-toolchain-eglibc.inc
+++ b/conf/distro/include/sane-toolchain-eglibc.inc
@@ -3,6 +3,8 @@
# eglibc:
# [23:00] oxo: glibc (any version) on sparc does not like (repeat me) "-Os"
+TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}"
+
FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os"
FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O1"
FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
diff --git a/conf/distro/include/sane-toolchain.inc b/conf/distro/include/sane-toolchain.inc
index 72fff9869d..07e1455168 100644
--- a/conf/distro/include/sane-toolchain.inc
+++ b/conf/distro/include/sane-toolchain.inc
@@ -115,7 +115,7 @@ TARGET_CC_ARCH_pn-cairo_armv5te = "-march=armv4t"
#############################################################################
# Can be "glibc", "eglibc" or "uclibc"
-LIBC ?= "glibc"
+LIBC ?= "eglibc"
require conf/distro/include/${LIBC}.inc
PSTAGE_EXTRAPATH = "${LIBC}"
require conf/distro/include/sane-toolchain-${LIBC}.inc
diff --git a/conf/distro/minimal.conf b/conf/distro/minimal.conf
index 2eb4817b9c..fa2a926a1d 100644
--- a/conf/distro/minimal.conf
+++ b/conf/distro/minimal.conf
@@ -73,7 +73,7 @@ MACHINE_KERNEL_VERSION = "2.6"
#############################################################################
# TOOLCHAIN
#############################################################################
-LIBC ?= "glibc"
+LIBC ?= "eglibc"
require conf/distro/include/sane-toolchain.inc
#############################################################################