VisionFive2 Linux kernel

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

More than 9999 Commits   35 Branches   59 Tags
author: Masahiro Yamada <masahiroy@kernel.org> 2021-02-03 16:52:39 +0900 committer: Masahiro Yamada <masahiroy@kernel.org> 2021-02-05 17:53:28 +0900 commit: 315da87c0f99a4741a639782d59dae44878199f5 parent: 074075aea2ff72dade5231b4ee9f2ab9a055f1ec
Commit Summary:
kbuild: fix duplicated flags in DEBUG_CFLAGS
Diffstat:
1 file changed, 3 insertions, 1 deletion
diff --git a/Makefile b/Makefile
index 89217e4e68c6..97c781cf042b 100644
--- a/Makefile
+++ b/Makefile
@@ -811,10 +811,12 @@ KBUILD_CFLAGS	+= -ftrivial-auto-var-init=zero
 KBUILD_CFLAGS	+= -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
 endif
 
+DEBUG_CFLAGS	:=
+
 # Workaround for GCC versions < 5.0
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61801
 ifdef CONFIG_CC_IS_GCC
-DEBUG_CFLAGS	:= $(call cc-ifversion, -lt, 0500, $(call cc-option, -fno-var-tracking-assignments))
+DEBUG_CFLAGS	+= $(call cc-ifversion, -lt, 0500, $(call cc-option, -fno-var-tracking-assignments))
 endif
 
 ifdef CONFIG_DEBUG_INFO