Re: [PATCH v11 3/3] kbuild: distributed build support for Clang ThinLTO

From: Nathan Chancellor

Date: Fri May 29 2026 - 15:01:32 EST


On Thu, May 28, 2026 at 04:09:10PM -0700, Rong Xu wrote:
> On Thu, May 28, 2026 at 3:07 PM Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
> > Sashiko has another comment as well.
> >
> > https://sashiko.dev/#/patchset/26003?part=3
>
> Are you referring to KBUILD_VMLINUX_OBJS and KBUILD_VMLINUX_LIBS part?

Yes.

> I'm not sure if that's true: in my build, KBUILD_VMLINUX_OBJS includes
> lib/lib.a etc.
> In line 1296 of Makefile:
> KBUILD_VMLINUX_OBJS := built-in.a $(patsubst %/, %/lib.a, $(filter %/,
> $(libs-y)))
>
> We can see native objects in lib/*.
> % find lib -name '*.thinlto-native.o' |wc
> 204 204 7104

Ah yes, I should have double checked that before brining it up.
KBUILD_VMLINUX_LIBS would contain archives such as
drivers/firmware/efi/libstub/lib.a, which we obviously do not want to
process into vmlinux.a, so I think that comment is obviously invalid.

--
Cheers,
Nathan