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 1PzbOK-0006vj-Ej for garchives@archives.gentoo.org; Tue, 15 Mar 2011 21:02:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64BCF1C0AD for ; Tue, 15 Mar 2011 21:02:55 +0000 (UTC) Received: from mail1.nippynetworks.com (mail1.nippynetworks.com [91.220.24.129]) by pigeon.gentoo.org (Postfix) with ESMTP id 318A61C07C for ; Tue, 15 Mar 2011 20:59:51 +0000 (UTC) Received: from localhost (mail1.nippynetworks.com [127.0.0.1]) by mail1.nippynetworks.com (Postfix) with ESMTP id 88276340328 for ; Tue, 15 Mar 2011 20:59:50 +0000 (GMT) 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 1mbmENd4Vcdf for ; Tue, 15 Mar 2011 20:59:50 +0000 (GMT) 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 34ACB340322 for ; Tue, 15 Mar 2011 20:59:50 +0000 (GMT) Message-ID: <4D7FD345.3000009@wildgooses.com> Date: Tue, 15 Mar 2011 20:59:49 +0000 From: Ed W User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 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] Suggestion for INSTALL_MASK References: <4D74E2B7.9000906@gmx.ch> <1299555980.20664.2.camel@here> In-Reply-To: <1299555980.20664.2.camel@here> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 0a064eb304395114d9fc1b35c29f5721 On 08/03/2011 03:46, solar wrote: > On Mon, 2011-03-07 at 14:50 +0100, Martin Gysel wrote: >> Hi there >> >> I'm looking for a 'good' INSTALL_MASK file/definition to use with my >> embedded system. As the flash on the boards is rather small I only want >> to have the really required files on it. >> Can anyone share his INSTALL_MASK? > > For a read-only compat flash based system and ~10 or so pkgs. I've used > *.a *.o *.la /usr/include *.pc *.pyc *.pyo *.example *.sample > > Clearly you can nail it down abit more for your own needs. But for mine > that was fairly good to grab the majorituy of the bloat. OK, here's my current mask. Note this is for a run only system, I build the image elsewhere so no portage stuff required on the final image (I do something like build the root, then strip that down a little further by rsync'ing to the final target) export INSTALL_MASK="usr/include/ usr/portage usr/share/doc usr/share/gtk-doc usr/share/info usr/share/man var/cache/ var/db/pkg var/lib/gentoo var/lib/portage *.a *.o .keep_* *.la *.pc *.pyc *.pyo *.example *.sample" Additionally I am playing with this for installing perl: export INSTALL_MASK="${INSTALL_MASK} */usr/lib/perl5/*.h usr/lib/perl5/5.*/ExtUtils/ usr/lib/perl5/5.*/CPAN/ usr/lib/perl5/5.*/CPANPLUS/ usr/lib/perl5/5.*/*-linux-*/auto/Encode/JP usr/lib/perl5/5.*/*-linux-*/auto/Encode/KR usr/lib/perl5/5.*/*-linux-*/auto/Encode/CN usr/lib/perl5/5.*/*-linux-*/auto/Encode/TW usr/lib/perl5/5.*/*-linux-*/Devel/ usr/lib/perl5/5.*/*-linux-*/auto/Devel/ usr/lib/perl5/5.*/Module/CoreList.pm usr/lib/perl5/5.*/Module/Build* usr/lib/perl5/5.*/perl5db.pl usr/lib /perl5/5.*/[Pp]od usr/lib/perl5/5.*/unicore/mktables usr/lib/perl5/5.*/unicore/TestProp.pl */usr/lib/perl5/5.*/unicore/*.txt */usr/lib/perl5/*.pod" I then strip a bunch of comments out of some perl files: sed -i -e 's/^#.*//' -e '/^$/d' ${TARGET}/usr/lib/perl5/5.12.2/unicore/lib/*/*.pl and finally build the target with something like: rsync -aH --progress --delete --delete-excluded \ --exclude 'usr/portage/*' \ --exclude 'var/db/pkg' \ --exclude 'var/cache/*' \ --exclude 'var/lib/portage' \ --exclude 'var/lib/gentoo' \ ${ROOT}/ ${TARGET} Using squashfs + aufs2 (stackable squashfs so I can add more stuff later) that gets me a fairly decent base installation including routing, wireless, shorewall, perl and some more, in under 10MB Good luck Ed W