]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - Makefile
kbuild: move -gsplit-dwarf, -gdwarf-4 option tests to Kconfig
[thirdparty/kernel/stable.git] / Makefile
index 0e1f6c3f00a26a9bf06f26e64e6b5b1a466c66da..38c0101d730ce1ae9a50758dfa8d59eeeb5e57ff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -742,14 +742,14 @@ DEBUG_CFLAGS      := $(call cc-option, -fno-var-tracking-assignments)
 
 ifdef CONFIG_DEBUG_INFO
 ifdef CONFIG_DEBUG_INFO_SPLIT
-DEBUG_CFLAGS   += $(call cc-option, -gsplit-dwarf, -g)
+DEBUG_CFLAGS   += -gsplit-dwarf
 else
 DEBUG_CFLAGS   += -g
 endif
 KBUILD_AFLAGS  += -Wa,-gdwarf-2
 endif
 ifdef CONFIG_DEBUG_INFO_DWARF4
-DEBUG_CFLAGS   += $(call cc-option, -gdwarf-4,)
+DEBUG_CFLAGS   += -gdwarf-4
 endif
 
 ifdef CONFIG_DEBUG_INFO_REDUCED