From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from avasout06.plus.net (avasout06.plus.net [212.159.14.18]) by mail.openembedded.org (Postfix) with ESMTP id 476C960088 for ; Tue, 12 Apr 2016 18:51:39 +0000 (UTC) Received: from deneb ([80.229.24.9]) by avasout06 with smtp id hWrT1s0060BmcFC01WrUK5; Tue, 12 Apr 2016 19:51:28 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=Rr04V3SK c=1 sm=1 tr=0 a=E/9URZZQ5L3bK/voZ0g0HQ==:117 a=E/9URZZQ5L3bK/voZ0g0HQ==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10 a=kziv93cY1bsA:10 a=e5qz2TNuiQ3Y2bB4M10A:9 a=CjuIK1q_8ugA:10 Received: from mac by deneb with local (Exim 4.84_2) (envelope-from ) id 1aq3PK-00055m-Lw; Tue, 12 Apr 2016 19:51:26 +0100 Date: Tue, 12 Apr 2016 19:51:26 +0100 From: Mike Crowe To: Richard Purdie Message-ID: <20160412185126.GA14627@mcrowe.com> References: <20160329125626.GA11712@mcrowe.com> <1459260670.21672.25.camel@linuxfoundation.org> MIME-Version: 1.0 In-Reply-To: <1459260670.21672.25.camel@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Mike Crowe , openembedded-core@lists.openembedded.org Subject: Re: Over-pruning the sstate cache X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2016 18:51:41 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tuesday 29 March 2016 at 15:11:10 +0100, Richard Purdie wrote: > On Tue, 2016-03-29 at 13:56 +0100, Mike Crowe wrote: > > 80b3974081c4a8c604e23982a6db8fb32c616058 implies that at least some > > people > > are pruning the sstate cache based on file access time. > > > > Is there a recommended way to ensure that all the sstate cache files > > are > > touched, even those that are not actually required to build the image > > currently due to task optimisation? > > > > Does anyone have any better ideas? > > generate the "locked-sigs" inc file (bitbake XXX -S none) and then with > a script touch all the objects listed in that file? I'm most of the way through writing a script to do this. I've discovered that the sstate filenames contain bits that aren't in the locked-sigs file such as ${PV}, ${PR}, ${TARGET_VENDOR}, ${TARGET_OS}, ${SSTATE_VERSION}. The hash is the important bit for identifying the file uniquely so these bits can either be hard coded or wildcarded as appropriate. There's also the need to apply native OS name prefix for native packages. Is there a a way of getting hold of those bits so I can avoid the wildcards? Thanks. Mike.