On Thu, Oct 15, 2026 at 10:19:08AM +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 for dtb and dtbo generation and the DEVICE_TREE_DEBUG diff,
> so the shell command stays short. The flags are still compared and
> saved with the command, so a change to them rebuilds the output, and
> the file is only written when a rebuild is needed.
> dts/upstream/Makefile uses short relative include paths and is left
> unchanged.
> 
> GNU Make 4.0 is now the enforced minimum, so using $(file ...) is safe.
> 
> Fixes: 3a4e5944c96c ("Makefile: Allow upstream DT subtree to provide DT 
> includes")
> Signed-off-by: Suraj Kakade <[email protected]>

This seem similar to, but not exactly, what's in the linux kernel
currently. Is this based on a change there, and if so please update the
commit message similar to part 1. Thanks.

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to