summaryrefslogtreecommitdiffstats
path: root/scripts/deblob-2.6.37
diff options
context:
space:
mode:
authorAlexandre Oliva <lxoliva@fsfla.org>2013-05-03 10:09:11 +0000
committerAlexandre Oliva <lxoliva@fsfla.org>2013-05-03 10:09:11 +0000
commitdd723040df610d7ba9851fe49ba7b60dc8a8edd4 (patch)
tree1a3d53338f655f98f0b2cca9553e317138565b38 /scripts/deblob-2.6.37
parentfd645dbf4797628ce3c7ab7b24357d96a7ca91ee (diff)
downloadlinux-libre-raptor-dd723040df610d7ba9851fe49ba7b60dc8a8edd4.tar.gz
linux-libre-raptor-dd723040df610d7ba9851fe49ba7b60dc8a8edd4.zip
GNU Linux-libre 2.6.37-gnu1
Diffstat (limited to 'scripts/deblob-2.6.37')
-rwxr-xr-xscripts/deblob-2.6.3745
1 files changed, 20 insertions, 25 deletions
diff --git a/scripts/deblob-2.6.37 b/scripts/deblob-2.6.37
index 9f05cea50..d3850734b 100755
--- a/scripts/deblob-2.6.37
+++ b/scripts/deblob-2.6.37
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright (C) 2008-2012 Alexandre Oliva <lxoliva@fsfla.org>
+# Copyright (C) 2008-2013 Alexandre Oliva <lxoliva@fsfla.org>
# Copyright (C) 2008 Jeff Moe
# Copyright (C) 2009 Rubén Rodríguez <ruben@gnu.org>
#
@@ -48,7 +48,7 @@
# For each kver release, start extra with an empty string, then count
# from 1 if changes are needed that require rebuilding the tarball.
-kver=2.6.37 extra=
+kver=2.6.37 extra=1
case $1 in
--force)
@@ -80,6 +80,7 @@ if [ ! -f $check ] ; then
have_check=false
else
have_check=:
+ [ -x $check ] || check="/bin/sh $check"
fi
filetest () {
@@ -116,7 +117,13 @@ clean_blob () {
name=$1
set fnord "$@" -d
shift 2
- $check "$@" -i linux-$kver $name > $name.deblob
+ if $check "$@" -i linux-$kver $name > $name.deblob; then
+ if [ ! -s $name.deblob ]; then
+ die got an empty file after removing blobs from $name
+ fi
+ else
+ die failed removing blobs from $name
+ fi
check_changed $name && echo $name: removed blobs
else
clean_file $1
@@ -248,16 +255,14 @@ for f in \
drivers/net/wan/wanxlfw.S \
drivers/net/wireless/atmel.c \
drivers/net/wireless/atmel.c \
- drivers/scsi/53c700_d.h_shipped \
- drivers/scsi/53c700.scr \
drivers/scsi/aic7xxx/aic79xx_seq.h_shipped \
drivers/scsi/aic7xxx/aic79xx.seq \
drivers/scsi/aic7xxx/aic7xxx_seq.h_shipped \
drivers/scsi/aic7xxx/aic7xxx.seq \
drivers/scsi/aic7xxx_old/aic7xxx_seq.c \
drivers/scsi/aic7xxx_old/aic7xxx.seq \
- drivers/scsi/53c7xx_d.h_shipped \
- drivers/scsi/53c7xx.scr \
+ drivers/scsi/53c700_d.h_shipped \
+ drivers/scsi/53c700.scr \
drivers/scsi/sym53c8xx_2/sym_fw1.h \
drivers/scsi/sym53c8xx_2/sym_fw1.h \
drivers/scsi/sym53c8xx_2/sym_fw2.h \
@@ -271,9 +276,7 @@ for f in \
sound/pci/cs46xx/imgs/cwcdma.h \
sound/pci/cs46xx/imgs/cwcdma.asp \
; do
- if test ! $f; then
- die $f is not present, something is amiss && return
- fi
+ filetest $f
done
# Identify the tarball.
@@ -601,15 +604,6 @@ reject_firmware drivers/media/dvb/dvb-usb/dvb-usb-firmware.c
clean_kconfig drivers/media/dvb/dvb-usb/Kconfig 'DVB_USB'
clean_mk CONFIG_DVB_USB drivers/media/dvb/dvb-usb/Makefile
-announce DVB_USB_AF9005 - "Afatech AF9005 DVB-T USB1.1"
-clean_file drivers/media/dvb/dvb-usb/af9005-script.h
-clean_sed '
-s,^ deb_info("load init script\\n");$, {\n err("Missing Free init script\\n");\n return scriptlen = ret = -EINVAL;\n ,;
-' drivers/media/dvb/dvb-usb/af9005-fe.c 'report missing Free init script'
-clean_blob drivers/media/dvb/dvb-usb/af9005-fe.c
-clean_kconfig drivers/media/dvb/dvb-usb/Kconfig 'DVB_USB_AF9005'
-clean_mk CONFIG_DVB_USB_AF9005 drivers/media/dvb/dvb-usb/Makefile
-
announce DVB_B2C2_FLEXCOP - "Technisat/B2C2 FlexCopII(b) and FlexCopIII adapters"
reject_firmware drivers/media/dvb/b2c2/flexcop-fe-tuner.c
@@ -622,6 +616,11 @@ clean_kconfig drivers/media/dvb/dvb-usb/Kconfig 'DVB_USB_A800'
clean_mk CONFIG_DVB_USB_A800 drivers/media/dvb/dvb-usb/Makefile
announce DVB_USB_AF9005 - "Afatech AF9005 DVB-T USB1.1 support"
+clean_file drivers/media/dvb/dvb-usb/af9005-script.h
+clean_sed '
+s,^ deb_info("load init script\\n");$, {\n err("Missing Free init script\\n");\n return scriptlen = ret = -EINVAL;\n ,;
+' drivers/media/dvb/dvb-usb/af9005-fe.c 'report missing Free init script'
+clean_blob drivers/media/dvb/dvb-usb/af9005-fe.c
clean_blob drivers/media/dvb/dvb-usb/af9005.c
clean_kconfig drivers/media/dvb/dvb-usb/Kconfig 'DVB_USB_AF9005'
clean_mk CONFIG_DVB_USB_AF9005 drivers/media/dvb/dvb-usb/Makefile
@@ -1509,15 +1508,11 @@ clean_sed '
' drivers/staging/ath6kl/os/linux/ar6000_android.c \
'disabled non-Free firmware loading machinery'
clean_blob drivers/staging/ath6kl/os/linux/include/ar6000_drv.h
+clean_sed '/File:/ s,bdata[^)]*\.bin,/*DEBLOBBED*/,' \
+ drivers/staging/ath6kl/Kconfig 'removed blob names'
clean_kconfig drivers/staging/ath6kl/Kconfig 'ATH6K_LEGACY'
clean_mk CONFIG_ATH6K_LEGACY drivers/staging/ath6kl/Makefile
-announce ATH9K_HTC - "Atheros HTC based wireless cards support"
-reject_firmware drivers/net/wireless/ath/ath9k/hif_usb.c
-clean_blob drivers/net/wireless/ath/ath9k/hif_usb.c
-clean_kconfig drivers/net/wireless/ath/ath9k/Kconfig 'ATH9K_HTC'
-clean_mk CONFIG_ATH9K_HTC drivers/net/wireless/ath/ath9k/Makefile
-
announce PRISM2_USB - "Prism2.5/3 USB driver"
reject_firmware drivers/staging/wlan-ng/prism2fw.c
clean_blob drivers/staging/wlan-ng/prism2fw.c
OpenPOWER on IntegriCloud