commit | b2c88554912267483baf8b4f5ae0a1bff529f6a3 | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <masahiroy@kernel.org> | Mon Jun 01 14:57:00 2020 +0900 |
committer | Masahiro Yamada <masahiroy@kernel.org> | Wed Jun 03 13:22:17 2020 +0900 |
tree | af11987104ffb472eb6fa279204bcc2eb18d71ed | |
parent | f0d50ca045e44dd7b423c2ae69f6a598f07d93e3 [diff] |
kbuild: update modules.order only when contained modules are updated Make modules.order depend on $(obj-m), and use if_changed to build it. This will avoid unneeded update of modules.order, which will be useful to optimize the modpost stage. Currently, the second pass of modpost is always invoked. By checking the timestamp of modules.order, we can avoid the unneeded modpost. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>