[U-Boot-Users] problem compiling examples

Josef.Baumgartner at de.telex.com Josef.Baumgartner at de.telex.com
Thu Jul 20 14:19:35 CEST 2006


Hi,

im currently working with the coldfire port of u-boot. When I try to 
compile the examples, the following error occurs:

make[1]: Entering directory `/misc/usb/tmp/u-boot/u-boot-work/examples'
m68k-elf-gcc -g  -Os   -ffixed-d7 -msep-data -D__KERNEL__ 
-DTEXT_BASE=0xffe00000 -I/misc/usb/tmp/u-boot/u-boot-work/include 
-fno-builtin
-ffreestanding -nostdinc -isystem 
/usr/local/lib/gcc-lib/m68k-elf/2.95.3/include -pipe  -DCONFIG_M68K 
-D__M68K__ -m5307 -Wall -Wstrict-prototypes -c -o hello_world.o 
hello_world.c
m68k-elf-gcc -g  -Os   -ffixed-d7 -msep-data -D__KERNEL__ 
-DTEXT_BASE=0xffe00000 -I/misc/usb/tmp/u-boot/u-boot-work/include 
-fno-builtin
-ffreestanding -nostdinc -isystem 
/usr/local/lib/gcc-lib/m68k-elf/2.95.3/include -pipe  -DCONFIG_M68K 
-D__M68K__ -m5307 -Wall -Wstrict-prototypes -c -o stubs.o stubs.c
m68k-elf-ar crv libstubs.a  stubs.o
a - stubs.o
make[1]: *** No rule to make target `hello_world.srec', needed by `all'. 
Stop.
make[1]: Leaving directory `/misc/usb/tmp/u-boot/u-boot-work/examples'
make: *** [examples] Error 2

It seems, there is a problem with the chained implicit rules used to make 
the srecord file.
If I swap the targets as shown below, the problem dissapears:

--- u-boot-2006-06-30-2020/examples/Makefile   2006-07-20 
14:01:19.000000000 +0200
+++ u-boot-work/examples/Makefile    2006-07-19 12:24:29.000000000 +0200
@@ -60,7 +60,7 @@
 include $(TOPDIR)/config.mk

 SREC   = hello_world.srec
-BIN    = hello_world.bin hello_world
+BIN    =  hello_world hello_world.bin

 ifeq ($(CPU),mpc8xx)
 SREC   = test_burst.srec
@@ -122,7 +122,7 @@

 CPPFLAGS += -I..

-all:   .depend $(OBJS) $(LIB) $(SREC) $(BIN)
+all:   .depend $(OBJS) $(LIB) $(BIN) $(SREC)

 #########################################################################
 $(LIB): .depend $(LIBOBJS)

I use Gnu Make 3.81 on a debian linux host.
Has anybody else had this problem? Would it be ok to change the Makefile 
or is there another soluten?

Regards,

Josef

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060720/4725ae67/attachment.htm 


More information about the U-Boot mailing list