summaryrefslogtreecommitdiff
path: root/init/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-08-28 11:39:54 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2022-09-29 04:40:15 +0900
commita55f283e8b473a3124705934a17d0ad61e34e6c1 (patch)
tree5d60604e4c9919b9d0ae6f860ee2e2ec237b913a /init/Makefile
parent2df8220cc511326508ec4da2f43ef69311bdd7b9 (diff)
kbuild: generate include/generated/compile.h in top Makefile
Now that UTS_VERSION was separated out, this header can be generated much earlier, and probably the top Makefile is a better place to do it than init/Makefile. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'init/Makefile')
-rw-r--r--init/Makefile8
1 files changed, 1 insertions, 7 deletions
diff --git a/init/Makefile b/init/Makefile
index ba90eb817185..8316c23bead2 100644
--- a/init/Makefile
+++ b/init/Makefile
@@ -45,15 +45,9 @@ $(obj)/utsversion-tmp.h: FORCE
clean-files += utsversion-tmp.h
-$(obj)/version.o: include/generated/compile.h $(obj)/utsversion-tmp.h
+$(obj)/version.o: $(obj)/utsversion-tmp.h
CFLAGS_version.o := -include $(obj)/utsversion-tmp.h
-filechk_compile.h = $(srctree)/scripts/mkcompile_h \
- "$(UTS_MACHINE)" "$(CONFIG_CC_VERSION_TEXT)" "$(LD)"
-
-include/generated/compile.h: FORCE
- $(call filechk,compile.h)
-
#
# Build version-timestamp.c with final UTS_VERSION
#