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)
commit9f69a496f1001bd27c484da43da30b2cdc8e06ed
tree30975d9cc2decf951996d2dab135111ec89aea07
parent30527cefb37d2ad796feb1f469cd097dee8420cb
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