Skip to content

Commit 2cb607c

Browse files
patrickdelaunayashishverma2691
authored andcommitted
dts: fix build of the external device tree
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 <patrick.delaunay@foss.st.com> Change-Id: I995a4423a01a8c27ec9cab307af6457baec7584a Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/413607 ACI: CIBUILD <MDG-smet-aci-builds@list.st.com> Tested-by: Amit MITTAL <amit.mittal@st.com> ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
1 parent 82457f5 commit 2cb607c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

dts/Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ arch-dtbs:
4545

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

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

0 commit comments

Comments
 (0)