summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-03-17 16:54:30 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-24 12:33:35 +0000
commit5ea06dc295b657383fd97545c15255b294cf1a79 (patch)
treeb2642fc01249e6b06abf3d1b779b91dd39f68ad9
parenta93b0e770b425d671fb0590ed815a1c4787493fc (diff)
downloadpoky-5ea06dc295b657383fd97545c15255b294cf1a79.tar.gz
bitbake.conf: Prune global OPTIMIZATION flags
-fexpensive-optimizations is enabled by default at -O2 -fomit-frame-pointer is enabled at -O2 selectively by gcc depending upon architecture if debug info is not hurt -frename-registers - This might have some performance advantage on top of O2 on architectures which have more registers and registers are left after scheduling but it affects debuggability quite a bit so as a i tradeoff we do not use it. -feliminate-dwarf2-dups - We use this option to reduce the size of debug information by removing duplicates this is only valid for dwarf2+ and we use dwarf2 by default -pipe uses buffers instead of temporary files internally it can speed up compilation it has has issues with other assemblers but not with GNU assembler and we use gas. Separate out debug information related flags into a separate variable DEBUG_FLAGS so distros can use/notuse them as they like (From OE-Core rev: 9cb7113790d716a4c5cf7d511535ba87fdecd1ac) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/bitbake.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 74f3ccb815..22532db7fe 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -495,11 +495,11 @@ EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} "
495################################################################## 495##################################################################
496# Optimization flags. 496# Optimization flags.
497################################################################## 497##################################################################
498 498DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types -feliminate-dwarf2-dups"
499FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debug-types" 499FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}"
500DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer -g" 500DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe"
501SELECTED_OPTIMIZATION = "${@bb.data.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][bb.data.getVar('DEBUG_BUILD', d, 1) == '1'], d, 1)}" 501SELECTED_OPTIMIZATION = "${@bb.data.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][bb.data.getVar('DEBUG_BUILD', d, 1) == '1'], d, 1)}"
502BUILD_OPTIMIZATION = "-O2" 502BUILD_OPTIMIZATION = "-O2 -pipe"
503 503
504################################################################## 504##################################################################
505# Bootstrap stuff. 505# Bootstrap stuff.