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

Hi there,
I just pulled U-Boot CVS and tried to build a standard target:
~ # make TQM860L_config rm -f include/config.h include/config.mk Configuring for TQM860L board... ~ # CROSS_COMPILE=ppc_8xx- LANG=en make all
But I do get
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' make[1]: *** [subdirs] Error 2 make[1]: Leaving directory `/home/denx/CVSDENX/u-boot/tools' make: *** [subdirs] Error 1
Troublemakers are the lines in tools/Makefile:
subdirs: @for dir in $(TOOLSUBDIRS) ; do \ $(MAKE) \ HOSTOS=$(HOSTOS) \ HOSTARCH=$(HOSTARCH) \ HOST_CFLAGS="$(HOST_CFLAGS)" \ HOST_LDFLAGS="$(HOST_LDFLAGS)" \ -C $$dir || exit 1 ; \ done
since TOOLSUBDIRS is explicitly set emtpy in tools/Makefile!
???
Steven

Dear Steven,
in message 3F3A42CD.2030800@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
participants (2)
-
Steven Scholz
-
Wolfgang Denk