Received: from [66.249.92.170] (helo=ug-out-1314.google.com) by linuxtogo.org with esmtp (Exim 4.68) (envelope-from ) id 1JRmqz-0007Qv-9g for openembedded-devel@lists.openembedded.org; Wed, 20 Feb 2008 12:11:15 +0100 Received: by ug-out-1314.google.com with SMTP id i24so4084052ugd.24 for ; Wed, 20 Feb 2008 03:10:14 -0800 (PST) Received: by 10.66.249.16 with SMTP id w16mr5596320ugh.32.1203505814554; Wed, 20 Feb 2008 03:10:14 -0800 (PST) Received: from widy.localdomain ( [88.231.76.37]) by mx.google.com with ESMTPS id 32sm8849257ugf.9.2008.02.20.03.10.08 (version=SSLv3 cipher=OTHER); Wed, 20 Feb 2008 03:10:10 -0800 (PST) Date: Wed, 20 Feb 2008 13:11:53 +0200 From: Paul Sokolovsky To: angstrom-distro-devel@linuxtogo.org Message-ID: <20080220131153.6dc67355@widy.localdomain> In-Reply-To: <20080216175242.724b75a6@widy.localdomain> References: <20080216150111.3737b02b@widy.localdomain> <74d0deb30802160739o7aafbbbdo4093d7c9ef38beb9@mail.gmail.com> <20080216175242.724b75a6@widy.localdomain> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.5; i686-pc-linux-gnu) Mime-Version: 1.0 X-SA-Exim-Connect-IP: 66.249.92.170 X-SA-Exim-Mail-From: pmiscml@gmail.com X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on serenity X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=RDNS_NONE autolearn=no version=3.2.3 X-SA-Exim-Version: 4.2.1 (built Tue, 21 Aug 2007 23:39:36 +0000) X-SA-Exim-Scanned: Yes (on linuxtogo.org) Cc: openembedded-devel@lists.openembedded.org Subject: Re: [Angstrom-devel] [RFC] Per-ANGSTROM_MODE caches for Angstrom X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.9 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: Wed, 20 Feb 2008 11:11:16 -0000 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hello, So, no objections? I'll add it then, and RFC adding to stable branch too. I'd like to keep that extra check for ANGSTROM_MODE being set - it at least consistent with existing MACHINE check. On Sat, 16 Feb 2008 17:52:42 +0200 Paul Sokolovsky wrote: [] > > > It's pretty annoying to wait for cache rebuild each time > > > ANGSTROM_MODE is swicthed, especially if that happens often. > > > Following patch stores bitbake cache for each mode separately: > > > > > > # > > > # old_revision [1821f6eadefc14ad7ce51d5ab026da139608f557] > > > # > > > # patch "conf/distro/include/angstrom.inc" > > > # from [b86b952c90304d1fd39f1415f6af7f71d02e00df] > > > # to [e7921869d30b7e5df3fd39fbd4bec5d2495b5d31] > > > # > > > ============================================================ > > > --- conf/distro/include/angstrom.inc > > > b86b952c90304d1fd39f1415f6af7f71d02e00df +++ > > > conf/distro/include/angstrom.inc > > > e7921869d30b7e5df3fd39fbd4bec5d2495b5d31 @@ -12,6 +12,7 @@ > > > ANGSTROM_MODE ?= "glibc" # Can be "glibc", "eglibc" or "uclibc" > > > ANGSTROM_MODE ?= "glibc" > > > > > > +CACHE = "${TMPDIR}/cache${@['', '/' + > > > str(bb.data.getVar('ANGSTROM_MODE', d, > > > 1))][bool(bb.data.getVar('ANGSTROM_MODE', d, 1))]}${@['', '/' + > > > str(bb.data.getVar('MACHINE', d, > > > 1))][bool(bb.data.getVar('MACHINE', d, 1))]}" DEPLOY_DIR = > > > "${TMPDIR}/deploy/${ANGSTROM_MODE}" require > > > conf/distro/include/angstrom-${ANGSTROM_MODE}.inc > > > > +1, for the idea, but why not just > > ${TMPDIR}/cache/${ANGSTROM_MODE} ? > > Well, nice question ;-). To be generic and putable even in > bitbake.conf ;-) > > > And I don't understand why you need to include MACHINE there. > > I've never needed to rebuild caches when switching MACHINE, and I > > shouldn't have to. > > Heh, multimachine puts it there ;-) > > > > > regards > > Philipp > > > -- > Best regards, > Paul mailto:pmiscml@gmail.com -- Best regards, Paul mailto:pmiscml@gmail.com