summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-02-15 15:04:55 +0100
committerTom Rini <[email protected]>2026-03-03 10:34:57 -0600
commitf473a453b0c03d0042b4422de1d822274d2e2d4e (patch)
tree2ab839cfa67890c0b68a553488b9c44677c167de /scripts
parent4284306d22c5b6d64ecd62b462551d9d313c8104 (diff)
kbuild: Drop phandle from diff between base DT and U-Boot augmented DT if DEVICE_TREE_DEBUG=1
Remove the "phandle = <0x..>;" properties from the DT diff between unpatched base DT and U-Boot augmented DT if DEVICE_TREE_DEBUG=1. The phandle numbers are only generated by DTC, but not referenced anywhere in the DT, because the original references are specifically not replaced by phandle numbers when recent DTC is invoked with the -I dts -O dts flags . The phandle number are therefore only a noise in the diff, filter them out. Signed-off-by: Marek Vasut <[email protected]> Tested-by: Quentin Schulz <[email protected]> Reviewed-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.lib2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 377a4700b94..7386353e0cc 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -437,6 +437,8 @@ cmd_dtc_diff = \
$(DTC) -s -O dts -o [email protected] -b 0 \
-i $(dir $<) -i $(u_boot_dtsi_loc) $(DTC_FLAGS) $(dtc-tmp) || \
(echo "Check $(shell pwd)/$(pre-tmp) for errors" && false); \
+ sed -i '/\<phandle\> = <0x[0-9a-f]\+>;/ d' [email protected]; \
+ sed -i '/\<phandle\> = <0x[0-9a-f]\+>;/ d' [email protected]; \
dtn-tmp = $(subst $(comma),_,$(dot-target).dtn.tmp)