[U-Boot-Users] examples dir on uboot 1.1.2

John F Davis johndavi at us.ibm.com
Thu Nov 10 17:59:17 CET 2005


Hello

I am using u-boot 1.1.2 for ppc440 and I would like to build the examples 
dir.  I can build and image, but I can not figure out how to get the 
examples directory to build.   I have tried various methonds but none have 
worked. 

1.  If I simply change directories to the examples dir and issue the make 
command it results in:
[davis at dyn-9-152-249-44 examples]$ make
Makefile:56: /config.mk: No such file or directory
make: *** No rule to make target `/config.mk'.  Stop.

2.  If I issue make -f examples/Makefile from the top-level directory, it 
results in:
examples/Makefile:56: /config.mk: No such file or directory
make: *** No rule to make target `hello_world.c', needed by `.depend'. 
Stop.

3.  If I edit the master makefile such that the directory is built at the 
same time as the image (which is not what I really want.   I want to build 
stand alone applets which I can load later to an existing image.), it 
results in:
...
SUBDIRS = tools \
      post \
        examples \
      post/cpu
...

make[1]: Entering directory 
`/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/exampl
es'
ppc-linux-ld -g  -Ttext 0x40000 \
        -o hello_world -e hello_world hello_world.o libstubs.a \
        -L/opt/fld_fakeroot/opt/mcp/ppc/bin/../lib/gcc-lib/ppc-linux/3.3.3 
-lgcc
hello_world.o(.text+0x3c): In function `hello_world':
/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/hello_world.c:33: 
undefine
d reference to `printf'
hello_world.o(.text+0x40):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/
hello_world.c:34: undefined reference to `get_version'
hello_world.o(.text+0x4c):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/
hello_world.c:34: undefined reference to `printf'
hello_world.o(.text+0x58):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/
hello_world.c:36: undefined reference to `printf'
hello_world.o(.text+0x64):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/
hello_world.c:38: undefined reference to `printf'
hello_world.o(.text+0x90):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/
hello_world.c:41: undefined reference to `printf'
hello_world.o(.text+0xa0):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/
hello_world.c:46: undefined reference to `printf'
hello_world.o(.text+0xa4):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/
hello_world.c:47: undefined reference to `tstc'
hello_world.o(.text+0xb0):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/
hello_world.c:50: undefined reference to `getc'
hello_world.o(.text+0xb8):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/
hello_world.c:52: undefined reference to `printf'
make[1]: *** [hello_world] Error 1
make[1]: Leaving directory 
`/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/example
s'
make: *** [examples] Error 2

Any suggestions?

JD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20051110/7b42623d/attachment.htm 


More information about the U-Boot mailing list