On Mon, Aug 24, 2026 at 10:17:18AM +0530, Suraj Kakade wrote:
> cmd_dtc inlines dtc_cpp_flags (including every upstream dtsi -I
> path) in the HOSTCC command. With a long $(srctree) that command is
> too large for /bin/sh -c and Make fails with "Argument list too
> long" while building a .dtb.
>
> Write the flags to a per-target .dtc.flags.tmp file and pass @file to
> HOSTCC/CPP so the shell command stays short.
>
> This change requires GNU Make >= 4.0, since $(file ...) is not
> supported by Make 3.x.
>
> Fixes: d31ff219a833 ("Makefile.lib: find capsule ESL dtsi file with
> CONFIG_OF_UPSTREAM")
> Fixes: 1e7883f6325a ("dtbo: Fix dtbo generation rules")
> Signed-off-by: Suraj Kakade <[email protected]>The linux kernel, and so Kbuild, says that 4.0 is the minimum version of GNU make required, so that is true for us as well, so this is fine. Reviewed-by: Tom Rini <[email protected]> -- Tom
signature.asc
Description: PGP signature
