Re: [RFC PATCH v2 0/7] kbuild: build the userspace tools in tools/ with the kernel
From: Thorsten Leemhuis
Date: Tue Oct 20 2026 - 09:34:49 EST
On 10/20/26 14:43, Sasha Levin wrote:
> On Tue, Oct 20, 2026 at 01:52:17PM +0200, Thorsten Leemhuis wrote:
>
> For allmodconfig the main reason is that perf's feature detection does not
> always turn a feature off when its library is missing: [...]
>
> You remember it right. The difference is that Kconfig probes for those, so a
> missing tool turns the option off rather than failing the build, and the result
> is recorded in .config.
>
> That is how I'd like to add the selftests that need libraries: a Kconfig
> probe per library, so allmodconfig builds them where the libraries are
> installed and .config says which ones were built.
Okay, now this makes more sense to me, many thx for taking the time for
a reply!
Ciao, Thorsten