aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-22 02:56:09 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-28 08:50:55 -0500
commit9d9374440072eb0acf2070b45229ef64c3e04d27 (patch)
tree4f4bd3701746d62ba9795c3e6e3ba40bb3a306f7 /lib
parent117948ac744b208d55aad696c043830a1c5f6408 (diff)
kbuild: move -gsplit-dwarf, -gdwarf-4 option tests to Kconfig
CONFIG_DEBUG_INFO_SPLIT and CONFIG_DEBUG_INFO_DWARF4 enable extra dwarf options if supported. You never know if they are really enabled since Makefile may silently turn them off. The actual behavior will match to the kernel configuration by testing those compiler flags in the Kconfig stage. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig.debug2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index d4df5b24d75e..dfc9949b6abe 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -179,6 +179,7 @@ config DEBUG_INFO_REDUCED
179config DEBUG_INFO_SPLIT 179config DEBUG_INFO_SPLIT
180 bool "Produce split debuginfo in .dwo files" 180 bool "Produce split debuginfo in .dwo files"
181 depends on DEBUG_INFO 181 depends on DEBUG_INFO
182 depends on $(cc-option,-gsplit-dwarf)
182 help 183 help
183 Generate debug info into separate .dwo files. This significantly 184 Generate debug info into separate .dwo files. This significantly
184 reduces the build directory size for builds with DEBUG_INFO, 185 reduces the build directory size for builds with DEBUG_INFO,
@@ -194,6 +195,7 @@ config DEBUG_INFO_SPLIT
194config DEBUG_INFO_DWARF4 195config DEBUG_INFO_DWARF4
195 bool "Generate dwarf4 debuginfo" 196 bool "Generate dwarf4 debuginfo"
196 depends on DEBUG_INFO 197 depends on DEBUG_INFO
198 depends on $(cc-option,-gdwarf-4)
197 help 199 help
198 Generate dwarf4 debug info. This requires recent versions 200 Generate dwarf4 debug info. This requires recent versions
199 of gcc and gdb. It makes the debug information larger. 201 of gcc and gdb. It makes the debug information larger.