[Klone-users] Cross compilation
thomas fossati
tho at koanlogic.com
Tue Dec 18 06:55:24 EST 2007
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 :)
More information about the klone-users
mailing list