<br><font size=2 face="sans-serif">Hello</font>
<br>
<br><font size=2 face="sans-serif">I am using u-boot 1.1.2 for ppc440 and
I would like to build the examples dir. &nbsp;I can build and image, but
I can not figure out how to get the examples directory to build. &nbsp;
I have tried various methonds but none have worked. &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">1. &nbsp;If I simply change directories
to the examples dir and issue the make command it results in:</font>
<br><font size=2 face="sans-serif">[davis@dyn-9-152-249-44 examples]$ make</font>
<br><font size=2 face="sans-serif">Makefile:56: /config.mk: No such file
or directory</font>
<br><font size=2 face="sans-serif">make: *** No rule to make target `/config.mk'.
&nbsp;Stop.</font>
<br>
<br><font size=2 face="sans-serif">2. &nbsp;If I issue make -f examples/Makefile
from the top-level directory, it results in:</font>
<br><font size=2 face="sans-serif">examples/Makefile:56: /config.mk: No
such file or directory</font>
<br><font size=2 face="sans-serif">make: *** No rule to make target `hello_world.c',
needed by `.depend'. &nbsp;Stop.</font>
<br>
<br><font size=2 face="sans-serif">3. &nbsp;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. &nbsp; I want to build stand alone applets which
I can load later to an existing image.), it results in:</font>
<br><font size=2 face="sans-serif">...</font>
<br><font size=2 face="sans-serif">SUBDIRS = tools \</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; post \</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; examples
\</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; post/cpu</font>
<br><font size=2 face="sans-serif">...</font>
<br>
<br><font size=2 face="sans-serif">make[1]: Entering directory `/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/exampl</font>
<br><font size=2 face="sans-serif">es'</font>
<br><font size=2 face="sans-serif">ppc-linux-ld -g &nbsp;-Ttext 0x40000
\</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; -o hello_world
-e hello_world hello_world.o libstubs.a \</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; -L/opt/fld_fakeroot/opt/mcp/ppc/bin/../lib/gcc-lib/ppc-linux/3.3.3
-lgcc</font>
<br><font size=2 face="sans-serif">hello_world.o(.text+0x3c): In function
`hello_world':</font>
<br><font size=2 face="sans-serif">/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/hello_world.c:33:
undefine</font>
<br><font size=2 face="sans-serif">d reference to `printf'</font>
<br><font size=2 face="sans-serif">hello_world.o(.text+0x40):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/</font>
<br><font size=2 face="sans-serif">hello_world.c:34: undefined reference
to `get_version'</font>
<br><font size=2 face="sans-serif">hello_world.o(.text+0x4c):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/</font>
<br><font size=2 face="sans-serif">hello_world.c:34: undefined reference
to `printf'</font>
<br><font size=2 face="sans-serif">hello_world.o(.text+0x58):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/</font>
<br><font size=2 face="sans-serif">hello_world.c:36: undefined reference
to `printf'</font>
<br><font size=2 face="sans-serif">hello_world.o(.text+0x64):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/</font>
<br><font size=2 face="sans-serif">hello_world.c:38: undefined reference
to `printf'</font>
<br><font size=2 face="sans-serif">hello_world.o(.text+0x90):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/</font>
<br><font size=2 face="sans-serif">hello_world.c:41: undefined reference
to `printf'</font>
<br><font size=2 face="sans-serif">hello_world.o(.text+0xa0):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/</font>
<br><font size=2 face="sans-serif">hello_world.c:46: undefined reference
to `printf'</font>
<br><font size=2 face="sans-serif">hello_world.o(.text+0xa4):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/</font>
<br><font size=2 face="sans-serif">hello_world.c:47: undefined reference
to `tstc'</font>
<br><font size=2 face="sans-serif">hello_world.o(.text+0xb0):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/</font>
<br><font size=2 face="sans-serif">hello_world.c:50: undefined reference
to `getc'</font>
<br><font size=2 face="sans-serif">hello_world.o(.text+0xb8):/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/</font>
<br><font size=2 face="sans-serif">hello_world.c:52: undefined reference
to `printf'</font>
<br><font size=2 face="sans-serif">make[1]: *** [hello_world] Error 1</font>
<br><font size=2 face="sans-serif">make[1]: Leaving directory `/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/example</font>
<br><font size=2 face="sans-serif">s'</font>
<br><font size=2 face="sans-serif">make: *** [examples] Error 2</font>
<br>
<br><font size=2 face="sans-serif">Any suggestions?</font>
<br>
<br><font size=2 face="sans-serif">JD</font>