Gentoo Archives: gentoo-embedded

From: Corey <corey@×××××××××.net>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] crosscompile bash
Date: Sat, 18 Nov 2006 22:04:25
Message-Id: 200611181500.15177.corey@bitworthy.net
In Reply to: Re: [gentoo-embedded] crosscompile bash by Daniel Glaser
1 On Saturday 18 November 2006 08:30, Daniel Glaser wrote:
2 > You have to merge every library to your cross-compile-root, means in
3 > your case to merge ncurses first to /usr/cross-... And then to your
4 > other root without the X-Toolchain.
5 > This is, because the X-Compiler searches there for libraries and not in
6 > another $ROOT. So, the steps to go are:
7 >
8 > ROOT="/usr/cross-SOMEXTOOLCHAIN" [
9 > PORTAGE_CONFIGROOT="SOMEOTHERROOTWITHCONF"] emerge LIBPACKAGE
10 > ROOT="YOUROTHERROOT" emerge PACKAGES
11 >
12 > I always emerge everything first to the X-Toolchain root with making
13 > packages and then I emerge the packages without recompiling them to my
14 > development root.
15 >
16
17 Thanks a ton for the helpful clues!
18
19 I think I've almost got my mind wrapped around this stuff - but just to be
20 certain, I'd like to clarify one thing.
21
22 My goal is pretty simple right now: I just want to create a second gentoo
23 installation on a separate partition, which is built from the ground-up using
24 uclibc - I'm still using the same platform/architecture ( i686 ), so I'm not
25 trying to target some different embedded device or anything, and I _do_
26 want to have a complete toolchain ( including portage ) on this uclibc-based
27 gentoo partion.
28
29 My intention/aim is to only cross-compile the minimal environment necessary
30 to be able to chroot into this new partition and begin emerging the rest of the
31 software I want, as per a normal/standard gentoo install. Restated, I'm simply
32 after a uclibc-based/built gentoo system.
33
34 With that said, do I still need to emerge the libraries into a separate "SOMEXTOOLCHAIN"
35 ROOT? Or am I able to somehow just install those same libraries directly into
36 "YOUROTHERROOT" ROOT ( i.e., my separate partition, where I want my uclibc-based
37 gentoo to reside? )
38
39
40 THanks!
41
42 --
43 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] crosscompile bash Daniel Glaser <daniel.glaser@××××××××××××.com>