]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: revive single target %.ko
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 2 Aug 2019 10:23:58 +0000 (19:23 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 9 Aug 2019 16:40:25 +0000 (01:40 +0900)
commite53e95e513bc0cee9413904d3f9d002d6402a87d
tree645ba10bf5d721b354965ce0d7a151ba7e33a4fb
parent1b1e3f6d5a6ff25a6613c83a142ba0d73a10c16d
kbuild: revive single target %.ko

I removed the single target %.ko in commit 95a6fa5f91aa ("kbuild:
modpost: read modules.order instead of $(MODVERDIR)/*.mod") because
the modpost stage does not work reliably. For instance, the module
dependency, modversion, etc. do not work if we lack symbol information
from the other modules.

Yet, some people still want to build only one module in their interest,
and it may be still useful if it is used within those limitations.

Fixes: 95a6fa5f91aa ("kbuild: modpost: read modules.order instead of $(MODVERDIR)/*.mod")
Reported-by: Don Brace <don.brace@microsemi.com>
Reported-by: Arend Van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile
scripts/Makefile.modpost