The patchset to enable CONFIG_DEBUG_INFO_NONE is proposed to speed-up the compilation time. In real project, the CONFIG_DEBUG_INFO_NONE is not used because the build-server that we are using support powerful performance.
When applying the following patch, you will see that CONFIG_DEBUG_INFO is included in the .config file.
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index bf0995d328b3..a2f91c0a0562 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -250,12 +250,6 @@ choice
Choose which version of DWARF debug info to emit. If unsure,
select "Toolchain default".
-config DEBUG_INFO_NONE
- bool "Disable debug information"
- help
- Do not build the kernel with debugging information, which will
- result in a faster and smaller build.
-
config DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
bool "Rely on the toolchain's implicit default DWARF version"
select DEBUG_INFO
08.20.2024
'리눅스 커널의 구조와 원리 > 3. 커널 디버깅과 코드 학습' 카테고리의 다른 글
[LinuxKernel] Crash-Utility: add new command "ps -e" (0) | 2019.03.09 |
---|---|
[LinuxKernel] Trace32(T32) How to use offsetof/container_of macro? (0) | 2019.03.09 |