]> git.ipfire.org Git - thirdparty/linux.git/commit - Makefile
kbuild: rebuild .vmlinux.export.o when its prerequisite is updated
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 28 Sep 2022 06:39:41 +0000 (15:39 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 2 Oct 2022 18:52:58 +0000 (03:52 +0900)
commit5d4aeffbf7092b6bd7b2de71c2cd6fa14dffbad5
tree2a68dd9ebc4b7594fc19057d35fdc7a20d333105
parent7a342e6c7735e13b294374cb0a0f6283d8667496
kbuild: rebuild .vmlinux.export.o when its prerequisite is updated

When include/linux/export-internal.h is updated, .vmlinux.export.o
must be rebuilt, but it does not happen because its rule is hidden
behind scripts/link-vmlinux.sh.

Move it out of the shell script, so that Make can see the dependency
between vmlinux and .vmlinux.export.o.

Move the vmlinux rule to scripts/Makefile.vmlinux.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile
scripts/Makefile.vmlinux
scripts/link-vmlinux.sh