]> code.ossystems Code Review - openembedded-core.git/commit
sstate: Ensure a given machine only removes things which it created
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Aug 2018 14:56:00 +0000 (14:56 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Aug 2018 08:33:53 +0000 (09:33 +0100)
commit5634f2fb1740732056d2c1a22717184ef94405bf
treed487062c73e6b38f39ae3b7de0a0658736816b7e
parentc7c5f4065c102fde4e11d138fb0b6e25bffe0379
sstate: Ensure a given machine only removes things which it created

Currently if you build qemux86 and then generic86, the latter will
remove all of the former from deploy and workdir. This is because
qemux86 is i586, genericx86 is i686 and the architctures are compatible
therefore the sstate 'cleaup' code kicks in.

There was a valid reason for this to ensure i586 packages didn't get into
an i686 rootfs for example. With the rootfs creation being filtered now, this
is no longer necessary.

Instead, save out a list of stamps which a give machine has ever seen in
a given build and only clean up these things if they're no longer
"reachable".

In particular this means the autobuilder should no longer spend a load of time
deleting files when switching MACHINE, improving build times.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass