From c91898e4b12443c92e7ab7424781f2f957f74068 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Mon, 16 Jun 2014 11:31:55 +0200 Subject: [PATCH] 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 --- sdk/build.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sdk/build.sh b/sdk/build.sh index 7a73e4f6d..ad579a306 100755 --- a/sdk/build.sh +++ b/sdk/build.sh @@ -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)