]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6cd1dd93e058c804ed58b02d462b6e74d44c4538
tree2a68dd9ebc4b7594fc19057d35fdc7a20d333105
parent273dcc3b44e0e9c5e52160ee66a692d5faa40a1c
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