From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25232 invoked by alias); 16 Nov 2011 23:29:48 -0000 Received: (qmail 25222 invoked by uid 22791); 16 Nov 2011 23:29:47 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_BD X-Spam-Check-By: sourceware.org Received: from smtp12.smtpout.orange.fr (HELO smtp.smtpout.orange.fr) (80.12.242.134) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Nov 2011 23:29:30 +0000 Received: from treguer.localnet ([90.32.27.63]) by mwinf5d23 with ME id xzVU1h0071Mhb6203zVUtC; Thu, 17 Nov 2011 00:29:28 +0100 From: "Yann E. MORIN" To: crossgcc@sourceware.org Subject: Re: [PATCH 2 of 2] docs: Add strategies for assembling root filesystems Date: Wed, 16 Nov 2011 23:29:00 -0000 User-Agent: KMail/1.13.5 (Linux/3.1.0-treguer; KDE/4.4.5; x86_64; ; ) Cc: Trevor Woerner References: <8bd0d6bdba97ba1f9a80.1321483527@codei7.fpelectronics.com> In-Reply-To: <8bd0d6bdba97ba1f9a80.1321483527@codei7.fpelectronics.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111170029.28065.yann.morin.1998@anciens.enib.fr> Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00077.txt.bz2 Trevor, All, On Wednesday 16 November 2011 23:45:27 Trevor Woerner wrote: > # HG changeset patch > # User Trevor Woerner > # Date 1321482977 18000 > # Node ID 8bd0d6bdba97ba1f9a80be56daf1e6b4161cb9b4 > # Parent c1c4d9174fbfd7d76e0e520dc6657cf239a7d718 > docs: Add strategies for assembling root filesystems. > > Expand the documentation for using a crosstool-NG-generated toolchain for > building a root filesystem for a target device. Not much to say, I wrote much of it! :-) But still, a few comments below... > Signed-off-by: "Trevor Woerner" > > diff -r c1c4d9174fbf -r 8bd0d6bdba97 docs/5 - Using the toolchain.txt > --- a/docs/5 - Using the toolchain.txt Wed Nov 16 16:06:42 2011 -0500 > +++ b/docs/5 - Using the toolchain.txt Wed Nov 16 17:36:17 2011 -0500 [--SNIP--] > +2) Copy the toolchain's sysroot to the 'staging' area. [--SNIP--] > + $ ./configure --prefix=/usr --enable-foo-bar... \ > + CC="-gcc --syroot=/path/to/staging" \ > + CXX="-g++ --sysroot=/path/to/staging" \ > + LD="-ld --sysroot=/path/to/staging" \ > + AND_SO_ON=tuple-andsoon --sysroot=/path/to/staging" It is still required to pass --build and --host. [--SNIP--] > +3) Use separate staging and sysroot directories. [--SNIP--] > + $ CPPFLAGS="-I/path/to/staging/usr/include" \ > + LDFLAGS="-L/path/to/staging/lib -L/path/to/staging/usr/lib" \ > + ./configure --prefix=/usr --enable-foo-bar... Ditto. > +4) A mix of 2) and 3), using carefully crafted union mounts. This one is really coplex, convoluted, and not really possible without much trouble and expertise. It could be confusing for newcomers (if it was not confusing enough as it is!), and experts would probably be able to come up with that solution on their own... Otherwise, pretty nice. I'll fix the few nit-picks here and there, and do a re-read pass, then I'll push. I'm glad you took the time to format it properly, I was going to suggest this went to the docs, you read my mind! :-) Thank you! Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq