]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kbuild: force to build vmlinux if CONFIG_MODVERSION=y
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 31 May 2020 08:47:06 +0000 (17:47 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2020 07:33:07 +0000 (09:33 +0200)
commit39b21b529fd986f124f683a61ff1f978a312df4d
tree842b61841753f390feb7314bde4b764c9d6d2577
parent2d22b096302cdc721d9ca283514a7993433c5f78
kbuild: force to build vmlinux if CONFIG_MODVERSION=y

commit 4b50c8c4eaf06a825d1c005c0b1b4a8307087b83 upstream.

This code does not work as stated in the comment.

$(CONFIG_MODVERSIONS) is always empty because it is expanded before
include/config/auto.conf is included. Hence, 'make modules' with
CONFIG_MODVERSION=y cannot record the version CRCs.

This has been broken since 2003, commit ("kbuild: Enable modules to be
build using the "make dir/" syntax"). [1]

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=15c6240cdc44bbeef3c4797ec860f9765ef4f1a7
Cc: linux-stable <stable@vger.kernel.org> # v2.5.71+
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Makefile