aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-01-15 15:38:03 -0800
committerMartin Jansa <Martin.Jansa@gmail.com>2011-04-20 16:35:12 +0200
commit83f6151a529e8d3561f2841b9e669b085cb38de4 (patch)
tree9a6087c53673a49c071590784ac069090ab9b566 /conf
parentd460de33f912228c1162b8ebd21b8a9955aef8ec (diff)
downloadopenembedded-83f6151a529e8d3561f2841b9e669b085cb38de4.tar.gz
sane-toolchain-uclibc.inc: Use -O2 for powerpc targets
* -Os compiled root file system segfaults everywhere we dont know why yet so we use -O2 meanwhile we figure the reason for -Os failure Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'conf')
-rw-r--r--conf/distro/include/sane-toolchain-uclibc.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/distro/include/sane-toolchain-uclibc.inc b/conf/distro/include/sane-toolchain-uclibc.inc
index bfe0bc8cd0..059f83438e 100644
--- a/conf/distro/include/sane-toolchain-uclibc.inc
+++ b/conf/distro/include/sane-toolchain-uclibc.inc
@@ -24,6 +24,9 @@ PREFERRED_VERSION_uclibc-cross-intermediate ?= "${PREFERRED_UCLIBC_VERSION}"
#mess with compiler flags to use -Os instead of -O2
#Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info
FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os"
+# -Os compiled root file system does not boot for powerpc, root cause it still at large
+# we use -O2 meanwhile
+FULL_OPTIMIZATION_powerpc = "-O2"
#Gcc will die with 'internal consistency error when using the above optimizations
#with gcc-4.2.1-atmel.1.0.3 (and probably most other avr32 gcc ports).