aboutsummaryrefslogtreecommitdiff
path: root/tools/XBMCLive/SDK/buildBinaryDrivers/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/XBMCLive/SDK/buildBinaryDrivers/build.sh')
-rwxr-xr-xtools/XBMCLive/SDK/buildBinaryDrivers/build.sh25
1 files changed, 15 insertions, 10 deletions
diff --git a/tools/XBMCLive/SDK/buildBinaryDrivers/build.sh b/tools/XBMCLive/SDK/buildBinaryDrivers/build.sh
index 26c06f9eb2..17a85c3bb8 100755
--- a/tools/XBMCLive/SDK/buildBinaryDrivers/build.sh
+++ b/tools/XBMCLive/SDK/buildBinaryDrivers/build.sh
@@ -43,16 +43,21 @@ else
mv crystalhd-HEAD.tar.gz Files/chroot_local-includes/root
fi
-if [ -z "$(ls NVIDIA*.run)" ]; then
- getNVIDIAInstaller
+if [ -z "$DONOTBUILDRESTRICTEDDRIVERS" ]; then
+ if ! ls NVIDIA*.run > /dev/null 2>&1 ; then
+ getNVIDIAInstaller
+ else
+ mv NVIDIA*.run Files/chroot_local-includes/root
+ fi
+
+ if ! ls ati*.run > /dev/null 2>&1 ; then
+ getAMDInstaller
+ else
+ mv ati*.run Files/chroot_local-includes/root
+ fi
else
- mv NVIDIA*.run Files/chroot_local-includes/root
-fi
-
-if [ -z "$(ls ati*.run)" ]; then
- getAMDInstaller
-else
- mv ati*.run Files/chroot_local-includes/root
+ rm Files/chroot_local-hooks/20-buildAMD.sh
+ rm Files/chroot_local-hooks/30-buildNVIDIA.sh
fi
@@ -70,5 +75,5 @@ makeConfig
build
# Get files from chroot
-cp $WORKDIR/chroot/tmp/*.ext3 .
+cp $WORKDIR/chroot/tmp/*.ext3 . &> /dev/null
cp $WORKDIR/chroot/tmp/crystalhd.tar .