Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Crosscompiling kernel with CDT
Crosscompiling kernel with CDT [message #154076] Wed, 14 September 2005 16:11 Go to next message
Eclipse UserFriend
Originally posted by: lamikr.cc.jyu.fi

Hi

Another question considering crosscompiling...

If I somehow manage to import kernel to Eclipse project I have another
question considering crosscompiling...

I am building kernel with arm-linux crosscompiler just for a hobby.
The crosscompiler has all executables like gcc, ar, ld named like
arm-linux-gcc, arm-linux-ar, etc...

Do I need to be able to configure CDT to use arm-linux-gcc commands
instead of using gcc or all all problems solved if I just somehow manage
to define the build that CDT needs to use for building:
"make O=/home/lamikr/own/h6340/kernel/build_ipaq_h6300 ARCH=arm
CROSS_COMPILE=arm-linux-"

In addition do I need to take care that the cross-gcc:s bin is in the
path before I launch Eclipse or can I somehow configure the location of
gcc that CDT must use?

Mika
Re: Crosscompiling kernel with CDT [message #154519 is a reply to message #154076] Fri, 16 September 2005 06:39 Go to previous message
Eclipse UserFriend
Hi,

If u r using "Managed Make" in CDT, u need to change the Makefile as
CC = arm-linux-gcc, ld = arm-linux-ld .....etc.

If u r using "Standard Make" in CDT, u need to write a Makefile with
the above said dependencies.

Moreover, while invoking arm-linux-gcc, it should be in the "Path".
I succeded with this in "Windows" using cygwin.

Regards,
Senthil Kumar S
Previous Topic:Importing existing projects from web that uses standard makefile (Linux Kernel for example)
Next Topic:Problem with linker/getche() in CDT 3.1
Goto Forum:
  


Current Time: Sun Jul 27 07:56:45 EDT 2025

Powered by FUDForum. Page generated in 0.02830 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top