public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] Cross Dev Tricks + Hardened questions
@ 2009-11-30 18:24 Shinkan
  2009-11-30 21:12 ` Peter Stuge
  0 siblings, 1 reply; 14+ messages in thread
From: Shinkan @ 2009-11-30 18:24 UTC (permalink / raw
  To: gentoo-embedded

[-- Attachment #1: Type: text/plain, Size: 1943 bytes --]

Hi there,

I'm quite sorry to annoy you, but I'm quite new to Gentoo, and the Embedded
Handbook (which appears to be the best information source for what I want to
do) does not make it clear for me.
I hope you'll be able to help me a little.

I have a base host system, which is a x86 hardened-profiled Gentoo 10.0.
I would like to use it to build target systems with the most control Gentoo
can offer.
I first looked at Catalyst but Cross-dev things seemed more accurate for
what I want to do.

Let's say I want to make a "example-v1" target system.
I want my host to build on a "example-v1-build" directory everything needed
to build and emerge binaries for my target system.
I want my host to build with "example-v1-build" files and toolchain a
"example-v1-target" directory which would contain emerged system.
"example-v1-target" would contain a very minimal system, with no gcc, emerge
or dev things. It just have to be able to run C/C++ binaries for a given
arch.

I would like to use crossdev because I want to specify which version of
glibc/gcc/etc I will use for one given target.
Furthermore, I would like my toolchain to build "hardened" binaries, as
those we get by using an hardened stage3.

I don't get the process from the Embedded Handbook.
Do I have to set some CHOST, CTARGET, ROOT or PORTAGE_CONFDIR env vars or
crossdev will handle that some way ?
How can I tell to crossdev : "build the cross toolchain to my
example-v1-build directory" ?
How can I then tell to emerge "emerge and build from my example-v1-build
directory to example-v1-target" ? Do I have to chroot in "example-v1-build"
? In this case wouldn't I lost all emerge capabilities ?

Many thanks in advance for your help.
Sorry I can't figure it all by myself despite the good docs.

-- 
Pierre.
"Sometimes when I'm talking, my words can't keep up with my thoughts. I
wonder why we think faster than we speak. Probably so we can think twice." -
Bill Watterson

[-- Attachment #2: Type: text/html, Size: 2211 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-12-02 10:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-30 18:24 [gentoo-embedded] Cross Dev Tricks + Hardened questions Shinkan
2009-11-30 21:12 ` Peter Stuge
2009-12-01  8:44   ` Shinkan
2009-12-01 17:48     ` Ned Ludd
2009-12-01 19:03       ` Ed W
2009-12-01 20:51         ` Peter Stuge
2009-12-01 22:24           ` Shinkan
2009-12-02  0:17             ` Peter Stuge
2009-12-02  9:28               ` Shinkan
2009-12-01 19:03       ` Peter Stuge
2009-12-01 20:52         ` Shinkan
2009-12-01 23:57           ` Peter Stuge
2009-12-02  8:02             ` [OT] Catalyst, was: " Eckard Brauer
2009-12-02  9:04               ` Ed W

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox