jiggersplat wrote:
> 1) no, i'm not passing anything to anything. i'm typing "make" at the
> command prompt and wishing and hoping that the makefile works ;)
If you are compiling for your native machine, 'make' will usually work but
you need to make some changes to the Makefile when cross-compiling.
Fortunately, the changes aren't major.
I have worked with a TS-7250 and used the gcc 3.3.4 cross-compiler as I
needed to compile the Linux kernel to get a couple of extra modules (a
Linux one for printing, the other was a custom module).
I downloaded the cross compiler tools from the TS website. I extracted the
files under /opt/crosstool. The next step was to tell make how to invoke
the cross-compiler and not the standard compiler. This was easily done by
adding the following two lines to the top of the Makefile:
CROSS = /opt/crosstool/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-
CC = $(CROSS)gcc
If you install to a different directory, update the path accordingly. Don't
drop the /bin/arm-linux- from the end as it is part of the overall path to
the compiler programs. When I need to run strip after one of my programs
has been built, I tell make to use "$(CROSS)strip". You can do the same
thing with any other compiler tools such as ar (by using "$(CROSS)ar").
Having done this, I haven't needed to use -I or -L with the cross-compiler.
The include files and files needed at link time are found automatically.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|