This patch refactors the code as outlined in: https://lore.kernel.org/linux-kbuild/CAK7LNAR-VXwHFEJqCcrFDZj+_4+Xd6oynbj_0eS8N504_ydmyw@xxxxxxxxxxxxxx/ First some patches refactor certs/Makefile. This Makefile is written in a too complicated way. I will revert cd8c917a56f20f48748dd43d9ae3caff51d5b987 after this lands in the upstream. Masahiro Yamada (10): certs: use $@ to simplify the key generation rule certs: unify duplicated cmd_extract_certs and improve the log certs: remove unneeded -I$(srctree) option for system_certificates.o certs: refactor file cleaning certs: remove misleading comments about GCC PR kbuild: stop using config_filename in scripts/Makefile.modsign certs: simplify $(srctree)/ handling and remove config_filename macro kbuild: do not include include/config/auto.conf from shell scripts kbuild: do not quote string values in include/config/auto.conf microblaze: use built-in function to get CPU_{MAJOR,MINOR,REV} Makefile | 6 +-- arch/arc/Makefile | 4 +- arch/arc/boot/dts/Makefile | 4 +- arch/h8300/boot/dts/Makefile | 6 +-- arch/microblaze/Makefile | 8 ++-- arch/nds32/boot/dts/Makefile | 7 +-- arch/nios2/boot/dts/Makefile | 2 +- arch/openrisc/boot/dts/Makefile | 7 +-- arch/powerpc/boot/Makefile | 2 +- arch/riscv/boot/dts/canaan/Makefile | 4 +- arch/sh/boot/dts/Makefile | 4 +- arch/xtensa/Makefile | 2 +- arch/xtensa/boot/dts/Makefile | 5 +- certs/Makefile | 48 ++++++------------- drivers/acpi/Makefile | 2 +- drivers/base/firmware_loader/builtin/Makefile | 4 +- init/Makefile | 2 +- net/wireless/Makefile | 4 +- scripts/Kbuild.include | 47 ------------------ scripts/Makefile.modinst | 4 +- scripts/gen_autoksyms.sh | 6 +-- scripts/kconfig/confdata.c | 2 +- scripts/link-vmlinux.sh | 47 +++++++++--------- scripts/setlocalversion | 9 ++-- usr/Makefile | 2 +- 25 files changed, 74 insertions(+), 164 deletions(-) -- 2.32.0