DTC commit cba90ce82064 ("checks: Remove check for graph child addresses")
removed -Wno-graph_child_address command line parameter. Apply this option
only to DTC older than 1.8.0.This can be triggered on e.g. Debian Testing (as of 2026-09-07) when using system DTC: $ export DTC=/usr/bin/dtc $ $DTC --version Version: DTC 1.8.1 $ r8a779g3_sparrowhawk_defconfig $ make -j$(nproc) ... FATAL ERROR: Unrecognized check name "graph_child_address" Check /path/to/dts/upstream/src/arm64/renesas/.r8a779g3-sparrow-hawk.dtb.pre.tmp for errors Signed-off-by: Marek Vasut <[email protected]> --- Cc: David Gibson <[email protected]> Cc: Héctor Orón Martínez <[email protected]> Cc: Niklas Söderlund <[email protected]> Cc: Rasmus Villemoes <[email protected]> Cc: Rob Herring (Arm) <[email protected]> Cc: Simon Glass <[email protected]> Cc: Tom Rini <[email protected]> Cc: Vagrant Cascadian <[email protected]> Cc: [email protected] --- scripts/Makefile.lib | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 330ab3892e9..3817115816b 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -357,7 +357,6 @@ DTC_FLAGS += -Wno-unit_address_vs_reg \ -Wno-unit_address_format \ -Wno-avoid_unnecessary_addr_size \ -Wno-alias_paths \ - -Wno-graph_child_address \ -Wno-simple_bus_reg \ -Wno-unique_unit_address \ -Wno-pci_device_reg @@ -391,6 +390,11 @@ dtc-option = $(call try-run,\ # DTC 1.8.0 and newer, add the option conditionally. DTC_FLAGS += $(call dtc-option, -Eno-node_name_not_empty) +# Since cba90ce82064 ("checks: Remove check for graph child addresses") +# the -Wno-graph_child_address is no longer available. Apply the option +# only to DTC older than 1.8.0. +DTC_FLAGS += $(call dtc-option, -Wno-graph_child_address) + # Generate an assembly file to wrap the output of the device tree compiler quiet_cmd_dt_S_dtb= DTBS $@ # Modified for U-Boot -- 2.53.0
