From a4ff471970e8f749dc16643ee7e354a3fcfa2ad7 Mon Sep 17 00:00:00 2001 From: Horst Kronstorfer Date: Thu, 12 Jul 2012 02:58:32 +0000 Subject: dts/Makefile: Check for empty $(LDSCRIPT) 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 --- dts/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dts') diff --git a/dts/Makefile b/dts/Makefile index 055b8ac..50f9066 100644 --- a/dts/Makefile +++ b/dts/Makefile @@ -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)` ;\ -- cgit v1.1