Commit 083bc0e1 authored by Masahiro Yamada's avatar Masahiro Yamada

kbuild: fix mismatch between .version and include/generated/compile.h

Since commit 56d58936 ("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: 56d58936 ("kbuild: do not create orphan built-in.a or obj-y objects")
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 9d1b3895
...@@ -239,7 +239,7 @@ else ...@@ -239,7 +239,7 @@ else
fi; fi;
# final build of init/ # final build of init/
${MAKE} -f "${srctree}/scripts/Makefile.build" obj=init ${MAKE} -f "${srctree}/scripts/Makefile.build" obj=init need-builtin=1
#link vmlinux.o #link vmlinux.o
info LD vmlinux.o info LD vmlinux.o
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment