mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
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>
This commit is contained in:
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user