]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: fix the modules order between drivers and libs
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 13 Aug 2022 23:09:28 +0000 (08:09 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 20 Aug 2022 17:47:49 +0000 (02:47 +0900)
commit8f14cd4b505da4b58ff83c8fac59d0e654772d52
treec112eb040ddae4684f3edaadb6efdf00b11f3ae8
parent485fb8c56376e9adc261b05ee06e3cfacddbc248
kbuild: fix the modules order between drivers and libs

Commit f07dcb684fc9 ("kbuild: update modules.order only when contained
modules are updated") accidentally changed the modules order.

Prior to that commit, the modules order was determined based on
vmlinux-dirs, which lists core-y/m, drivers-y/m, libs-y/m, in this order.

Now, subdir-modorder lists them in a different order: core-y/m, libs-y/m,
drivers-y/m.

Presumably, there was no practical issue because the modules in drivers
and libs are orthogonal, but there is no reason to have this distortion.

Get back to the original order.

Fixes: f07dcb684fc9 ("kbuild: update modules.order only when contained modules are updated")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile