Re: [PATCH v4 0/7] kbuild: build the userspace tools in tools/ with the kernel
From: Nathan Chancellor
Date: Mon Nov 30 2026 - 21:35:25 EST
Hi Sasha,
On Mon, Nov 16, 2026 at 12:35:13PM -0700, Nathan Chancellor wrote:
> On Mon, Nov 16, 2026 at 01:24:26PM -0500, Sasha Levin wrote:
> > Will you be picking this up through the kbuild tree?
> >
> > 3/7 has acks from Arnaldo and Namhyung, 4/7 from Namhyung, and Shuah and
> > Thomas reviewed 5/7 and 1/7. What's left without a review is the kbuild
> > side: 2/7, 6/7 and 7/7.
> >
> > If you'd rather see it go in some other way, or want something done
> > differently, let me know.
>
> I intend to take a look at this either this week or next. I assume we
> will want to take this via the Kbuild if/when we are happy with the
> implementation but I cannot make any guarantee. I totally empathize with
> the reasons for wanting this listed in the commit message but it is a
> big commitment on both Kbuild's part and other maintainers to integrate
> tools/ into the build in this manner.
I took this for a spin on next-20261130 on an arm64 test box. Everything
built successfully, although I did have some warnings with clang-23 (I
think you have sent patches for some of them but I didn't check too
closely). Some initial observations from this session:
1. Some of the tests do not respect '-s', resulting in a decent amount
of additional output for allmodconfig (see recording below).
2. I see some issues with warnings being garbled, maybe from too much
parallel building?
https://asciinema.org/a/QZ80lob7lWhvoEvp
3. I worry about warnings coming from the tools build not being as easy
to investigate because the warning does not always have the absolute
or srctree relative file name, requiring an additional command to
search the tree for the file in tools before being able to fix it. It
is just unfortunate ergonomics.
I'll try to take a closer look at the implementation soon.
--
Cheers,
Nathan