|
|
Log in / Subscribe / Register

kbuild: distributed build support for Clang ThinLTO

From:  xur-AT-google.com
To:  Masahiro Yamada <masahiroy-AT-kernel.org>, Nathan Chancellor <nathan-AT-kernel.org>, Nicolas Schier <nicolas.schier-AT-linux.dev>, Nick Desaulniers <nick.desaulniers+lkml-AT-gmail.com>, Bill Wendling <morbo-AT-google.com>, Justin Stitt <justinstitt-AT-google.com>, Miguel Ojeda <ojeda-AT-kernel.org>, Thomas Gleixner <tglx-AT-linutronix.de>, Alice Ryhl <aliceryhl-AT-google.com>, Sami Tolvanen <samitolvanen-AT-google.com>, "Mike Rapoport (Microsoft)" <rppt-AT-kernel.org>, Rafael Aquini <aquini-AT-redhat.com>, Michael Ellerman <mpe-AT-ellerman.id.au>, Stafford Horne <shorne-AT-gmail.com>, Christophe Leroy <christophe.leroy-AT-csgroup.eu>, Piotr Gorski <piotrgorski-AT-cachyos.org>, Rong Xu <xur-AT-google.com>, Teresa Johnson <tejohnson-AT-google.com>
Subject:  [PATCH v4 0/2] kbuild: distributed build support for Clang ThinLTO
Date:  Mon, 27 Oct 2025 22:09:12 +0000
Message-ID:  <20251027220914.2665978-1-xur@google.com>
Cc:  linux-kernel-AT-vger.kernel.org, linux-kbuild-AT-vger.kernel.org, llvm-AT-lists.linux.dev
Archive-link:  Article

From: Rong Xu <xur@google.com>

This V4 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
-- 
2.51.1.838.g19442a804e-goog




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds