summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-02-10 21:06:34 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2020-02-10 21:18:40 +0100
commit083bc0e1ce91e2a65a1aecdf8d2c5045e5d46c55 (patch)
tree27745cf76844b8ad2873162c0a4ece0ef057bbeb
parentscripts/kallsyms: fix memory corruption caused by write over-run (diff)
downloadlinux-083bc0e1ce91e2a65a1aecdf8d2c5045e5d46c55.tar.xz
linux-083bc0e1ce91e2a65a1aecdf8d2c5045e5d46c55.zip
kbuild: fix mismatch between .version and include/generated/compile.h
Since commit 56d589361572 ("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: 56d589361572 ("kbuild: do not create orphan built-in.a or obj-y objects") Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
-rwxr-xr-xscripts/link-vmlinux.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
index 1919c311c149..dd484e92752e 100755
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -239,7 +239,7 @@ else
fi;
# 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
info LD vmlinux.o