aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/rbpi
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2015-03-25 20:45:24 +0100
committerMemphiz <memphis@machzwo.de>2015-03-25 21:21:29 +0100
commit6e6f2c0b49b69a75e59ffac3581bce4a393c892a (patch)
tree65bdb11042cf4cf91f2b4857de7823e08fac2791 /tools/buildsteps/rbpi
parent4649f97e9e5e675d4eec54a639b886115581cb5c (diff)
[jenkins] - prevent cleanout of native tools when pathChanged returns 1 in make-native-depends (due to Configuration set to RELEASE)
Diffstat (limited to 'tools/buildsteps/rbpi')
-rwxr-xr-xtools/buildsteps/rbpi/make-native-depends2
-rwxr-xr-xtools/buildsteps/rbpi/prepare-xbmc3
2 files changed, 4 insertions, 1 deletions
diff --git a/tools/buildsteps/rbpi/make-native-depends b/tools/buildsteps/rbpi/make-native-depends
index 5f6d64c452..d4d9e7dbe1 100755
--- a/tools/buildsteps/rbpi/make-native-depends
+++ b/tools/buildsteps/rbpi/make-native-depends
@@ -2,7 +2,7 @@ WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )}
XBMC_PLATFORM_DIR=rbpi
. $WORKSPACE/tools/buildsteps/defaultenv
-if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ]
+if [ "$(pathChanged $WORKSPACE/tools/depends)" == "1" ] && [ "$BINARY_ADDONS_CLEAN_NATIVETOOLS" != "0" ]
then
git clean -xffd $WORKSPACE/tools/depends/native
cd $WORKSPACE/tools/depends/native;make -j $BUILDTHREADS && tagSuccessFulBuild $WORKSPACE/tools/depends
diff --git a/tools/buildsteps/rbpi/prepare-xbmc b/tools/buildsteps/rbpi/prepare-xbmc
index 468c7ed5cb..15bd09542d 100755
--- a/tools/buildsteps/rbpi/prepare-xbmc
+++ b/tools/buildsteps/rbpi/prepare-xbmc
@@ -6,4 +6,7 @@ cd $WORKSPACE
JSON_BUILDER=$XBMC_DEPENDS_ROOT/i686-linux-gnu-native/bin/JsonSchemaBuilder ./bootstrap
#build binary addons before building xbmc...
+#make sure that binary_addons don't clean the native tools
+#here (e.x. on release builds where pathChanged always returns 1
+BINARY_ADDONS_CLEAN_NATIVETOOLS="0"
. $WORKSPACE/tools/buildsteps/$XBMC_PLATFORM_DIR/make-binary-addons