aboutsummaryrefslogtreecommitdiff
path: root/Config.in
diff options
context:
space:
mode:
authorGravatar John Voltz <john.voltz@gmail.com>2008-03-12 13:07:10 +0000
committerGravatar John Voltz <john.voltz@gmail.com>2008-03-12 13:07:10 +0000
commit41f6b79ff746b7a6f7c2947999a20e1d163929f2 (patch)
tree6232827e6dab6cc30295d17834e57ddcbc3077c0 /Config.in
parent923f42a3c22dc42bcdeba8b5883a71c1e340d7da (diff)
downloadbuildroot-41f6b79ff746b7a6f7c2947999a20e1d163929f2.tar.gz
buildroot-41f6b79ff746b7a6f7c2947999a20e1d163929f2.tar.bz2
added more debugging options for packages
Diffstat (limited to 'Config.in')
-rw-r--r--Config.in110
1 files changed, 103 insertions, 7 deletions
diff --git a/Config.in b/Config.in
index d9bbb904a3..ca6bcc2c08 100644
--- a/Config.in
+++ b/Config.in
@@ -184,6 +184,43 @@ config BR2_RECENT
help
This option show recent versions of packages.
+config BR2_ENABLE_DEBUG
+ bool "build packages with debugging symbols"
+ default n
+ help
+ Build packages with debugging symbols
+ enabled
+
+if BR2_ENABLE_DEBUG
+choice
+ prompt "gcc debug level"
+ default BR2_DEBUG_2
+ help
+ Set the debug level for gcc
+
+config BR2_DEBUG_1
+ bool "debug level 1"
+ help
+ Debug level 1 produces minimal information, enough
+ for making backtraces in parts of the program that
+ you don't plan to debug. This includes descriptions
+ of functions and external variables, but no information
+ about local variables and no line numbers.
+
+config BR2_DEBUG_2
+ bool "debug level 2"
+ help
+ The default gcc debug level is 2
+
+config BR2_DEBUG_3
+ bool "debug level 3"
+ help
+ Level 3 includes extra information, such as all the
+ macro definitions present in the program. Some debuggers
+ support macro expansion when you use -g3.
+endchoice
+endif
+
choice
prompt "strip"
default BR2_STRIP_strip
@@ -196,12 +233,14 @@ choice
config BR2_STRIP_strip
bool "strip"
+ depends !BR2_ENABLE_DEBUG
help
strip is the normal strip command
config BR2_STRIP_sstrip
bool "sstrip"
select BR2_PACKAGE_SSTRIP_HOST
+ depends !BR2_ENABLE_DEBUG
help
sstrip is a strip that discards more than the normal strip
@@ -211,14 +250,71 @@ config BR2_STRIP_none
none do not strip (only for debugging!)
endchoice
-if BR2_STRIP_none
-config BR2_ENABLE_DEBUG
- bool "build packages with debugging symbols"
- default n
+choice
+ prompt "gcc optimization level"
+ default BR2_OPTIMIZE_0
help
- Build packages with debugging symbols
- enabled
-endif
+ Set the optimization level for gcc
+
+config BR2_OPTIMIZE_0
+ bool "optimization level 0"
+ help
+ Do not optimize. This is the default.
+
+config BR2_OPTIMIZE_1
+ bool "optimization level 1"
+ help
+ Optimize. Optimizing compilation takes somewhat more time,
+ and a lot more memory for a large function. With -O, the
+ compiler tries to reduce code size and execution time,
+ without performing any optimizations that take a great deal
+ of compilation time. -O turns on the following optimization
+ flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
+ -fcprop-registers -floop-optimize -fif-conversion
+ -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
+ -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
+ -ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
+ -O also turns on -fomit-frame-pointer on machines where doing
+ so does not interfere with debugging.
+
+config BR2_OPTIMIZE_2
+ bool "optimization level 2"
+ help
+ Optimize even more. GCC performs nearly all supported optimizations
+ that do not involve a space-speed tradeoff. The compiler does not
+ perform loop unrolling or function inlining when you specify -O2.
+ As compared to -O, this option increases both compilation time and
+ the performance of the generated code. -O2 turns on all optimization
+ flags specified by -O. It also turns on the following optimization
+ flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
+ -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
+ -fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
+ -frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
+ -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
+ -fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
+ -freorder-functions -falign-functions -falign-jumps -falign-loops
+ -falign-labels -ftree-vrp -ftree-pre
+ Please note the warning under -fgcse about invoking -O2 on programs
+ that use computed gotos.
+
+config BR2_OPTIMIZE_3
+ bool "optimization level 3"
+ help
+ Optimize yet more. -O3 turns on all optimizations specified by -O2
+ and also turns on the -finline-functions, -funswitch-loops and
+ -fgcse-after-reload options.
+
+config BR2_OPTIMIZE_S
+ bool "optimize for size"
+ help
+ Optimize for size. -Os enables all -O2 optimizations that do not
+ typically increase code size. It also performs further optimizations
+ designed to reduce code size. -Os disables the following optimization
+ flags: -falign-functions -falign-jumps -falign-loops -falign-labels
+ -freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
+ -ftree-vect-loop-version
+
+endchoice
config BR2_PREFER_STATIC_LIB
bool "prefer static libraries"