]> 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)
commit8a094d714204c7db61d5d208fcb3eff489d7f50b
tree30975d9cc2decf951996d2dab135111ec89aea07
parentcea01426903715549fa17095a8467d68dcff37ba
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