2010-05-29 11:09:12 +08:00
|
|
|
menu "Kernel hacking"
|
|
|
|
|
|
|
|
source "lib/Kconfig.debug"
|
|
|
|
|
|
|
|
config EARLY_PRINTK
|
2011-01-21 06:44:16 +08:00
|
|
|
bool "Early printk" if EXPERT && DEBUG_KERNEL
|
2010-05-29 11:09:12 +08:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Write kernel log output directly via the hypervisor console.
|
|
|
|
|
|
|
|
This is useful for kernel debugging when your machine crashes very
|
|
|
|
early before the console code is initialized. For normal operation
|
|
|
|
it is not recommended because it looks ugly and doesn't cooperate
|
|
|
|
with klogd/syslogd. You should normally N here,
|
|
|
|
unless you want to debug such a crash.
|
|
|
|
|
|
|
|
config DEBUG_EXTRA_FLAGS
|
|
|
|
string "Additional compiler arguments when building with '-g'"
|
|
|
|
depends on DEBUG_INFO
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Debug info can be large, and flags like
|
|
|
|
`-femit-struct-debug-baseonly' can reduce the kernel file
|
|
|
|
size and build time noticeably. Such flags are often
|
|
|
|
helpful if the main use of debug info is line number info.
|
|
|
|
|
|
|
|
endmenu
|