aboutsummaryrefslogtreecommitdiffstats
path: root/conf/bitbake.conf
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-03-01 10:09:14 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2011-03-03 08:23:05 +0100
commit6536f018653333267483aa3d98b1e40b7a060e96 (patch)
tree64edbd4f5fda9cc4e1844e39bd3e2f062a0af87e /conf/bitbake.conf
parent5bc56c9595dfae1c2f4281cd344bf87da4c30bc9 (diff)
downloadopenembedded-6536f018653333267483aa3d98b1e40b7a060e96.tar.gz
sane-toolchain-*: define DEBUG_FLAGS and add it to FULL_OPTIMIZATION to make -dbg packages more usefull
Acked-by: Tom Rini <tom_rini@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'conf/bitbake.conf')
-rw-r--r--conf/bitbake.conf5
1 files changed, 3 insertions, 2 deletions
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index 1002c01a06..5d638dfbe1 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -541,10 +541,11 @@ EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} "
# Optimization flags.
##################################################################
+DEBUG_FLAGS = "-g"
FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
-DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer -g"
+DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS}"
SELECTED_OPTIMIZATION = "${@bb.data.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][bb.data.getVar('DEBUG_BUILD', d, 1) == '1'], d, 1)}"
-BUILD_OPTIMIZATION = "-O2 -g"
+BUILD_OPTIMIZATION = "-O2 ${DEBUG_FLAGS}"
##################################################################
# Bootstrap stuff.