public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/purgatory: Remove -MD from KBUILD_CFLAGS
@ 2018-03-24 21:21 Sven Wegener
  2018-03-25 22:27 ` [tip:x86/urgent] x86/purgatory: Avoid creating stray .<pid>.d files, remove " tip-bot for Sven Wegener
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Wegener @ 2018-03-24 21:21 UTC (permalink / raw)
  To: x86; +Cc: linux-kernel

The kernel build system already takes care of generating the dependency
files. Having the additional -MD in KBUILD_CFLAGS leads to stray
.<pid>.d files in the build directory when we call the cc-option macro.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
---
 arch/x86/purgatory/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile
index 2f15a2ac4209..d70c15de417b 100644
--- a/arch/x86/purgatory/Makefile
+++ b/arch/x86/purgatory/Makefile
@@ -16,7 +16,7 @@ KCOV_INSTRUMENT := n
 # in turn leaves some undefined symbols like __fentry__ in purgatory and not
 # sure how to relocate those. Like kexec-tools, use custom flags.
 
-KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes -fno-zero-initialized-in-bss -fno-builtin -ffreestanding -c -MD -Os -mcmodel=large
+KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes -fno-zero-initialized-in-bss -fno-builtin -ffreestanding -c -Os -mcmodel=large
 KBUILD_CFLAGS += -m$(BITS)
 KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-25 22:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-24 21:21 [PATCH] x86/purgatory: Remove -MD from KBUILD_CFLAGS Sven Wegener
2018-03-25 22:27 ` [tip:x86/urgent] x86/purgatory: Avoid creating stray .<pid>.d files, remove " tip-bot for Sven Wegener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox