]> 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)
commit6eed112ca3e7164e9ea75b90ab80ffb8e1fd9815
tree2c150062375bf949ddfe8cd1623e9cfc143fb969
parent37db3808c8f8bd639a9aaa05c5c81ee5094d1b5f
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