diff options
author | Andrew Morton <akpm@osdl.org> | 2003-12-29 05:44:10 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-12-29 05:44:10 -0800 |
commit | ffd0cf49cd09ff1ef6495691d3dc076151454f14 (patch) | |
tree | b3486609f012ec13a7f2a3f3524f8f7477687c53 /init | |
parent | a93fabd3f90062015859589ee8bf249a1d76a99b (diff) | |
download | history-ffd0cf49cd09ff1ef6495691d3dc076151454f14.tar.gz |
[PATCH] Add `gcc -Os' config option
From: Adrian Bunk <bunk@fs.tum.de>
Allow the kernel to be built with `-Os'.
It requires CONFIG_EMBEDDED. This is to make it "hard to get at" because
one gcc version (3.2.x I think) from RH9 generates crashy kernels with this
option set.
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index 205e0ccbde31bf..25451407f203b4 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -196,6 +196,19 @@ config EPOLL source "drivers/block/Kconfig.iosched" +config CC_OPTIMIZE_FOR_SIZE + bool "Optimize for size" if EMBEDDED + default y if ARM || H8300 + default n + help + Enabling this option will pass "-Os" instead of "-O2" to gcc + resulting in a smaller kernel. + + WARNING: some versions of gcc may generate incorrect code with this + option. If problems are observed, a gcc upgrade may be needed. + + If unsure, say N. + endmenu # General setup |