[PATCH v2 00/13] kbuild: second round of Clang LTO refactoring

From: Masahiro Yamada
Date: Tue Aug 31 2021 - 03:41:16 EST



Masahiro Yamada (13):
kbuild: move objtool_args back to scripts/Makefile.build
kbuild: rename __objtool_obj to objtool
kbuild: store the objtool command in *.cmd files
kbuild: factor out OBJECT_FILES_NON_STANDARD check into a macro
kbuild: detect objtool update without using .SECONDEXPANSION
kbuild: reuse $(cmd_objtool) for cmd_cc_lto_link_modules
kbuild: do not create built-in.a.symversions or lib.a.symversions
kbuild: build modules in the same way with/without Clang LTO
kbuild: add cmd_and_savecmd macro
kbuild: rebuild modules when objtool is updated for CONFIG_LTO_CLANG
kbuild: always postpone CRC links for module versioning
kbuild: merge cmd_modversions_c and cmd_modversions_S
kbuild: merge cmd_ar_builtin and cmd_ar_module

scripts/Kbuild.include | 6 +-
scripts/Makefile.build | 207 ++++++++++++++++----------------------
scripts/Makefile.lib | 27 ++---
scripts/Makefile.modfinal | 4 +-
scripts/Makefile.modpost | 7 +-
scripts/link-vmlinux.sh | 31 +++---
scripts/merge-symvers.pl | 52 ++++++++++
scripts/mod/modpost.c | 6 +-
8 files changed, 175 insertions(+), 165 deletions(-)
create mode 100644 scripts/merge-symvers.pl

--
2.30.2