Re: [RFC PATCH 1/6] kbuild: factor the userspace ABI flags out into KBUILD_USERABI
From: Thomas Weißschuh
Date: Tue Oct 13 2026 - 17:39:46 EST
On 2026-10-11 19:36:40-0400, Sasha Levin wrote:
> KBUILD_USERCFLAGS and KBUILD_USERLDFLAGS pick up the flags that select
> the target ABI for userspace programs: --target= under clang, -m32/-m64,
> or CONFIG_ARCH_USERFLAGS. Collect those in KBUILD_USERABI and export it,
> so programs built outside of kbuild's userprogs can be compiled for the
> same ABI without also inheriting kbuild's warning and language flags.
>
> No functional change: KBUILD_USERCFLAGS and KBUILD_USERLDFLAGS keep the
> same value.
>
> Assisted-by: LLM
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
Reviewed-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
> ---
> Makefile | 12 +++++++-----
> 1 file changed, 7 insertions(+), 5 deletions(-)
(...)