]> sigrok.org Git - sigrok-util.git/blobdiff - firmware/dreamsourcelab-dslogic/sigrok-fwextract-dreamsourcelab-dslogic
Add sigrok-fwextract-dreamsourcelab-dslogic script and manpage.
[sigrok-util.git] / firmware / dreamsourcelab-dslogic / sigrok-fwextract-dreamsourcelab-dslogic
diff --git a/firmware/dreamsourcelab-dslogic/sigrok-fwextract-dreamsourcelab-dslogic b/firmware/dreamsourcelab-dslogic/sigrok-fwextract-dreamsourcelab-dslogic
new file mode 100755 (executable)
index 0000000..5929be9
--- /dev/null
@@ -0,0 +1,42 @@
+#!/bin/sh
+##
+## This file is part of the sigrok-util project.
+##
+## Copyright (C) 2016 Uwe Hermann <uwe@hermann-uwe.de>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 3 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, see <http://www.gnu.org/licenses/>.
+##
+
+umask 022
+
+WGET="wget -c -q"
+if [ -z $PREFIX ]; then
+       PREFIX="/usr/local"
+fi
+FWDIR="$PREFIX/share/sigrok-firmware"
+FWURL="https://github.com/DreamSourceLab/DSView/raw/master/DSView/res"
+
+echo "Installing into: $FWDIR"
+
+mkdir -p $FWDIR
+
+$WGET $FWURL/DSLogic50.bin -O $FWDIR/dreamsourcelab-dslogic-fpga-5v.fw
+$WGET $FWURL/DSLogic33.bin -O $FWDIR/dreamsourcelab-dslogic-fpga-3v3.fw
+$WGET $FWURL/DSLogic.fw -O $FWDIR/dreamsourcelab-dslogic-fx2.fw
+
+$WGET $FWURL/DSCope.bin -O $FWDIR/dreamsourcelab-dscope-fpga.fw
+$WGET $FWURL/DSCope.fw -O $FWDIR/dreamsourcelab-dscope-fx2.fw
+
+$WGET $FWURL/DSLogicPro.bin -O $FWDIR/dreamsourcelab-dslogic-pro-fpga.fw
+$WGET $FWURL/DSLogicPro.fw -O $FWDIR/dreamsourcelab-dslogic-pro-fx2.fw