[U-Boot-Users] Problems building ./tools

Wolfgang Denk wd at denx.de
Wed Aug 13 16:45:35 CEST 2003


Dear Steven,

in message <3F3A42CD.2030800 at imc-berlin.de> you wrote:
> 
> make[1]: Entering directory `/home/denx/CVSDENX/u-boot/tools'
> /bin/sh: -c: line 1: syntax error near unexpected token `;'
> /bin/sh: -c: line 1: `for dir in  ; do  make  HOSTOS=linux  HOSTARCH=i386  HOST_CFLAGS="-Wall -pedantic"  HOST_LDFLAGS=""  -C $dir || exit 1 ;  done'

This has been reported before, and I posted the folowing patch to the
list:

--- /opt/u-boot/tools/Makefile	2003-08-07 16:39:26.000000000 +0200
+++ tools/Makefile	2003-08-08 11:17:49.000000000 +0200
@@ -152,6 +152,9 @@
 		$(CC) -g $(CFLAGS) -c $<
 
 subdirs:
+ifeq ($(TOOLSUBDIRS),)
+		@:
+else
 		@for dir in $(TOOLSUBDIRS) ; do \
 		    $(MAKE) \
 			HOSTOS=$(HOSTOS) \
@@ -160,6 +163,8 @@
 		   	HOST_LDFLAGS="$(HOST_LDFLAGS)" \
 			-C $$dir || exit 1 ; \
 		done
+endif
+
 environment.c:
 		ln -s ../common/environment.c environment.c
 


Sorry that I didn't find the time yet to push it too CVS.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
You can do this in a number of ways.     IBM chose to do all of them.
Why do you find that funny?        -- D. Taylor, Computer Science 350




More information about the U-Boot mailing list