On 2026-10-17T17:34:28, Marek Vasut <[email protected]> wrote: > kbuild: Pass -Eno-node_name_not_empty to DTC if supported > > Since DTC 7c78c8542d73 ("Added empty node name check") , U-Boot binman > use of placeholder node names such as @fdt-SEQ and @config-SEQ triggers > DTC ERROR (node_name_not_empty). Inhibit the error, as these placeholder > nodes are updated by binman and replaced by proper nodes, the encoding > in DTB is temporary. Since -Eno-node_name_not_empty is only available in > DTC 1.8.0 and newer, introduce "dtc-option" make function which is very > similar to "cc-option" and other such Kbuild functions, and add the DTC > option conditionally. > > This can be triggered on e.g. Debian Testing (as of 2026-09-07) when > using system DTC to build a DT which include binman placeholder nodes: > > $ export DTC=/usr/bin/dtc > $ $DTC --version > Version: DTC 1.8.1 > $ r8a779g3_sparrowhawk_defconfig > $ make -j$(nproc) > ... > ./arch/arm/dts/r8a779g0-u-boot.dtsi:61.16-70.9: ERROR (node_name_not_empty): > /binman/section/u-boot/fit/images/@fdt-SEQ: Empty node name > ./arch/arm/dts/r8a779g0-u-boot.dtsi:76.19-80.9: ERROR (node_name_not_empty): > /binman/section/u-boot/fit/configurations/@config-SEQ: Empty node name > ERROR: Input tree has errors, aborting (use -f to force output) > Check > /path/to/dts/upstream/src/arm64/renesas/.r8a779g3-sparrow-hawk.dtb.pre.tmp > for errors > > Signed-off-by: Marek Vasut <[email protected]> > > scripts/Makefile.lib | 13 +++++++++++++ > 1 file changed, 13 insertions(+)
Reviewed-by: Simon Glass <[email protected]>
