[OE-core] sstate.bbclass: Ensure machine specific stamps are only wiped for the current task

Martin Jansa martin.jansa at gmail.com
Mon Oct 10 11:45:07 UTC 2011


On Sun, Oct 09, 2011 at 08:11:45PM +0200, Koen Kooi wrote:
> 
> Op 9 okt. 2011, om 20:10 heeft Martin Jansa het volgende geschreven:
> 
> > On Sun, Oct 09, 2011 at 01:25:09PM +0200, Koen Kooi wrote:
> >> 
> >> Op 6 okt. 2011, om 16:19 heeft Richard Purdie het volgende geschreven:
> >> 
> >>> sstate was being a little too ethusiastic about removing stamp files and
> >>> was removing stamp files for other machines when it shouldn't have been.
> >>> 
> >>> This patch teaches sstate about machine specific stamp extensions and
> >>> allows it to only remove the current task's stampfiles.
> >> 
> >> Not sure if it's related to this problem or not but sstate is still not working as intented for me when switching machines, it keeps rebuilding the toolchain when switching machine. What I did this morning:
> >> 
> >> 1) wipe out tmp, sstate-cache, pseudodone
> >> 2) MACHINE=beagleboard bitbake u-boot
> >> 3) cp conf/machine/beagleboard.conf conf/machine/brokensstate.conf
> >> 4) MACHINE=brokensstate bitbake u-boot
> > 
> > Same here.. :/ (building 3 armv7 machines.. always "from scratch").
> 
> To eliminate varables: Angstrom/shr/aurora/micro/other/all of the above?

DISTRO=shr

MACHINE=nokia900 bitbake shr-image -> builds from scratch, finished ok
MACHINE=palmpre bitbake shr-image -> builds from scratch, finished ok
MACHINE=palmpre2 bitbake shr-image -> builds from scratch, finished ok

without wiping anything (same tmp, same sstate-cache, same pseudodone)

MACHINE=palmpre bitbake shr-image -> builds from scratch, again!, finished ok
MACHINE=palmpre2 bitbake shr-image -> builds from scratch, again!, finished ok
MACHINE=nokia900 bitbake shr-image -> builds from scratch, again!, finished ok

palmpre and palmpre2 are "the same"
$ cat meta-smartphone/meta-palm/conf/machine/palmpre.conf | grep -v ^#
require conf/machine/include/palmpre.inc

$ cat meta-smartphone/meta-palm/conf/machine/palmpre2.conf | grep -v ^#
require conf/machine/include/palmpre.inc

nokia900 is also armv7a-vfp-neon (that's why all packages except
MACHINE_ARCH were always reused without rebuilding in OE-classic).

I have tried to debug sigdata files to see why and also tried to add
MACHINEOVERRIDES[vardepsexclude] = "MACHINE"
as RP suggested, but sofar haven't found solution at least to reuse
already built sstate packages for armv7a-vfp-neon.

Regards,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20111010/af4c455f/attachment-0002.sig>


More information about the Openembedded-core mailing list