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 1QgxMJ-0005Mj-8T for garchives@archives.gentoo.org; Wed, 13 Jul 2011 11:12:03 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DA9B821C029 for ; Wed, 13 Jul 2011 11:12:02 +0000 (UTC) Received: from mail1.nippynetworks.com (mail1.nippynetworks.com [91.220.24.129]) by pigeon.gentoo.org (Postfix) with ESMTP id 3A25321C022 for ; Wed, 13 Jul 2011 10:54:42 +0000 (UTC) Received: from localhost (mail1.nippynetworks.com [127.0.0.1]) by mail1.nippynetworks.com (Postfix) with ESMTP id 265A8340336 for ; Wed, 13 Jul 2011 11:54:41 +0100 (BST) X-Virus-Scanned: amavisd-new at nippynetworks.com Received: from mail1.nippynetworks.com ([127.0.0.1]) by localhost (mail1.nippynetworks.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dTtz+AMn9PVG for ; Wed, 13 Jul 2011 11:54:41 +0100 (BST) Received: from Ed-Wildgooses-MacBook-Pro.local (office.nippynetworks.com [212.69.49.94]) (Authenticated sender: edward@wildgooses.com) by mail1.nippynetworks.com (Postfix) with ESMTPSA id E0F49340332 for ; Wed, 13 Jul 2011 11:54:40 +0100 (BST) Message-ID: <4E1D7970.7080404@wildgooses.com> Date: Wed, 13 Jul 2011 11:54:40 +0100 From: Ed W User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 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 To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] generating root file systems References: In-Reply-To: X-TagToolbar-Keys: D20110713115440356 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 3a7467987d3e76a28c6a8bdc1ca34e03 On 07/07/2011 16:27, Christopher Harvey wrote: > I was wondering if there was any interest in adding a script that could > generate a bootable linux filesystem from a cross compiled target > directory. I would be happy to work with you on this - however, I also saw on Planet Gentoo something about a gentoaster project - possibly related? http://hexxeh.net/?p=328117725 What I have is a very simple portage-a-like to support the case that I have several stages to my script. - Mounting all necessary sources - Building a base system - Copying base to target ready to be imaged - Image - Unmount Additionally I am trying a packaging system using aufs + squashfs, so I am building more than one target image and the whole gets stacked together at the end The scripting is fairly simple, but I guess this could develop into some best practices..? Arguably this is re-inventing catalyst, but speaking from inexperience, catalyst appears to work best when the ebuilds are perfect and need to micro patching - for embedded builds some flexibility is very helpful. Patching ebuilds in mind: I have been experimenting with /etc/portage/patches and also the bashrc for broad patching, eg where some long standing patch or config customisation is necessary (eg delete some openrc file which makes no sense, or customise some udev config, etc) I guess if we could get this well written up then it would encourage others to look at gentoo for embedded development? At the moment it's very powerful, but I sense there is a steep learning curve while you develop your own build environment? How do you think we should proceed? Ed W