summaryrefslogtreecommitdiffstats
path: root/Makefile
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 /Makefile
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 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0e1f6c3f00a2..38c0101d730c 100644
--- a/Makefile
+++ b/Makefile
@@ -742,14 +742,14 @@ DEBUG_CFLAGS := $(call cc-option, -fno-var-tracking-assignments)
742 742
743ifdef CONFIG_DEBUG_INFO 743ifdef CONFIG_DEBUG_INFO
744ifdef CONFIG_DEBUG_INFO_SPLIT 744ifdef CONFIG_DEBUG_INFO_SPLIT
745DEBUG_CFLAGS += $(call cc-option, -gsplit-dwarf, -g) 745DEBUG_CFLAGS += -gsplit-dwarf
746else 746else
747DEBUG_CFLAGS += -g 747DEBUG_CFLAGS += -g
748endif 748endif
749KBUILD_AFLAGS += -Wa,-gdwarf-2 749KBUILD_AFLAGS += -Wa,-gdwarf-2
750endif 750endif
751ifdef CONFIG_DEBUG_INFO_DWARF4 751ifdef CONFIG_DEBUG_INFO_DWARF4
752DEBUG_CFLAGS += $(call cc-option, -gdwarf-4,) 752DEBUG_CFLAGS += -gdwarf-4
753endif 753endif
754 754
755ifdef CONFIG_DEBUG_INFO_REDUCED 755ifdef CONFIG_DEBUG_INFO_REDUCED