]> git.baikalelectronics.ru Git - kernel.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)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 1 Jun 2020 12:50:43 +0000 (21:50 +0900)
commit1523c4aa818761cf8c356c98afa82fb74464d5a1
tree861cc100eb61225ae9f223326173b7990309f067
parente58cec7ebacd4e46a50cc3034356238d9d626ccb
kbuild: force to build vmlinux if CONFIG_MODVERSION=y

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>
Makefile