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:
parent
fb6b300acc
commit
aa6daab533
13
sdk/build.sh
13
sdk/build.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue