aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Wegener <sven.wegener@stealer.net>2018-03-24 17:21:13 -0400
committerIngo Molnar <mingo@kernel.org>2018-03-25 05:04:02 -0400
commite847f6aaf68f6156a5e9b26afe1a7316b9ab697e (patch)
tree8030f7b54a639f891fbe743c650c623d11a833fd
parentbcfc1f4554662d8f2429ac8bd96064a59c149754 (diff)
x86/purgatory: Avoid creating stray .<pid>.d files, remove -MD from KBUILD_CFLAGS
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> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Kees Cook <keescook@chromium.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Matthias Kaehlcke <mka@chromium.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Vivek Goyal <vgoyal@redhat.com> Link: http://lkml.kernel.org/r/alpine.LNX.2.21.1803242219380.30139@titan.int.lan.stealer.net Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--arch/x86/purgatory/Makefile2
1 files changed, 1 insertions, 1 deletions
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
16# in turn leaves some undefined symbols like __fentry__ in purgatory and not 16# in turn leaves some undefined symbols like __fentry__ in purgatory and not
17# sure how to relocate those. Like kexec-tools, use custom flags. 17# sure how to relocate those. Like kexec-tools, use custom flags.
18 18
19KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes -fno-zero-initialized-in-bss -fno-builtin -ffreestanding -c -MD -Os -mcmodel=large 19KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes -fno-zero-initialized-in-bss -fno-builtin -ffreestanding -c -Os -mcmodel=large
20KBUILD_CFLAGS += -m$(BITS) 20KBUILD_CFLAGS += -m$(BITS)
21KBUILD_CFLAGS += $(call cc-option,-fno-PIE) 21KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
22 22