ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: stdarg.h not found

To:
Subject: Re: [ts-7000] Re: stdarg.h not found
From: Kevin Cozens <>
Date: Thu, 30 Sep 2010 11:10:23 -0400
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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU