Skip to content

Commit 01a6126

Browse files
committed
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 <[email protected]> Reviewed-by: Kees Cook <[email protected]>
1 parent 0f44fbc commit 01a6126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ include/generated/compile.h: FORCE
3535
@$($(quiet)chk_compile.h)
3636
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \
3737
"$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" \
38-
"$(CONFIG_PREEMPT_RT)" "$(CC) $(KBUILD_CFLAGS)" "$(LD)"
38+
"$(CONFIG_PREEMPT_RT)" "$(CC)" "$(LD)"

0 commit comments

Comments
 (0)