From aa6daab533d14b1f1ca8ff5b2815dd37ebf36e72 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Thu, 3 Apr 2014 10:40:21 +0200 Subject: [PATCH] build.sh: purge the state-cache of problematic packages In the buildserver we share the state-cache for all the different platforms we build in a jenkins job. This may cause problems with some packages that have different runtime dependencies depending on the platform or variant. Purge then the state-cache of those problematic packages between platform builds. Signed-off-by: Javier Viguera --- sdk/build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sdk/build.sh b/sdk/build.sh index fe6bfc8ad..16cc63271 100755 --- a/sdk/build.sh +++ b/sdk/build.sh @@ -72,6 +72,18 @@ copy_images() { fi } +# +# In the buildserver we share the state-cache for all the different platforms +# we build in a jenkins job. This may cause problems with some packages that +# have different runtime dependences depending on the platform. +# +# Purge then the state cache of those problematic packages between platform +# builds. +# +purge_sstate() { + bitbake -c cleansstate packagegroup-dey-examples +} + # Sanity check (Jenkins environment) [ -z "${DY_BUILD_VARIANTS}" ] && error "DY_BUILD_VARIANTS not specified" [ -z "${DY_PLATFORMS}" ] && error "DY_PLATFORMS not specified" @@ -177,6 +189,7 @@ for platform in ${DY_PLATFORMS}; do printf "\n[INFO] Building the $target target.\n" time bitbake ${target} done + purge_sstate ) copy_images ${_this_img_dir} popd