summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorBernard Ogden <Bernard.Ogden@arm.com>2009-09-23 10:33:25 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2009-09-23 12:43:11 +0100
commit30bb6551675d2dfddeb3f7fda0f3af3aa753df12 (patch)
tree714e2aab8b417e1d19f2b6e06acb6126a8881b82 /init
parent03da00fa0b53645fedc495fac18d7965da52e6e1 (diff)
Lower (-O1) kernel build optimisation
This patch allows the kernel to be compiled with -O1 for easier source-level debugging. The patch was slightly modify by Catalin Marinas to avoid the "oldconfig" target asking the optimisation level for already configured kernels. Signed-off-by: Bernard Ogden <Bernard.Ogden@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index f763762d544a..c4973d57a13d 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -535,6 +535,14 @@ config CC_OPTIMIZE_FOR_SIZE
If unsure, say Y.
+config CC_OPTIMIZE_FOR_DEBUG
+ bool "Optimize for debug"
+ depends on !CC_OPTIMIZE_FOR_SIZE
+ help
+ Enabling this option will pass "-O1" instead of "-O2" to gcc
+ resulting in a better debug illusion, but also a larger and
+ slower kernel.
+
config SYSCTL
bool