summaryrefslogtreecommitdiff
path: root/init/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-04-04 00:24:59 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2020-04-08 18:13:45 +0300
commit01a6126b5f7efdf75480a2b970377f5724cb885a (patch)
treeb15877387abc1c366dd3d30ef199bdcc9a6280ae /init/Makefile
parent0f44fbc162b737ff6251ae248184390ae2279fee (diff)
downloadlinux-01a6126b5f7efdf75480a2b970377f5724cb885a.tar.xz
kbuild: do not pass $(KBUILD_CFLAGS) to scripts/mkcompile_h
scripts/mkcompile_h uses $(CC) only for getting the version string. I suspected there was a specific reason why the additional flags were needed, and dug the commit history. This code dates back to at least 2002 [1], but I could not get any more clue. Just get rid of it. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=29f3df7eba8ddf91a55183f9967f76fbcc3ab742 Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'init/Makefile')
-rw-r--r--init/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/Makefile b/init/Makefile
index 30aa8ab11120..d45e967483b2 100644
--- a/init/Makefile
+++ b/init/Makefile
@@ -35,4 +35,4 @@ include/generated/compile.h: FORCE
@$($(quiet)chk_compile.h)
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
"$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" \
- "$(CONFIG_PREEMPT_RT)" "$(CC) $(KBUILD_CFLAGS)" "$(LD)"
+ "$(CONFIG_PREEMPT_RT)" "$(CC)" "$(LD)"