]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: invoke modpost only when input files are updated
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 1 Jun 2020 05:57:12 +0000 (14:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 6 Jun 2020 14:38:12 +0000 (23:38 +0900)
commitc940cb18d3543b3714979602b1463fab197fcaca
tree2c150062375bf949ddfe8cd1623e9cfc143fb969
parent61c95a6d0d763f5ac45d7c4ace8c4a4db5f21e51
modpost: invoke modpost only when input files are updated

Currently, the second pass of modpost is always invoked when you run
'make' or 'make modules' even if none of modules is changed.

Use if_changed to invoke it only when it is necessary.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/Makefile.modpost
scripts/mod/modpost.c