Re: [PATCH net-next v2 1/2] tools: ynl: Allow cross-compiling ynl and associated tools
From: Matthieu Baerts
Date: Thu Sep 03 2026 - 13:36:36 EST
On 03/09/2026 17:55, Maxime Chevallier (Netdev Foundation) wrote:
> The ynl tool and libraries may be built standalone or through the
> drivers/net/hw selftest machinery. This may target a different arch, so
> we need to account for the cross-compiling options such as CROSS_COMPILE
> or the LLVM-specific variables.
>
> Let's include the tools/scripts/Makefile.include that deals with the
> CC/AR resolution.
>
> Fixup the ynltool CFLAGS handling to use +=, so that we don't override
> the ones set in Makefile.include
Reviewed-by: Matthieu Baerts (Netdev Foundation) <matttbe@xxxxxxxxxx>