]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: fix mismatch between .version and include/generated/compile.h
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 10 Feb 2020 20:06:34 +0000 (05:06 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 10 Feb 2020 20:18:40 +0000 (05:18 +0900)
commitf9e739758dbbd29eeacb391bce5a595b77b551e0
tree27745cf76844b8ad2873162c0a4ece0ef057bbeb
parent7e7993bafaccab9e2e9b3fde1ff7acce018f654b
kbuild: fix mismatch between .version and include/generated/compile.h

Since commit 7e2ebbf623fb ("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: 7e2ebbf623fb ("kbuild: do not create orphan built-in.a or obj-y objects")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/link-vmlinux.sh