kbuild: change module.order to list *.o instead of *.ko
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 11 Dec 2022 13:04:07 +0000 (22:04 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 14 Dec 2022 06:42:40 +0000 (15:42 +0900)
commitf65a486821cfd363833079b2a7b0769250ee21c9
treee80172fa864beca08f6ca876eff2f523128782a0
parent875ef1a57f32fcb91010dc9bc8bd1166956a579e
kbuild: change module.order to list *.o instead of *.ko

scripts/Makefile.build replaces the suffix .o with .ko, then
scripts/Makefile.modpost calls the sed command to change .ko back
to the original .o suffix.

Instead of converting the suffixes back-and-forth, store the .o paths
in modules.order, and replace it with .ko in 'make modules_install'.

This avoids the unneeded sed command.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Makefile
scripts/Makefile.build
scripts/Makefile.modfinal
scripts/Makefile.modinst
scripts/Makefile.modpost
scripts/clang-tools/gen_compile_commands.py
scripts/gen_autoksyms.sh
scripts/mod/modpost.c
scripts/modules-check.sh