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)
commit47801c97deb71b9e279c15a02a44cf00aa11e7d9
tree645ba10bf5d721b354965ce0d7a151ba7e33a4fb
parente21a712a9685488f5ce80495b37b9fdbe96c230d
kbuild: revive single target %.ko

I removed the single target %.ko in commit ff9b45c55b26 ("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: ff9b45c55b26 ("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