On Fri, 30 May 2003, Andrew Gaffney wrote:
> Jason Nielsen wrote:
> > Just to follow up on my own e-mail. If it is a big hassle to build
> > x86-PPC cross compilers on all machines you could just use the fast Athlon
> > machine with the cross-compiler to build a complete system for the PPC
> > (much faster.. not as fast as using distcc but hey better than trying to
> > build Gentoo with a 120Mhz PPC!). I answered a post not too long ago with
> > my method of building for another ARCH... basically just uses a chroot env.
> > If you are interested I can forward you the steps.
>
> Just for a good reference, could you post the steps to the list?
>
Certainly here goes, snipped from my previous post:
mkdir /tmp/buildPPC
cd /tmp/buildPPC
tar xvjpf stage3-* (grab the latest stage3-* tarball for PPC)
mount -o bind /proc /tmp/buildPPC/proc
cp /etc/resolv.conf /tmp/buildPPC/etc
chroot /tmp/buildPPC /bin/bash
env-update
source /etc/profile (most of this is just yanked form the install docs)
Now update you make.conf with appropriate use flags and CFLAGS
emerge sync
emerge -u portage
emerge -ueD system
emerge -ueD world (build all the files with new CFLAGS/USE)
*you don't have to do the double step here but it mimics doing a
bootstrap*
This will give you the equivalent of a personalized stage3, next emerge
whatever stuff you want.
emerge package1 package2 .....
when you are done emerging everything you need:
exit
umount /tmp/buildPPC/proc
tar cvjpf --numeric-owner PersonalPPC.tbz2 /tmp/buildPPC
then when you do your install start from a stage 3 and of course use
PersonalPPC.tbz2 (except now you have more than that). Likely this won't
fit on a CD but not a big deal as you have 3 computers ;-)! Of course you
can only do this on the machine with the x86-PPC cross compiler. Hope
this is what you were looking for.
Cheers,
Jason
--
[EMAIL PROTECTED] mailing list