Re: [PATCH v5 0/2] kbuild: distributed build support for Clang ThinLTO
From: Piotr Gorski
Date: Tue Oct 28 2025 - 15:22:59 EST
Built and booted without any problems.
lucjan at cachyos ~ 20:19:27
❯ zgrep -i THIN_DIST /proc/config.gz
CONFIG_LTO_CLANG_THIN_DIST=y
lucjan at cachyos ~ 20:19:45
❯ cat /proc/version
Linux version 6.17.5-1.3-cachyos (linux-cachyos@cachyos) (clang version 21.1.3, LLD 21.1.4) #1 SMP PREEMPT_DYNAMIC Tue, 28 Oct 2025 18:39:23 +0000
Thanks!
W dniu 28.10.2025 o 19:28, xur@xxxxxxxxxx pisze:
From: Rong Xu <xur@xxxxxxxxxx>
ChangeLog:
V5: Handle single quote escaping in echo _c_flags to fix
Piotr Gorski's reported error.
V4: This is based on the reimplementation provided by Masahiro Yamada
on May 26. The difference is that this version now saves the compiler
flags (_c_flags) from the Front-End (FE) compilation and re-uses them
for the subsequent Back-End (BE) compilation.
Rong Xu (2):
kbuild: move vmlinux.a build rule to scripts/Makefile.vmlinux_a
kbuild: distributed build support for Clang ThinLTO
.gitignore | 2 +
Makefile | 25 +++++-------
arch/Kconfig | 19 +++++++++
scripts/Makefile.lib | 7 ++++
scripts/Makefile.thinlto | 40 ++++++++++++++++++
scripts/Makefile.vmlinux_a | 83 ++++++++++++++++++++++++++++++++++++++
scripts/mod/modpost.c | 15 +++++--
7 files changed, 174 insertions(+), 17 deletions(-)
create mode 100644 scripts/Makefile.thinlto
create mode 100644 scripts/Makefile.vmlinux_a
base-commit: dcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa