I sent the first batch of cleanups: https://lore.kernel.org/linux-kbuild/20220405113359.2880241-1-masahiroy@xxxxxxxxxx/T/#t I took 01-06, 09-10. I dropped 07, 08. This is the second batch. Masahiro Yamada (7): kbuild: reuse suffix-search to refactor multi_depend kbuild: make multi_depend work with targets in subdirectory kbuild: reuse real-search to simplify cmd_mod kbuild: split the second line of *.mod into *.usyms kbuild: get rid of duplication in *.mod files kbuild: make *.mod not depend on *.o kbuild: read *.mod to get objects passed to $(LD) or $(AR) .gitignore | 1 + Makefile | 5 +++-- scripts/Makefile.build | 31 ++++++++++++++----------------- scripts/Makefile.lib | 6 +++--- scripts/adjust_autoksyms.sh | 2 +- scripts/gen_autoksyms.sh | 18 +++++++++++------- scripts/mod/sumversion.c | 11 ++--------- 7 files changed, 35 insertions(+), 39 deletions(-) -- 2.32.0