提交 a4ff4719 编写于 作者: H Horst Kronstorfer 提交者: Wolfgang Denk

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: NHorst Kronstorfer <hkronsto@frequentis.com>
上级 8b5a0264
...@@ -67,8 +67,9 @@ $(obj)dt.o: $(DT_BIN) ...@@ -67,8 +67,9 @@ $(obj)dt.o: $(DT_BIN)
# We look in the LDSCRIPT first. # We look in the LDSCRIPT first.
# Then try the linker which should give us the answer. # Then try the linker which should give us the answer.
# Then check it worked. # Then check it worked.
oformat=`$(call process_lds,cat $(LDSCRIPT),FORMAT)` ;\ [ -n "$(LDSCRIPT)" ] && \
oarch=`$(call process_lds,cat $(LDSCRIPT),ARCH)` ;\ oformat=`$(call process_lds,cat $(LDSCRIPT),FORMAT)` && \
oarch=`$(call process_lds,cat $(LDSCRIPT),ARCH)` ;\
\ \
[ -z $${oformat} ] && \ [ -z $${oformat} ] && \
oformat=`$(call process_lds,$(GET_LDS),FORMAT)` ;\ oformat=`$(call process_lds,$(GET_LDS),FORMAT)` ;\
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册