diff options
author | Bernard Ogden <Bernard.Ogden@arm.com> | 2009-09-23 10:33:25 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-09-23 12:43:11 +0100 |
commit | 30bb6551675d2dfddeb3f7fda0f3af3aa753df12 (patch) | |
tree | 714e2aab8b417e1d19f2b6e06acb6126a8881b82 /Makefile | |
parent | 03da00fa0b53645fedc495fac18d7965da52e6e1 (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 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -512,8 +512,12 @@ all: vmlinux ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE KBUILD_CFLAGS += -Os else +ifdef CONFIG_CC_OPTIMIZE_FOR_DEBUG +KBUILD_CFLAGS += -O1 +else KBUILD_CFLAGS += -O2 endif +endif include $(srctree)/arch/$(SRCARCH)/Makefile |