[Klone-users] Cross compilation

Iring, Peter peter.iring at siemens.com
Tue Dec 18 07:02:15 EST 2007


Hello :)

I hope that download of eldk will take some time because I absolutely do
not understand
What are you writing about now. Could you please explain it once again
in little bit different
Way?

:)

Thanks
Peter
 

-----Original Message-----
From: klone-users-bounces at koanlogic.com
[mailto:klone-users-bounces at koanlogic.com] On Behalf Of thomas fossati
Sent: 18. decembra 2007 12:55
To: Klone users
Subject: Re: [Klone-users] Cross compilation

Hi Peter,

On Dec 18, 2007, at 12:08 PM, Iring, Peter wrote:
> This step with MAKL_PLATFORM was the first I have tried. At first I  
> have
> set up My linux variables. (I use eldk4.1 for cross compilation)
>
> So I export variables:
>
> ARCH=ppc
> CROSS_COMPILE=ppc_8xx-
> DEPMOD=/hit73_sw/tools/eldk4.1/usr/bin/depmod.pl
> PATH=/hit73_sw/tools/eldk4.1/usr/bin:/hit73_sw/tools/eldk4.1/bin:/usr/

> lo
> cal/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
>
> Now if I run powerpc-linux-gcc -v from any path I can see gcc version:
> gcc version 4.0.0 (DENX ELDK 4.1 4.0.0)
>
> So I expect that modification of MAKL_PLATFORM should tell to make to
> use powerpc-linux-gcc compiler.
>
> But if I run "./configure --cross_compile" and "sudo make" I can see
> that gcc is compiling source code:

while I'm downloading/setting up ELDK on our Linux box, I think I have  
enough time for a small question :) why are you calling the configure  
script directly ?  If you use the klone2 framework this is not needed,  
what you need is a Makefile like this ($(CURDIR)/webapp is where your  
embfs contents are placed):

---
KLONE_VERSION = 2.0.0
MAKL_PLATFORM = linux-powerpc
WEBAPP_DIR = $(CURDIR)/webapp

include klapp.mk

klapp.mk: ; wget -O $@ -c http://koanlogic.com/klone/klapp-2.0.0.mk
---

and just invoke GNU make to drive the whole process.

ciao, t.

PS ELDK download continues :)


_______________________________________________
Klone-users mailing list
Klone-users at koanlogic.com
http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users



More information about the Klone-users mailing list