Skip to content

Commit 083bc0e

Browse files
committed
kbuild: fix mismatch between .version and include/generated/compile.h
Since commit 56d5893 ("kbuild: do not create orphan built-in.a or obj-y objects"), scripts/link-vmlinux.sh does nothing when descending into init/. Once the version number becomes out of sync between .version and include/generated/compile.h, it is not self-healing. [How to reproduce] $ echo 100 > .version $ make You will see the number in the .version is always bigger than that in compile.h by one. After this, every time you run 'make', the vmlinux is re-linked even when none of source files is updated. Fixes: 56d5893 ("kbuild: do not create orphan built-in.a or obj-y objects") Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 9d1b389 commit 083bc0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/link-vmlinux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ else
239239
fi;
240240

241241
# final build of init/
242-
${MAKE} -f "${srctree}/scripts/Makefile.build" obj=init
242+
${MAKE} -f "${srctree}/scripts/Makefile.build" obj=init need-builtin=1
243243

244244
#link vmlinux.o
245245
info LD vmlinux.o

0 commit comments

Comments
 (0)