diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-02-04 15:20:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-02-04 15:20:01 -0500 |
commit | 12b13835a0a8bfabea68741e1ab4d4a4cb77d037 (patch) | |
tree | 5318e0ee6cfb49f2616bf41a8d0cab0e9783c6ca | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
kbuild: don't enable DEBUG_INFO when building for COMPILE_TEST
It really isn't very interesting to have DEBUG_INFO when doing compile
coverage stuff (you wouldn't want to run the result anyway, that's kind
of the whole point of COMPILE_TEST), and it currently makes the build
take longer and use much more disk space for "all{yes,mod}config".
There's somewhat active discussion about this still, and we might end up
with some new config option for things like this (Andi points out that
the silly X86_DECODER_SELFTEST option also slows down the normal
coverage tests hugely), but I'm starting the ball rolling with this
simple one-liner.
DEBUG_INFO isn't that noticeable if you have tons of memory and a good
IO subsystem, but it hurts you a lot if you don't - for very little
upside for the common use.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | lib/Kconfig.debug | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index dbf94a7d25a8..a48abeac753f 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -119,7 +119,7 @@ menu "Compile-time checks and compiler options" | |||
119 | 119 | ||
120 | config DEBUG_INFO | 120 | config DEBUG_INFO |
121 | bool "Compile the kernel with debug info" | 121 | bool "Compile the kernel with debug info" |
122 | depends on DEBUG_KERNEL | 122 | depends on DEBUG_KERNEL && !COMPILE_TEST |
123 | help | 123 | help |
124 | If you say Y here the resulting kernel image will include | 124 | If you say Y here the resulting kernel image will include |
125 | debugging info resulting in a larger kernel image. | 125 | debugging info resulting in a larger kernel image. |