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)
commit436b2ac603d58504f38041a0cd8adb5aeace992b
tree2c150062375bf949ddfe8cd1623e9cfc143fb969
parent269a535ca931b754a40dda3ab60514e68773c759
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