]>
Commit | Line | Data |
---|---|---|
61e867bb UH |
1 | #!/bin/sh |
2 | ## | |
3 | ## This file is part of the sigrok-util project. | |
4 | ## | |
5 | ## Copyright (C) 2016 Uwe Hermann <uwe@hermann-uwe.de> | |
6 | ## | |
7 | ## This program is free software; you can redistribute it and/or modify | |
8 | ## it under the terms of the GNU General Public License as published by | |
9 | ## the Free Software Foundation; either version 3 of the License, or | |
10 | ## (at your option) any later version. | |
11 | ## | |
12 | ## This program is distributed in the hope that it will be useful, | |
13 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ## GNU General Public License for more details. | |
16 | ## | |
17 | ## You should have received a copy of the GNU General Public License | |
18 | ## along with this program; if not, see <http://www.gnu.org/licenses/>. | |
19 | ## | |
20 | ||
21 | umask 022 | |
22 | ||
23 | WGET="wget -c -q" | |
24 | if [ -z $PREFIX ]; then | |
25 | PREFIX="/usr/local" | |
26 | fi | |
27 | FWDIR="$PREFIX/share/sigrok-firmware" | |
28 | FWURL="https://github.com/DreamSourceLab/DSView/raw/master/DSView/res" | |
29 | ||
30 | echo "Installing into: $FWDIR" | |
31 | ||
32 | mkdir -p $FWDIR | |
33 | ||
34 | $WGET $FWURL/DSLogic50.bin -O $FWDIR/dreamsourcelab-dslogic-fpga-5v.fw | |
35 | $WGET $FWURL/DSLogic33.bin -O $FWDIR/dreamsourcelab-dslogic-fpga-3v3.fw | |
36 | $WGET $FWURL/DSLogic.fw -O $FWDIR/dreamsourcelab-dslogic-fx2.fw | |
37 | ||
38 | $WGET $FWURL/DSCope.bin -O $FWDIR/dreamsourcelab-dscope-fpga.fw | |
39 | $WGET $FWURL/DSCope.fw -O $FWDIR/dreamsourcelab-dscope-fx2.fw | |
40 | ||
41 | $WGET $FWURL/DSLogicPro.bin -O $FWDIR/dreamsourcelab-dslogic-pro-fpga.fw | |
42 | $WGET $FWURL/DSLogicPro.fw -O $FWDIR/dreamsourcelab-dslogic-pro-fx2.fw |