Skip to content
Commit b2c88554 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent f0d50ca0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment