]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dts/Makefile: Check for empty $(LDSCRIPT)
authorHorst Kronstorfer <hkronsto@frequentis.com>
Thu, 12 Jul 2012 02:58:32 +0000 (02:58 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 10 Aug 2012 21:45:57 +0000 (23:45 +0200)
Make sure that $(LDSCRIPT) is not empty before calling process_lds
with 'cat $(LDSCRIPT)' else cat will block waiting for input from
stdin.

Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
dts/Makefile

index 055b8ac599ad1355f049f58265b57d4709005600..50f9066115d34b66a07dcd615ab4e33816b40289 100644 (file)
@@ -67,8 +67,9 @@ $(obj)dt.o: $(DT_BIN)
        # We look in the LDSCRIPT first.
        # Then try the linker which should give us the answer.
        # Then check it worked.
-       oformat=`$(call process_lds,cat $(LDSCRIPT),FORMAT)` ;\
-       oarch=`$(call process_lds,cat $(LDSCRIPT),ARCH)` ;\
+       [ -n "$(LDSCRIPT)" ] && \
+               oformat=`$(call process_lds,cat $(LDSCRIPT),FORMAT)` && \
+               oarch=`$(call process_lds,cat $(LDSCRIPT),ARCH)` ;\
        \
        [ -z $${oformat} ] && \
                oformat=`$(call process_lds,$(GET_LDS),FORMAT)` ;\