From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NFCWT-0001Vj-1X for garchives@archives.gentoo.org; Mon, 30 Nov 2009 20:07:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C07FE097B for ; Mon, 30 Nov 2009 20:07:00 +0000 (UTC) Received: from mail-fx0-f215.google.com (mail-fx0-f215.google.com [209.85.220.215]) by pigeon.gentoo.org (Postfix) with ESMTP id A3508E0AA4 for ; Mon, 30 Nov 2009 18:25:04 +0000 (UTC) Received: by fxm7 with SMTP id 7so3504401fxm.29 for ; Mon, 30 Nov 2009 10:25:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=AEQy1/w0zeqC27FDagJbbmZmv1VEdtnn34y0E0qyk0c=; b=uSYnONnnMlitFyogK8bUxgzBRKSsYvnwjzEIzrWymx6iQn37T8Xht+CHLg6JAUCksJ ++H7wWBnSPNBjMR4yimVHgnNn+kY/3kpmJYbzCCOFgnTREA/EOEdQziJS7xl0lKUsCo/ WS5m1upIVaEjYwsuOZUxCpXHhMZ+8BVM9/QiA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=h/aAyuFMhCkF58U/CteTOyY9DdRCPokhBgRZ9pEKR5Q5edZvDdaukZdULgPoyX+nVc /IQw7fBdJXFEG+QZOLbGj6xPajLFwOzouLoDOV0Jvhj1hWvbM63eEExgiaIAEgGan1yZ 4pn2XP2hgqcKyOYu+Ev+goliYbq6AhsO4hJ5o= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Received: by 10.223.14.13 with SMTP id e13mr704918faa.85.1259605504074; Mon, 30 Nov 2009 10:25:04 -0800 (PST) From: Shinkan Date: Mon, 30 Nov 2009 19:24:43 +0100 Message-ID: <166af1cf0911301024s61e229a6h9116c00ad84673e8@mail.gmail.com> Subject: [gentoo-embedded] Cross Dev Tricks + Hardened questions To: gentoo-embedded@lists.gentoo.org Content-Type: multipart/alternative; boundary=00151747362aa0a5c204799ac21c X-Archives-Salt: 0f4f1e61-34fe-46cd-878b-7003b990cc69 X-Archives-Hash: 84765dfeef45fe3f5c1b5611dee55da4 --00151747362aa0a5c204799ac21c Content-Type: text/plain; charset=UTF-8 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 --00151747362aa0a5c204799ac21c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 G= entoo 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 everyt= hing 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" binari= es, 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, CTARGE= T, 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 al= l by myself despite the good docs.

--
Pierre.
&= quot;Sometimes when I'm talking, my words can't keep up with my tho= ughts. I wonder why we think faster than we speak. Probably so we can think= twice." - Bill Watterson
--00151747362aa0a5c204799ac21c--