build.sh: purge sstate of all packagegroups between builds

Packagegroups define sets of packages to be installed in the rootfs
*depending* on the hardware variant (~MACHINE_FEATURES). For example
installing or not the bluetooth firmware depending on machine variant
having bluetooth.

It may happen that we build sequentially machines with different
features using the same sstate and thus it may happen we end with a
rootfs lacking bluetooth firmware for a bluetooth variant.

So add all packagegroups to the list of packages to purge state-cache
between platform builds.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2014-06-16 11:31:55 +02:00
parent dbf830b6a0
commit c91898e4b1
1 changed files with 12 additions and 1 deletions

View File

@ -81,7 +81,18 @@ copy_images() {
# builds.
#
purge_sstate() {
bitbake -c cleansstate packagegroup-dey-examples || true
local PURGE_PKGS=" \
packagegroup-dey-audio \
packagegroup-dey-bluetooth \
packagegroup-dey-core \
packagegroup-dey-debug \
packagegroup-dey-examples \
packagegroup-dey-gstreamer \
packagegroup-dey-network \
packagegroup-dey-qt \
packagegroup-dey-wireless \
"
bitbake -k -c cleansstate ${PURGE_PKGS} >/dev/null 2>&1 || true
}
# Sanity check (Jenkins environment)