VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Sedat Dilek <sedat.dilek@gmail.com> 2020-08-16 14:32:44 +0200 committer: Masahiro Yamada <masahiroy@kernel.org> 2020-08-27 00:44:33 +0900 commit: 695afd3d7d58ec3044d25c9d2fe384ab8627fd20 parent: d012a7190fc1fd72ed48911e77ca97ba4521bccd
Commit Summary:
kbuild: Simplify DEBUG_INFO Kconfig handling
Diffstat:
1 file changed, 5 insertions, 1 deletion
diff --git a/Makefile b/Makefile
index f21168154160..4ef6a73e48a7 100644
--- a/Makefile
+++ b/Makefile
@@ -816,13 +816,15 @@ endif
 DEBUG_CFLAGS	:= $(call cc-option, -fno-var-tracking-assignments)
 
 ifdef CONFIG_DEBUG_INFO
+
 ifdef CONFIG_DEBUG_INFO_SPLIT
 DEBUG_CFLAGS	+= -gsplit-dwarf
 else
 DEBUG_CFLAGS	+= -g
 endif
+
 KBUILD_AFLAGS	+= -Wa,-gdwarf-2
-endif
+
 ifdef CONFIG_DEBUG_INFO_DWARF4
 DEBUG_CFLAGS	+= -gdwarf-4
 endif
@@ -838,6 +840,8 @@ KBUILD_AFLAGS	+= -gz=zlib
 KBUILD_LDFLAGS	+= --compress-debug-sections=zlib
 endif
 
+endif # CONFIG_DEBUG_INFO
+
 KBUILD_CFLAGS += $(DEBUG_CFLAGS)
 export DEBUG_CFLAGS