Received: from [66.249.82.238] (helo=wx-out-0506.google.com) by linuxtogo.org with esmtp (Exim 4.68) (envelope-from ) id 1JQP96-0003qH-9c for openembedded-devel@lists.openembedded.org; Sat, 16 Feb 2008 16:40:12 +0100 Received: by wx-out-0506.google.com with SMTP id h27so1062091wxd.3 for ; Sat, 16 Feb 2008 07:39:43 -0800 (PST) Received: by 10.150.53.2 with SMTP id b2mr1392952yba.110.1203176382499; Sat, 16 Feb 2008 07:39:42 -0800 (PST) Received: by 10.150.181.19 with HTTP; Sat, 16 Feb 2008 07:39:42 -0800 (PST) Message-ID: <74d0deb30802160739o7aafbbbdo4093d7c9ef38beb9@mail.gmail.com> Date: Sat, 16 Feb 2008 16:39:42 +0100 From: "pHilipp Zabel" To: openembedded-devel@lists.openembedded.org In-Reply-To: <20080216150111.3737b02b@widy.localdomain> MIME-Version: 1.0 References: <20080216150111.3737b02b@widy.localdomain> X-SA-Exim-Connect-IP: 66.249.82.238 X-SA-Exim-Mail-From: philipp.zabel@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: "angstrom-distro-devel @ linuxtogo. org" Subject: Re: [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: Sat, 16 Feb 2008 15:40:13 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Feb 16, 2008 2:01 PM, Paul Sokolovsky wrote: > Hello, > > 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} ? 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. regards Philipp