]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: update modules.order only when contained modules are updated
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 1 Jun 2020 05:57:00 +0000 (14:57 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 3 Jun 2020 04:22:17 +0000 (13:22 +0900)
commit2818943583f19c979065721bf5b7d669b4ef0b60
treeaf11987104ffb472eb6fa279204bcc2eb18d71ed
parentcec4f1f7c81b21553cc4630d294a4d2ab164a31f
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>
Makefile
scripts/Makefile.build
scripts/Makefile.lib