spectrum-fw: Use the standard fetcher process (from Poky)
authorRichard Purdie <rpurdie@rpsys.net>
Thu, 23 Oct 2008 20:10:28 +0000 (21:10 +0100)
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Mon, 15 Mar 2010 07:09:40 +0000 (08:09 +0100)
Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
recipes/orinoco/spectrum-fw.bb
recipes/orinoco/spectrum-fw/get_symbol_fw

index cedb0e3..2799878 100644 (file)
@@ -1,9 +1,10 @@
 DESCRIPTION = "Firmware for Spectrum Wireless LAN cards"
-do_unpack[depends] += "unzip-native:do_populate_staging"
+DEPENDS += " unzip-native "
 LICENSE = "unknown"
-PR = "r1"
+PR = "r2"
 
-SRC_URI = "file://get_symbol_fw \
+SRC_URI = "ftp://symstore.longisland.com/Symstore/services_download/wirless_prod/MC&DriverOnlyInstallers.zip \
+           file://get_symbol_fw \
            file://parse_symbol_fw"
 S = "${WORKDIR}"
 
index e7b0bf2..80420b0 100755 (executable)
 
 set -e
 
-URL_BASE='ftp://symstore.longisland.com/Symstore/services_download/wirless_prod/'
-DL_FILE='MC&DriverOnlyInstallers.zip'
 DL_INT1='S24DRVR392B67-01.exe'
 DL_INT2='Driver Only Installer/NetWLan5.sys'
 DRIVER1=symbol1.drv
 DRIVER2=symbol2.drv
 
-get_file() {
-    curl --remote-name "$1" || \
-    wget --passive-ftp "$1" || \
-    wget "$1" || \
-    ftp "$1" </dev/null || \
-    exit 1
-}
-                   
-if ! test -f $DL_FILE; then
-    get_file $URL_BASE/$DL_FILE
-fi
-                       
-unzip -p $DL_FILE "$DL_INT1" >$DRIVER1
-unzip -p $DRIVER1 "$DL_INT2" >$DRIVER2
-                       
+unzip -p $DL_INT1 "$DL_INT2" >$DRIVER2
+       
 perl parse_symbol_fw $DRIVER2 spectrum_fw.h symbol_sp24t_prim_fw \
     symbol_sp24t_sec_fw
                            
-rm -f $DRIVER1 $DRIVER2
\ No newline at end of file
+rm -f $DRIVER1 $DRIVER2
+