get-scripts view speedtouch-firmware @ rev 54

Add zd1201-firmware
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 23 13:31:41 2016 +0200 (2016-04-23)
parents 6ca05e6839e1
children 62d94e6800db
line source
1 SHORT_DESC="Firmware for SpeedTouch ADSL Modem."
2 WEB_SITE="http://www.linux-usb.org/SpeedTouch/"
3 # end of get.list data
4 DEPENDS=""
6 VERSION="3.012"
7 mkdir -p $PACKAGE-$VERSION/fs/lib/firmware
8 TARBALL="SpeedTouch330_firmware_$(echo $VERSION | sed 's/\.//').zip"
9 #http://speedtouch.hysplace.co.uk/firmware.htm
10 #WGET_URL="http://www.speedtouch.com/download/drivers/USB/$TARBALL"
11 #from http://www.filewatcher.com/m/SpeedTouch330_firmware_3012.zip.769125-0.html
12 WGET_URL="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/$TARBALL"
13 wget $WGET_URL
14 [ $TARBALL ] || abort_package "Could not download $TARBALL. Exiting."
15 unzip -n $(basename $WGET_URL)
16 wget http://www.linux-usb.org/SpeedTouch/firmware/firmware-extractor.tar.gz
17 tar xzf firmware-extractor.tar.gz
18 cd firmware-extractor/
19 which gcc || tazpkg get-install gcc
20 gcc -o firmware-extractor firmware.c
21 FIRMWARE="ZZZL_$VERSION"
22 [ "$PACKAGE" = "speedtouch-firmware" ] && FIRMWARE="KQD6_$VERSION"
23 cp ../$FIRMWARE mgmt.o
24 ./firmware-extractor mgmt.o
25 install -m 600 speedtch-1.bin speedtch-2.bin \
26 ../$PACKAGE-$VERSION/fs/lib/firmware
27 cd ..