Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 948727a3 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Pranav Vashi
Browse files

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



Change-Id: If9319d8b555e58f0173b756bbd2c2254efccb9cd
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Signed-off-by: default avatarvoidanix <voidanix@keyedlimepie.org>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarPranav Vashi <neobuddy89@gmail.com>
parent ee719caa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)"	\
	"$(CC) $(KBUILD_CFLAGS)" "$(LD)"
	"$(CC)" "$(LD)"