Gentoo Archives: gentoo-embedded

From: Goran Kavrecic <gorank@×××××.si>
To: kumba@g.o
Cc: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Multiplatform compile
Date: Thu, 22 Jan 2004 09:56:33
Message-Id: 1074765397.2490.29.camel@localhost
In Reply to: Re: [gentoo-embedded] Multiplatform compile by Kumba
I'm maybe dumb but don't know how/where to start this.
I presume but I'm not sure.

Is there any homepage/documents/forum describing that?
I've never done crosscompiling of any kind(except palm programs under
cygwin in windows) - always installed and compiled on the actual host.

Just checking:
1. insert path to new compiler tools at the begining. OK?
	export PATH="/home/crossdev/i586/i586-pc-linux-gnu/bin:${PATH}"

2. to make my 586's kernel i can then go to /usr/src/linux or whichever
kernel I prefer

3. run 
	make ARCH=i386 CROSS_COMPILE=i586-pc-linux-gnu- menuconfig
	make ARCH=i386 CROSS_COMPILE=i586-pc-linux-gnu- bzImage
	make ARCH=i386 CROSS_COMPILE=i586-pc-linux-gnu- dep
	make ARCH=i386 CROSS_COMPILE=i586-pc-linux-gnu- modules
	make ARCH=i386 CROSS_COMPILE=i586-pc-linux-gnu- ...?

At this point I should have the new kernel somwehere(I will find it).

Then I probably need some other packages to have a minimum(128MB compact
flash) system running. One of those would be 'lilo' Which else?
Where they get compiled?

After compiling everything I should copy some of this compiled stuff on
my CF.

For now that would be all.


Na 1074301543, 2004-01-17 ob 02:05, je Kumba napisal(a):
> Chris PeBenito wrote: > > > Well for the compiling at least, you just have to put the compiler in > > the path: > > > > export PATH="/opt/crossdev/ppc/powerpc-unknown-linux-gnu/bin:${PATH}" > > > > is what I do to run the PPC cross compiler on my x86. So do something > > like that, and then you just have to do is add ARCH=i386 when you do > > make menuconfig, etc. I haven't tried compiling a kernel with the cross > > compiler; perhaps kumba will correct me on this. > > Kernel part is easy, just run > > make ARCH=i386 CROSS_COMPILE=i586-pc-linux-gnu- <target> > > And you should be fine, just make sure to set your kernel for i586 class. > > > --Kumba
-- gentoo-embedded@g.o mailing list