kbuild: move .vmlinux.objs rule to Makefile.modpost
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 24 Sep 2022 18:19:11 +0000 (03:19 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 28 Sep 2022 19:42:00 +0000 (04:42 +0900)
commit26ef40de5cbb24728a34a319e8d42cdec99f186c
tree4d1b3432b9397117b06ee1156e8a9ac6f29da9a6
parent5750121ae7382ebac8d47ce6d68012d6cd1d7926
kbuild: move .vmlinux.objs rule to Makefile.modpost

.vmlinux.objs is used by modpost, so scripts/Makefile.modpost is
a better place to generate it.

It is used only when CONFIG_MODVERSIONS=y. It should be guarded
by "ifdef CONFIG_MODVERSIONS".

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Makefile
scripts/Makefile.modpost
scripts/link-vmlinux.sh