All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] dts/Makefile: Check for empty $(LDSCRIPT)
@ 2012-07-12 12:58 Horst Kronstorfer
  2012-08-10 21:46 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Horst Kronstorfer @ 2012-07-12 12:58 UTC (permalink / raw)
  To: u-boot

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 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dts/Makefile b/dts/Makefile
index 402dfe1..9a54ca5 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -66,8 +66,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)` ;\
-- 
1.7.11.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-14 21:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-12 12:58 [U-Boot] [PATCH] dts/Makefile: Check for empty $(LDSCRIPT) Horst Kronstorfer
2012-08-10 21:46 ` Wolfgang Denk
2012-08-14 13:42   ` Kumar Gala
2012-08-14 21:33     ` Kumar Gala

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.