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 <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2014-04-03 10:40:21 +02:00
parent fb6b300acc
commit aa6daab533
1 changed files with 13 additions and 0 deletions

View File

@ -72,6 +72,18 @@ copy_images() {
fi 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) # Sanity check (Jenkins environment)
[ -z "${DY_BUILD_VARIANTS}" ] && error "DY_BUILD_VARIANTS not specified" [ -z "${DY_BUILD_VARIANTS}" ] && error "DY_BUILD_VARIANTS not specified"
[ -z "${DY_PLATFORMS}" ] && error "DY_PLATFORMS 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" printf "\n[INFO] Building the $target target.\n"
time bitbake ${target} time bitbake ${target}
done done
purge_sstate
) )
copy_images ${_this_img_dir} copy_images ${_this_img_dir}
popd popd