Hello,
I'm getting confused trying to do what I'd like to do :) I'll try to be as clear as possible, first exposing what I want to do, then what I tried to achieve it.
I have a laptop running gentoo as a desktop system and thus is configured as a desktop machine. I'm working to bring up an embedded PPC target, so I obviously need a root file system for it ...
Until now, I compiled my toolchain manually and installed every package by hand. It works for simple boot when busybox and uclibc are the only required things ;) When trying to install more apps/libs, it become quickly cumbersome !
So while looking at gentoo-embedded, I thought that maybe it's what I'm looking for : An easy way to install package for a cross target. What I'd like is to use the emerge on my gentoo host machine
to setup a file system for my target. Ideally the target filesystem would only include what's absolutly necessary, with the includes/docs ... kept elsewhere (but theses must be somewhere for the apps to find the libs etc ... ). The target system also should use uclibc.
Following the steps at http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO, I've installed a cross compiler on my target (using uclibc). But this was not without pain since to use uclib /etc/make.profile must point to the uclibc profile while my host used glibc ... Also some USE/CFLAGS in /etc/make.conf weren't right for the target. Is it possible to specify on the command line an alternate configuration ?
Also, when trying to install package (here busybox) :
246tNt-laptop etc # ROOT=/tmp/embedded_root/ CHOST=powerpc-pc-linux-uclibc emerge busybox -pv
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] sys-kernel/linux-headers-2.4.22 -build 28,836 kB [ebuild N ] sys-libs/uclibc-0.9.27 -alsa -build -debug -hardened -ipv6 -static 0 kB [ebuild N ] sys-libs/uclibc-0.9.27 to /tmp/embedded_root/ -alsa -build -debug -hardened -ipv6 -static 0 kB [ebuild N ] sys-apps/busybox-1.00 to /tmp/embedded_root/ -debug -make-symlinks -netboot -savedconfig -static +uclibc 1,092 kB
Total size of downloads: 29,928 kB
Why does it want ot install stuff in / ? My host doesn't use uclibc and I already installed uclibc when building the cross-compiler toolchain ...
I also had a look at some prebuild stages but theses includes a lot of stuff not needed on the target like python binary for ppc ... I'll never run it. So theses don't look like what I'm looking for since I don't
need the complete emerge/portage stuff on my target, I'd like to use the ones on my host/laptop.
Am I all wrong, isn't gentoo-embedded about this at all ?
I was kindof hoping to do a few emerge to cross compile a bootable image with just what I need, emerge handling the deps & build ...
Sylvain
-- [email protected] mailing list
