From 6536f018653333267483aa3d98b1e40b7a060e96 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Tue, 1 Mar 2011 10:09:14 +0100 Subject: sane-toolchain-*: define DEBUG_FLAGS and add it to FULL_OPTIMIZATION to make -dbg packages more usefull Acked-by: Tom Rini Acked-by: Khem Raj Signed-off-by: Martin Jansa --- conf/distro/include/sane-toolchain-uclibc.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'conf/distro/include/sane-toolchain-uclibc.inc') diff --git a/conf/distro/include/sane-toolchain-uclibc.inc b/conf/distro/include/sane-toolchain-uclibc.inc index b61ee36af6..b51cdaf2e5 100644 --- a/conf/distro/include/sane-toolchain-uclibc.inc +++ b/conf/distro/include/sane-toolchain-uclibc.inc @@ -23,12 +23,12 @@ 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 -pipe" +FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe ${DEBUG_FLAGS}" BUILD_OPTIMIZATION += "-pipe" # -Os compiled root file system does not boot for powerpc, root cause it still at large # we use -O2 meanwhile -FULL_OPTIMIZATION_powerpc = "-O2 -pipe" +FULL_OPTIMIZATION_powerpc = "-O2 -pipe ${DEBUG_FLAGS}" #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). @@ -38,7 +38,7 @@ FULL_OPTIMIZATION_powerpc = "-O2 -pipe" #it was removed while debugging an issue that ultimately turned out to be due #to the ICE fixed by gcc-pr32889.patch. It needs to be tested again. #Note that this testing was done without the gcc-pr32889.patch. -FULL_OPTIMIZATION_avr32 = "-Os -fomit-frame-pointer" +FULL_OPTIMIZATION_avr32 = "-Os -fomit-frame-pointer ${DEBUG_FLAGS}" TARGET_LINK_HASH_STYLE = "${@['-Wl,--hash-style=gnu',''][bb.data.getVar('TARGET_ARCH',d,1) in ['mips', 'mipsel', 'mips64', 'mips64el', 'avr32']]}" -- cgit 1.2.3-korg