aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/rbpi/prepare-depends
diff options
context:
space:
mode:
Diffstat (limited to 'tools/buildsteps/rbpi/prepare-depends')
-rwxr-xr-xtools/buildsteps/rbpi/prepare-depends8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/buildsteps/rbpi/prepare-depends b/tools/buildsteps/rbpi/prepare-depends
index c084909dfa..8205432d65 100755
--- a/tools/buildsteps/rbpi/prepare-depends
+++ b/tools/buildsteps/rbpi/prepare-depends
@@ -3,7 +3,8 @@ XBMC_PLATFORM_DIR=rbpi
. $WORKSPACE/tools/buildsteps/defaultenv
#clean without depends for skipping depends build if possible
-cd $WORKSPACE;git clean -xfd -e "project/cmake/.last_success_revision" -e "tools/depends"
+#also skip binary addons (pvr, audioencoder) as long as they are deployed in tree
+cd $WORKSPACE;git clean -xfd -e "project/cmake/.last_success_revision" -e "tools/depends" ${DEPLOYED_BINARY_ADDONS}
if [ -d $JENKINS_RBPI_DEVENV/firmware ]
then
@@ -12,7 +13,10 @@ else
cd $JENKINS_RBPI_DEVENV;git clone git://github.com/raspberrypi/firmware.git --depth=1 -b master
fi
-if [ "$(rebuildDepends)" == "1" ]
+cd $WORKSPACE
+
+# if depends path has changed - cleanout everything and do a full rebuild
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
then
#clean up the rest too
cd $WORKSPACE;git clean -xffd