Use absolute paths for src and srctree when calling dtbs_check via
sub-make command. This fixes dtbs checks not working.

Without this change, we see errors like:

    find: ‘dts/upstream/Bindings’: No such file or directory

This resulted in no schemas to be parsed and therefore no useful checks
were done.

Since we do not want to modify dts/upstream/Makefile, as it would be
written over when we pull upstream changes, we make the changes in the
U-Boot Makefile.

Signed-off-by: David Lechner <[email protected]>
---
 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index c5cc8276fa0..8e4009a18df 100644
--- a/Makefile
+++ b/Makefile
@@ -1455,7 +1455,9 @@ dtbs_check: dt_binding_check dtbs
 
 DT_BINDING_DIR := dts/upstream/Bindings
 dt_binding_check: scripts_dtc
-       $(Q)$(MAKE) $(build)=$(DT_BINDING_DIR) 
$(DT_BINDING_DIR)/processed-schema.json
+       $(Q)$(MAKE) $(build)=$(DT_BINDING_DIR) srctree=$(abspath $(srctree)) \
+               src=$(abspath $(srctree))/$(DT_BINDING_DIR) \
+               $(DT_BINDING_DIR)/processed-schema.json
 
 quiet_cmd_copy = COPY    $@
       cmd_copy = cp $< $@

---
base-commit: baa64b2f892890f00a377eac4a3e685472bb56b5
change-id: 20260806-fix-dtbs-check-a237cfb79b1f

Best regards,
--  
David Lechner <[email protected]>

Reply via email to