]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: split out *.mod out of {single,multi}-used-m rules
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 17 Jul 2019 06:18:00 +0000 (15:18 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 17 Jul 2019 17:19:31 +0000 (02:19 +0900)
commitb39de0e9ce15cc84b966d6edd7a91bc7f3513ff4
tree30975d9cc2decf951996d2dab135111ec89aea07
parent972b773e2b7651dab02527abb81b932cb2d08574
kbuild: split out *.mod out of {single,multi}-used-m rules

Currently, *.mod is created as a side-effect of obj-m.

Split out *.mod as a dedicated build rule, which allows to unify
the %.c -> %.o rule, and remove the single-used-m rule.

This also makes the incremental build of allmodconfig faster because
it saves $(NM) invocation when there is no change in the module.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.build