Received: from relay1.mentorg.com ([192.94.38.131]) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1Nl3hy-00061O-HN for openembedded-devel@lists.openembedded.org; Fri, 26 Feb 2010 18:10:36 +0100 Received: from svr-orw-exc-08.mgc.mentorg.com ([147.34.98.97]) by relay1.mentorg.com with esmtp id 1Nl3fG-0002cF-4t from Tom_Rini@mentor.com for openembedded-devel@lists.openembedded.org; Fri, 26 Feb 2010 09:07:46 -0800 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by SVR-ORW-EXC-08.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 26 Feb 2010 09:07:45 -0800 Received: from 172.30.80.81 ([172.30.80.81]) by NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) with Microsoft Exchange Server HTTP-DAV ; Fri, 26 Feb 2010 17:07:45 +0000 Received: from trini-m4400 by na1-mail.mgc.mentorg.com; 26 Feb 2010 10:07:41 -0700 From: Tom Rini To: openembedded-devel@lists.openembedded.org In-Reply-To: <201002261754.25997.marcin@juszkiewicz.com.pl> References: <1267202357-8614-1-git-send-email-Martin.Jansa@gmail.com> <201002261754.25997.marcin@juszkiewicz.com.pl> Organization: Mentor Graphics Corporation Date: Fri, 26 Feb 2010 10:07:41 -0700 Message-ID: <1267204061.18176.561.camel@trini-m4400> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 X-OriginalArrivalTime: 26 Feb 2010 17:07:45.0767 (UTC) FILETIME=[37394F70:01CAB706] X-SA-Exim-Connect-IP: 192.94.38.131 X-SA-Exim-Mail-From: Tom_Rini@mentor.com X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on discovery X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=AWL,MIME_QP_LONG_LINE autolearn=no version=3.2.5 X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: Yes (on linuxtogo.org) Subject: Re: Generating slightly different images for different IMAGE_FSTYPES X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 17:10:36 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2010-02-26 at 17:54 +0100, Marcin Juszkiewicz wrote: > Dnia pi=C4=85tek, 26 lutego 2010 o 17:39:16 Martin Jansa napisa=C5=82(a): >=20 > > We're slowly stripping packages not really needed, but it would be > > nice to remove whole /boot with kernel-image. >=20 > > Is there better way to solve it or should we try harder to save space > > somewhere else? >=20 > Learn about ROOTFS_POSTPROCESS_COMMAND variable present in=20 > classes/rootfs_*.bbclass files. You can use it to launch your function af= ter=20 > rootfs is populated. >=20 > So for example your shr-lite-image has drop_kernel_from_boot function in = which=20 > you check "MACHINE=3D=3Dom-gta01" and if it is then "rm -rf /boot/uImage"= . After=20 > your function all normal ext2/ubifs/jffs2/tarball images will be created=20 > without kernel in them. Or (as there's a number of ways to do this): PACKAGE_REMOVE =3D "kernel-image-*" ROOTFS_POSTPROCESS_COMMAND_om-gta01 +=3D "opkg-cl ${IPKG_ARGS} -force-depends \ remove ${PACKAGE_REMOVE};" --=20 Tom Rini Mentor Graphics Corporation