Skip to content

Commit

Permalink
dts: fix build of the external device tree
Browse files Browse the repository at this point in the history
Return false on Makefile error to detect error as soon as possible.
Without this patch, the Makefile error is displayed but U-Boot
compilation continue and binary files are generated.

Fixes: b702eab ("dts: update Makefile to build the external device tree")
Signed-off-by: Patrick Delaunay <[email protected]>
Change-Id: I995a4423a01a8c27ec9cab307af6457baec7584a
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/413607
ACI: CIBUILD <[email protected]>
Tested-by: Amit MITTAL <[email protected]>
ACI: CITOOLS <[email protected]>
  • Loading branch information
patrickdelaunay authored and ashishverma2691 committed Oct 25, 2024
1 parent 82457f5 commit 2cb607c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ arch-dtbs:

PHONY += arch-ext-dtbs
arch-ext-dtbs: arch-dtbs
$(Q)test -e $(EXT_DTS) && (\
echo " EXT_DTS in $(EXT_DTS)";\
$(Q)if [ -e $(EXT_DTS) ]; then \
echo " EXT_DTS in $(EXT_DTS)"; \
$(MAKE) $(build)=$(EXT_DTS) dtbs && \
cp $(EXT_DTS)/*.dtb arch/$(ARCH)/dts/ || \
/bin/true) || /bin/true
(cp $(EXT_DTS)/*.dtb arch/$(ARCH)/dts/ || \
/bin/true) || /bin/false; \
else /bin/true; fi

ifeq ($(CONFIG_SPL_BUILD),y)
obj-$(CONFIG_OF_EMBED) := dt-spl.dtb.o
Expand Down

0 comments on commit 2cb607c

Please sign in to comment.