Commit 92045954058671fdd0ccf031ca06611ce1d929d1
Committed by
Michal Marek
1 parent
f7f16b7799
Exists in
master
and in
7 other branches
kbuild: move compile.h to include/generated
Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
Showing 4 changed files with 4 additions and 9 deletions Side-by-side Diff
.gitignore
arch/x86/boot/version.c
init/Makefile
... | ... | @@ -15,13 +15,9 @@ |
15 | 15 | mounts-$(CONFIG_BLK_DEV_INITRD) += do_mounts_initrd.o |
16 | 16 | mounts-$(CONFIG_BLK_DEV_MD) += do_mounts_md.o |
17 | 17 | |
18 | -# files to be removed upon make clean | |
19 | -clean-files := ../include/linux/compile.h | |
20 | - | |
21 | 18 | # dependencies on generated files need to be listed explicitly |
19 | +$(obj)/version.o: include/generated/compile.h | |
22 | 20 | |
23 | -$(obj)/version.o: include/linux/compile.h | |
24 | - | |
25 | 21 | # compile.h changes depending on hostname, generation number, etc, |
26 | 22 | # so we regenerate it always. |
27 | 23 | # mkcompile_h will make sure to only update the |
... | ... | @@ -30,7 +26,7 @@ |
30 | 26 | chk_compile.h = : |
31 | 27 | quiet_chk_compile.h = echo ' CHK $@' |
32 | 28 | silent_chk_compile.h = : |
33 | -include/linux/compile.h: FORCE | |
29 | +include/generated/compile.h: FORCE | |
34 | 30 | @$($(quiet)chk_compile.h) |
35 | 31 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \ |
36 | 32 | "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(KBUILD_CFLAGS)" |