git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@10363
559672b5-ba27-0410-b829-
e8f1faed8b1b
-# 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>
#
# Copyright (C) 2008 Jeff Moe
# Copyright (C) 2009 Rubén Rodríguez <ruben@gnu.org>
#
# For each kver release, start extra with an empty string, then count
# from 1 if changes are needed that require rebuilding the tarball.
# For each kver release, start extra with an empty string, then count
# from 1 if changes are needed that require rebuilding the tarball.
have_check=false
else
have_check=:
have_check=false
else
have_check=:
+ [ -x $check ] || check="/bin/sh $check"
name=$1
set fnord "$@" -d
shift 2
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
check_changed $name && echo $name: removed blobs
else
clean_file $1
firmware/isci/isci_firmware.bin.ihex \
drivers/scsi/isci/firmware/create_fw.c \
; do
firmware/isci/isci_firmware.bin.ihex \
drivers/scsi/isci/firmware/create_fw.c \
; do
- if test ! $f; then
- die $f is not present, something is amiss && return
- fi
done
# Identify the tarball.
done
# Identify the tarball.
clean_kconfig drivers/net/wireless/ath/ath6kl/Kconfig 'ATH6KL_USB'
clean_mk CONFIG_ATH6KL_USB drivers/net/wireless/ath/ath6kl/Makefile
clean_kconfig drivers/net/wireless/ath/ath6kl/Kconfig 'ATH6KL_USB'
clean_mk CONFIG_ATH6KL_USB drivers/net/wireless/ath/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
announce PRISM2_USB - "Prism2.5/3 USB driver"
reject_firmware drivers/staging/wlan-ng/prism2fw.c
clean_blob drivers/staging/wlan-ng/prism2fw.c