Improvements for 2.6.26-git15, to avoid installing or building
[releases.git] / deblob-2.6.27
1 #!/bin/sh
2
3 #    Copyright (C) 2008 Jeff Moe
4 #    Copyright (C) 2008 Alexandre Oliva <lxoliva@fsfla.org>
5 #
6 #    This program is free software; you can redistribute it and/or modify
7 #    it under the terms of the GNU General Public License as published by
8 #    the Free Software Foundation; either version 2 of the License, or
9 #    (at your option) any later version.
10 #
11 #    This program is distributed in the hope that it will be useful,
12 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #    GNU General Public License for more details.
15 #
16 #    You should have received a copy of the GNU General Public License
17 #    along with this program; if not, write to the Free Software
18 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19
20
21 # deblob - remove non-free blobs from the vanilla linux kernel
22
23 # http://www.fsfla.org/svn/fsfla/software/linux-libre
24
25
26 # This script, suited for the kernel version named below, in kver,
27 # attempts to remove only non-Free Software bits, without removing
28 # Free Software that happens to be in the same file.
29
30 # Drivers that currently require non-Free firmware are retained, but
31 # firmware included in GPLed sources is replaced with /*(DEBLOBBED)*/
32 # if the deblob-check script, that knows how to do this, is present.
33 # -lxoliva
34
35
36 # See also:
37 # http://wiki.debian.org/KernelFirmwareLicensing
38 # svn://svn.debian.org/kernel/dists/trunk/linux-2.6/debian/patches/debian/dfsg/files-1
39 # http://svn.gnewsense.svnhopper.net/gnewsense/builder/trunk/firmware/firmware-removed
40 # http://svn.gnewsense.svnhopper.net/gnewsense/builder/trunk/gen-kernel
41
42 # Thanks to Brian Brazil @ gnewsense
43
44
45 # For each kver release, start extra with an empty string, then count
46 # from 1 if changes are needed that require rebuilding the tarball.
47 kver=2.6.27 extra=
48
49 check=`echo $0 | sed 's,/[^/]*$,,'`/deblob-check
50 if [ ! -f $check ] ; then
51   echo optional deblob-check missing, will remove entire files >&2
52   have_check=false
53 else
54   have_check=:
55 fi
56
57 function clean_file {
58         #$1 = filename
59         if test ! -f $1; then
60                 echo $1 does not exist, something is wrong >&2
61                 exit 1
62         fi
63         rm -v $1
64 }
65
66 function check_changed {
67         if test ! -f $1; then
68                 echo $1 does not exist, something is wrong >&2
69                 exit 1
70         elif cmp $1.deblob $1 > /dev/null; then
71                 echo $1 did not change, something is wrong >&2
72                 exit 1
73         fi
74         mv $1.deblob $1
75 }
76
77 function clean_blob {
78         #$1 = filename
79         if $have_check; then
80             if test ! -f $1; then
81                 echo $1 does not exist, something is wrong >&2
82                 exit 1
83             fi
84             name=$1
85             echo Removing blobs from $name
86             set fnord "$@" -d
87             shift 2
88             $check "$@" $name > $name.deblob
89             check_changed $name
90         else
91             clean_file $1
92         fi
93 }
94
95 function dummy_blob {
96         #$1 = filename
97         if test -f $1; then
98             echo $1 exists, something is wrong >&2
99             exit 1
100         else
101             hack_fwmk "NONFREE_FW += $2"
102         fi
103 }
104
105 function clean_fw {
106         #$1 = firmware text input, $2 = firmware output
107         if test ! -f $1; then
108                 echo $1 does not exist, something is wrong >&2
109                 exit 1
110         elif test -f $2; then
111                 echo $2 exists, something is wrong >&2
112                 exit 1
113         fi
114         clean_blob $1
115         dummy_blob $2
116 }
117
118 function hack_fwmk {
119         if test ! -f firmware/Makefile; then
120             echo firmware/Makefile does not exist, something is wrong >&2
121             exit 1
122         fi
123
124         sed -i "/^[     ]*fw-shipped-all[       ]*:=[   ]*/i\
125 $1
126 " firmware/Makefile
127 }
128
129 function clean_kconfig {
130         #$1 = filename $2 = things to remove
131         echo Marking config $2 as depending on NONFREE in $1
132         sed "/^config \\($2\\)\$/{p;i\
133         depends on NONFREE
134 d;}" $1 > $1.deblob
135         check_changed $1
136 }
137
138 function clean_mk {
139         #$1 = config $2 = Makefile name
140         # We don't clean up Makefiles any more --lxoliva
141         # sed -i "/\\($1\\)/d" $2
142         # check_changed $2
143         if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then
144             :
145         else
146             echo $2 does not contain matches for $1
147             exit 1
148         fi
149 }
150
151
152
153 # First, check that files that contain firmwares and their
154 # corresponding sources are present.
155
156 for f in \
157   drivers/char/ser_a2232fw.h \
158     drivers/char/ser_a2232fw.ax \
159   drivers/net/ixp2000/ixp2400_rx.ucode \
160     drivers/net/ixp2000/ixp2400_rx.uc \
161   drivers/net/ixp2000/ixp2400_tx.ucode \
162     drivers/net/ixp2000/ixp2400_rx.uc \
163   drivers/net/wan/wanxlfw.inc_shipped \
164     drivers/net/wan/wanxlfw.S \
165   drivers/net/wireless/atmel.c \
166     drivers/net/wireless/atmel.c \
167   drivers/scsi/53c700_d.h_shipped \
168     drivers/scsi/53c700.scr \
169   drivers/scsi/aic7xxx/aic79xx_seq.h_shipped \
170     drivers/scsi/aic7xxx/aic79xx.seq \
171   drivers/scsi/aic7xxx/aic7xxx_seq.h_shipped \
172     drivers/scsi/aic7xxx/aic7xxx.seq \
173   drivers/scsi/aic7xxx_old/aic7xxx_seq.c \
174     drivers/scsi/aic7xxx_old/aic7xxx.seq \
175   drivers/scsi/53c7xx_d.h_shipped \
176     drivers/scsi/53c7xx.scr \
177   drivers/scsi/sym53c8xx_2/sym_fw1.h \
178     drivers/scsi/sym53c8xx_2/sym_fw1.h \
179   drivers/scsi/sym53c8xx_2/sym_fw2.h \
180     drivers/scsi/sym53c8xx_2/sym_fw2.h \
181   firmware/dsp56k/bootstrap.bin.ihex \
182     firmware/dsp56k/bootstrap.asm \
183   firmware/keyspan_pda/keyspan_pda.HEX \
184     firmware/keyspan_pda/keyspan_pda.S \
185   firmware/keyspan_pda/xircom_pgs.HEX \
186     firmware/keyspan_pda/xircom_pgs.S \
187   sound/pci/cs46xx/imgs/cwcbinhack.h \
188     sound/pci/cs46xx/imgs/cwcdma.asp \
189 ; do
190   if test ! $f; then
191     echo $f is not present, something is amiss >&2
192     exit 1
193   fi
194 done
195
196 # Identify the tarball.
197 sed -i "s,^EXTRAVERSION.*,&-libre$extra," Makefile
198
199 hack_fwmk 'NONFREE_FW :='
200
201 #######################
202 # Removed ATM Drivers #
203 #######################
204
205 # ATM_AMBASSADOR -  Madge Ambassador (Collage PCI 155 Server)
206 clean_fw firmware/atmsar11.HEX firmware/atmsar11.fw
207
208 # ATM_FORE200E_PCA
209 # ATM_FORE200E_SBA - SBA-200E
210 clean_kconfig drivers/atm/Kconfig 'ATM_FORE.*'
211 clean_mk CONFIG_ATM_FORE200E drivers/atm/Makefile
212
213 clean_file drivers/atm/pca200e.data
214 clean_file drivers/atm/pca200e_ecd.data
215 clean_file drivers/atm/sba200e_ecd.data
216 clean_kconfig drivers/atm/Kconfig 'ATM_AMBASSADOR'
217 clean_mk CONFIG_ATM_AMBASSADOR drivers/atm/Makefile
218
219
220 ########################
221 # Removed char Drivers #
222 ########################
223
224 # COMPUTONE - Computone IntelliPort Plus serial
225 clean_file firmware/intelliport2.bin.ihex
226 dummy_blob firmware/intelliport2.bin
227 clean_kconfig drivers/char/Kconfig 'COMPUTONE'
228 clean_mk CONFIG_COMPUTONE drivers/char/Makefile
229
230 # gpu drm
231
232 # DRM_MGA - Matrox g200/g400
233 clean_blob drivers/gpu/drm/mga_ucode.h
234 clean_kconfig drivers/gpu/drm/Kconfig 'DRM_MGA'
235 clean_mk CONFIG_DRM_MGA drivers/gpu/drm/Makefile
236
237 # DRM_R128 - ATI Rage 128
238 clean_blob drivers/gpu/drm/r128_cce.c
239 clean_kconfig drivers/gpu/drm/Kconfig 'DRM_R128'
240 clean_mk CONFIG_DRM_R128 drivers/gpu/drm/Makefile
241
242 # DRM_RADEON - ATI Radeon
243 clean_blob drivers/gpu/drm/radeon_microcode.h
244 clean_kconfig drivers/gpu/drm/Kconfig 'DRM_RADEON'
245 clean_mk CONFIG_DRM_RADEON drivers/gpu/drm/Makefile
246
247
248 #########################
249 # Removed Media Drivers #
250 #########################
251
252
253 # dvb/dvb-usb
254 clean_blob drivers/media/dvb/dvb-usb/af9005-script.h
255 clean_kconfig drivers/media/dvb/dvb-usb/Kconfig 'DVB_USB_AF9005'
256 clean_mk CONFIG_DVB_USB_AF9005 drivers/media/dvb/dvb-usb/Makefile
257
258 # dvb/frontends
259
260 # DVB_TDA10021 - Philips TDA10021 based
261 clean_blob drivers/media/dvb/frontends/tda10021.c
262 clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_TDA10021'
263 clean_mk CONFIG_DVB_TDA10021 drivers/media/dvb/frontends/Makefile
264
265 # DVB_TDA8083 - Philips TDA8083 based
266 clean_blob drivers/media/dvb/frontends/tda8083.c
267 clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_TDA8083'
268 clean_mk CONFIG_DVB_TDA8083 drivers/media/dvb/frontends/Makefile
269
270 # DVB_VES1820 - VLSI VES1820 based
271 clean_blob drivers/media/dvb/frontends/ves1820.c
272 clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_VES1820'
273 clean_mk CONFIG_DVB_VES1820 drivers/media/dvb/frontends/Makefile
274
275 # DVB_VES1X93 - VLSI VES1893 or VES1993 based
276 clean_blob drivers/media/dvb/frontends/ves1x93.c
277 clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_VES1X93'
278 clean_mk CONFIG_DVB_VES1X93 drivers/media/dvb/frontends/Makefile
279
280 # dvb/ttpci
281
282 # DVB_AV7110 - AV7110 cards
283 clean_blob drivers/media/dvb/ttpci/av7110_hw.c
284 clean_blob drivers/media/dvb/ttpci/av7110.c
285 clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_AV7110'
286 clean_mk CONFIG_DVB_AV7110 drivers/media/dvb/ttpci/Makefile
287
288 # DVB_BUDGET_AV - Budget cards with analog video inputs
289 clean_blob drivers/media/dvb/ttpci/budget-av.c
290 clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET_AV'
291 clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET_PATCH'
292 clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET'
293 clean_mk CONFIG_DVB_BUDGET_AV drivers/media/dvb/ttpci/Makefile
294 clean_mk CONFIG_DVB_BUDGET_PATCH drivers/media/dvb/ttpci/Makefile
295 clean_mk CONFIG_DVB_BUDGET drivers/media/dvb/ttpci/Makefile
296
297 # DVB_BUDGET_CI - Budget cards with onboard CI connector
298 clean_blob drivers/media/dvb/ttpci/budget-ci.c
299 clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET_CI'
300 clean_mk CONFIG_DVB_BUDGET_CI drivers/media/dvb/ttpci/Makefile
301
302 # dvb/ttusb-budget
303
304 # DVB_TTUSB_BUDGET - Technotrend/Hauppauge Nova-USB devices
305 clean_file firmware/ttusb-budget/dspbootcode.bin.ihex
306 dummy_blob firmware/ttusb-budget/dspbootcode.bin
307 clean_blob drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
308 clean_kconfig drivers/media/dvb/ttusb-budget/Kconfig 'DVB_TTUSB_BUDGET'
309 clean_mk CONFIG_DVB_TTUSB_BUDGET drivers/media/dvb/ttusb-budget/Makefile
310
311 # video
312
313 # USB_PWC - USB Philips Cameras
314 clean_blob drivers/media/video/pwc/pwc-kiara.c
315 clean_blob drivers/media/video/pwc/pwc-timon.c
316 clean_kconfig drivers/media/video/pwc/Kconfig 'USB_PWC'
317 clean_mk CONFIG_USB_PWC drivers/media/video/Makefile
318
319 # VIDEO_CPIA - CPiA Video For Linux
320 clean_fw firmware/cpia2/stv0672_vp4.bin.ihex firmware/cpia2/stv0672_vp4.bin
321 clean_kconfig drivers/media/video/Kconfig 'VIDEO_CPIA'
322 clean_kconfig drivers/media/video/Kconfig 'VIDEO_CPIA_PP'
323 clean_kconfig drivers/media/video/Kconfig 'VIDEO_CPIA_USB'
324 clean_kconfig drivers/media/video/cpia2/Kconfig 'VIDEO_CPIA2'
325 clean_mk CONFIG_VIDEO_CPIA drivers/media/video/Makefile
326 clean_mk CONFIG_VIDEO_CPIA_PP drivers/media/video/Makefile
327 clean_mk CONFIG_VIDEO_CPIA_USB drivers/media/video/Makefile
328 clean_mk CONFIG_VIDEO_CPIA2 drivers/media/video/Makefile
329
330 # USB_DABUSB - DABUSB driver
331 clean_fw firmware/dabusb/bitstream.bin.ihex firmware/dabusb/bitstream.bin
332 clean_fw firmware/dabusb/firmware.HEX firmware/dabusb/firmware.fw
333 clean_kconfig drivers/media/Kconfig 'USB_DABUSB'
334 clean_mk CONFIG_USB_DABUSB drivers/media/video/Makefile
335
336 # video/usbvideo
337
338 # USB_IBMCAM - USB IBM (Xirlink) C-it Camera support
339 clean_blob drivers/media/video/usbvideo/ibmcam.c
340 clean_kconfig drivers/media/video/usbvideo/Kconfig 'USB_IBMCAM'
341 clean_mk CONFIG_USB_IBMCAM drivers/media/video/usbvideo/Makefile
342
343 # USB_VICAM - USB 3com HomeConnect (aka vicam)
344 clean_file firmware/vicam/firmware.H16
345 dummy_blob firmware/vicam/firmware.fw
346 clean_kconfig drivers/media/video/usbvideo/Kconfig 'USB_VICAM'
347 clean_mk CONFIG_USB_VICAM drivers/media/video/usbvideo/Makefile
348
349
350 #######################
351 # Removed net Drivers #
352 #######################
353
354 # ACENIC - Alteon AceNIC/3Com 3C985/NetGear GA620 Gigabit
355 clean_blob drivers/net/acenic_firmware.h
356 clean_kconfig drivers/net/Kconfig 'ACENIC'
357 clean_mk CONFIG_ACENIC drivers/net/Makefile
358
359 # ADAPTEC_STARFIRE - Adaptec Starfire/DuraLAN support
360 # This adds restrictions on top of GPLv2, but after deblobbing,
361 # nothing copyrightable remains.
362 clean_blob drivers/net/starfire_firmware.h
363 clean_kconfig drivers/net/Kconfig 'ADAPTEC_STARFIRE'
364 clean_mk CONFIG_ADAPTEC_STARFIRE drivers/net/Makefile
365
366 # BNX2 - Broadcom NetXtremeII
367 clean_blob drivers/net/bnx2_fw.h
368 clean_blob drivers/net/bnx2_fw2.h
369 clean_kconfig drivers/net/Kconfig 'BNX2'
370 clean_mk CONFIG_BNX2 drivers/net/Makefile
371
372 clean_blob drivers/net/bnx2x_init_values.h
373 clean_kconfig drivers/net/Kconfig 'BNX2X'
374 clean_mk CONFIG_BNX2X drivers/net/Makefile
375
376 # CASSINI - Sun Cassini
377 clean_blob drivers/net/cassini.h
378 clean_kconfig drivers/net/Kconfig 'CASSINI'
379 clean_mk CONFIG_CASSINI drivers/net/Makefile
380
381 # E100 - Intel(R) PRO/100+
382 clean_blob drivers/net/e100.c
383 if $have_check; then
384   sed -i 's:\(\/\*(DEBLOBBED)\*\/\),:\1:' drivers/net/e100.c
385 else
386   clean_kconfig drivers/net/Kconfig 'E100'
387   clean_mk CONFIG_E100 drivers/net/Makefile
388 fi
389
390 # MYRI_SBUS - MyriCOM Gigabit Ethernet
391 clean_blob drivers/net/myri_code.h
392 clean_kconfig drivers/net/Kconfig 'MYRI_SBUS'
393 clean_mk CONFIG_MYRI_SBUS drivers/net/Makefile
394
395 # TEHUTI - Tehuti Networks 10G Ethernet
396 clean_blob drivers/net/tehuti_fw.h
397 clean_kconfig drivers/net/Kconfig 'TEHUTI'
398 clean_mk CONFIG_TEHUTI drivers/net/Makefile
399
400 # TIGON3 - Broadcom Tigon3
401 patch --no-backup-if-mismatch -p0 <<\EOF # patches/linux-2.6-tg3-clean.patch
402 --- drivers/net/tg3.c
403 +++ drivers/net/tg3.c
404 @@ -5,14 +5,6 @@
405   * Copyright (C) 2001, 2002, 2003 Jeff Garzik (jgarzik@pobox.com)
406   * Copyright (C) 2004 Sun Microsystems Inc.
407   * Copyright (C) 2005-2007 Broadcom Corporation.
408 - *
409 - * Firmware is:
410 - *     Derived from proprietary unpublished source code,
411 - *     Copyright (C) 2000-2003 Broadcom Corporation.
412 - *
413 - *     Permission is hereby granted for the distribution of this firmware
414 - *     data in hexadecimal or equivalent format, provided this copyright
415 - *     notice is accompanying it.
416   */
417  
418  
419 EOF
420 clean_blob drivers/net/tg3.c -s 9
421 if $have_check; then
422   sed -i 's:\(\/\*(DEBLOBBED)\*\/\),:\1:' drivers/net/tg3.c 
423 else
424   clean_kconfig drivers/net/Kconfig 'TIGON3'
425   clean_mk CONFIG_TIGON3 drivers/net/Makefile
426 fi
427
428 # TYPHOON - 3cr990 series Typhoon
429 clean_blob drivers/net/typhoon-firmware.h
430 clean_kconfig drivers/net/Kconfig 'TYPHOON'
431 clean_mk CONFIG_TYPHOON drivers/net/Makefile
432
433 # appletalk
434
435 # COPS - COPS LocalTalk PC
436 # clean_blob drivers/net/appletalk/cops.c
437 # clean_blob drivers/net/appletalk/cops.h
438 clean_blob drivers/net/appletalk/cops_ffdrv.h
439 clean_blob drivers/net/appletalk/cops_ltdrv.h
440 clean_kconfig drivers/net/appletalk/Kconfig 'COPS'
441 clean_mk CONFIG_COPS drivers/net/appletalk/Makefile
442
443 # hamradio
444
445 # YAM - YAM driver for AX.25
446 clean_blob drivers/net/hamradio/yam1200.h
447 clean_blob drivers/net/hamradio/yam9600.h
448 clean_kconfig drivers/net/hamradio/Kconfig 'YAM'
449 clean_mk CONFIG_YAM drivers/net/hamradio/Makefile
450
451 # pcmcia
452
453 # PCMCIA_SMC91C92 - SMC 91Cxx PCMCIA
454 clean_blob drivers/net/pcmcia/ositech.h
455 clean_kconfig drivers/net/pcmcia/Kconfig 'PCMCIA_SMC91C92'
456 clean_mk CONFIG_PCMCIA_SMC91C92 drivers/net/pcmcia/Makefile
457
458
459 # tokenring
460
461 # 3C359 - 3Com 3C359 Token Link Velocity XL adapter
462 # No need to remove these, they don't contain non-Free code.
463 # clean_blob drivers/net/tokenring/3c359.c
464 # clean_blob drivers/net/tokenring/3c359.h
465 # This file is not under the GPL, better remove it all.
466 clean_file drivers/net/tokenring/3c359_microcode.h
467 clean_kconfig drivers/net/tokenring/Kconfig '3C359'
468 clean_mk CONFIG_3C359 drivers/net/tokenring/Makefile
469
470 # SMCTR - SMC ISA/MCA adapter
471 # No need to remove these, they don't contain non-Free code.
472 # clean_blob drivers/net/tokenring/smctr.c
473 # clean_blob drivers/net/tokenring/smctr.h
474 # This file is not under the GPL, better remove it all.
475 clean_file firmware/tr_smctr.bin.ihex
476 dummy_blob firmware/tr_smctr.bin
477 clean_kconfig drivers/net/tokenring/Kconfig 'SMCTR'
478 clean_mk CONFIG_SMCTR drivers/net/tokenring/Makefile
479
480 # usb
481
482 # USB_KAWETH - USB KLSI KL5USB101-based ethernet device support
483 clean_file firmware/kaweth/new_code.bin.ihex
484 dummy_blob firmware/kaweth/new_code.bin
485 clean_file firmware/kaweth/new_code_fix.bin.ihex
486 dummy_blob firmware/kaweth/new_code_fix.bin
487 clean_file firmware/kaweth/trigger_code.bin.ihex
488 dummy_blob firmware/kaweth/trigger_code.bin
489 clean_file firmware/kaweth/trigger_code_fix.bin.ihex
490 dummy_blob firmware/kaweth/trigger_code_fix.bin
491 clean_kconfig drivers/net/usb/Kconfig 'USB_KAWETH'
492 clean_mk CONFIG_USB_KAWETH drivers/net/usb/Makefile
493
494 # wireless
495
496 clean_blob drivers/net/wireless/rtl8187_dev.c
497 # clean_kconfig drivers/net/wireless/Kconfig 'RTL8187'
498 # clean_mk CONFIG_RTL8187 drivers/net/wireless/Makefile
499
500
501 ########################
502 # Removed s390 Drivers #
503 ########################
504
505 # QETH - Gigabit Ethernet device support
506 clean_blob drivers/s390/net/qeth_core_mpc.c
507 clean_kconfig drivers/s390/net/Kconfig 'QETH'
508 clean_mk CONFIG_QETH drivers/s390/net/Makefile
509
510 ########################
511 # Removed SCSI Drivers #
512 ########################
513
514 # SCSI_QLOGICPTI - PTI Qlogic, ISP Driver
515 clean_blob drivers/scsi/qlogicpti_asm.c
516 clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGICPTI'
517 clean_mk CONFIG_SCSI_QLOGICPTI drivers/scsi/Makefile
518
519 # SCSI_ADVANSYS - AdvanSys SCSI
520 clean_blob drivers/scsi/advansys.c
521 clean_kconfig drivers/scsi/Kconfig 'SCSI_ADVANSYS'
522 clean_mk CONFIG_SCSI_ADVANSYS drivers/scsi/Makefile
523
524 # SCSI_QLOGIC_1280 - Qlogic QLA 1240/1x80/1x160 SCSI
525 clean_blob drivers/scsi/ql1280_fw.h
526 clean_blob drivers/scsi/ql1040_fw.h
527 clean_blob drivers/scsi/ql12160_fw.h
528 clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGIC_1280'
529 clean_mk CONFIG_SCSI_QLOGIC_1280 drivers/scsi/Makefile
530
531
532 #######################
533 # Removed USB Drivers #
534 #######################
535
536 # misc
537
538 # USB_EMI26 - EMI 2|6 USB Audio interface
539 # No need to remove this, it doesn't contain non-Free code.
540 # clean_blob drivers/usb/misc/emi26.c
541 # These files are not under the GPL, better remove them all.
542 clean_file firmware/emi26/bitstream.HEX
543 dummy_blob firmware/emi26/bitstream.fw
544 clean_file firmware/emi26/firmware.HEX
545 dummy_blob firmware/emi26/firmware.fw
546 clean_file firmware/emi26/loader.HEX
547 dummy_blob firmware/emi26/loader.fw
548 clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI26'
549 clean_mk CONFIG_USB_EMI26 drivers/usb/misc/Makefile
550
551 # USB_EMI62 - EMI 6|2m USB Audio interface
552 # No need to remove this, it doesn't contain non-Free code.
553 # clean_blob drivers/usb/misc/emi62.c
554 # These files are probably not under the GPL, better remove them all.
555 clean_file firmware/emi62/bitstream.HEX
556 dummy_blob firmware/emi62/bitstream.fw
557 clean_file firmware/emi62/loader.HEX
558 dummy_blob firmware/emi62/loader.fw
559 clean_file firmware/emi62/midi.HEX
560 dummy_blob firmware/emi62/midi.fw
561 clean_file firmware/emi62/spdif.HEX
562 dummy_blob firmware/emi62/spdif.fw
563 clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI62'
564 clean_mk CONFIG_USB_EMI62 drivers/usb/misc/Makefile
565
566 # USB_SISUSBVGA - USB 2.0 SVGA dongle support (Net2280/SiS315)
567 clean_blob drivers/usb/misc/sisusbvga/sisusb_init.h
568 clean_kconfig drivers/usb/misc/sisusbvga/Kconfig 'USB_SISUSBVGA'
569 clean_mk CONFIG_USB_SISUSBVGA drivers/usb/misc/sisusbvga/Makefile
570
571 # serial
572
573 # USB_SERIAL_KEYSPAN_MPR - USB Keyspan MPR Firmware
574 clean_file firmware/keyspan/mpr.HEX
575 dummy_blob firmware/keyspan/mpr.fw
576 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_MPR'
577 # USB_SERIAL_KEYSPAN_USA18X - USB Keyspan USA-18X Firmware
578 clean_file firmware/keyspan/usa18x.HEX
579 dummy_blob firmware/keyspan/usa18x.fw
580 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA18X'
581 # USB_SERIAL_KEYSPAN_USA19 - USB Keyspan USA-19 Firmware
582 clean_file firmware/keyspan/usa19.HEX
583 dummy_blob firmware/keyspan/usa19.fw
584 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19'
585 # USB_SERIAL_KEYSPAN_USA19QI - USB Keyspan USA-19QI Firmware
586 clean_file firmware/keyspan/usa19qi.HEX
587 dummy_blob firmware/keyspan/usa19qi.fw
588 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QI'
589 # USB_SERIAL_KEYSPAN_USA19QW - USB Keyspan USA-19QW Firmware
590 clean_file firmware/keyspan/usa19qw.HEX
591 dummy_blob firmware/keyspan/usa19qw.fw
592 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QW'
593 # USB_SERIAL_KEYSPAN_USA19W - USB Keyspan USA-19W Firmware
594 clean_file firmware/keyspan/usa19w.HEX
595 dummy_blob firmware/keyspan/usa19w.fw
596 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19W'
597 # USB_SERIAL_KEYSPAN_USA28 - USB Keyspan USA-28 Firmware
598 clean_file firmware/keyspan/usa28.HEX
599 dummy_blob firmware/keyspan/usa28.fw
600 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28'
601 # USB_SERIAL_KEYSPAN_USA28XA - USB Keyspan USA-28XA Firmware
602 clean_file firmware/keyspan/usa28xa.HEX
603 dummy_blob firmware/keyspan/usa28xa.fw
604 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XA'
605 # USB_SERIAL_KEYSPAN_USA28XB - USB Keyspan USA-28XB Firmware
606 clean_file firmware/keyspan/usa28xb.HEX
607 dummy_blob firmware/keyspan/usa28xb.fw
608 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XB'
609 # USB_SERIAL_KEYSPAN_USA28X - USB Keyspan USA-28X Firmware
610 clean_file firmware/keyspan/usa28x.HEX
611 dummy_blob firmware/keyspan/usa28x.fw
612 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28X'
613 # USB_SERIAL_KEYSPAN_USA49W - USB Keyspan USA-49W Firmware
614 clean_file firmware/keyspan/usa49w.HEX
615 dummy_blob firmware/keyspan/usa49w.fw
616 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49W'
617 # USB_SERIAL_KEYSPAN_USA49WLC - USB Keyspan USA-49WLC Firmware
618 clean_file firmware/keyspan/usa49wlc.HEX
619 dummy_blob firmware/keyspan/usa49wlc.fw
620 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49WLC'
621 clean_mk CONFIG_USB_SERIAL_KEYSPAN drivers/usb/serial/Makefile
622
623 # USB_SERIAL_EDGEPORT - USB Inside Out Edgeport Serial Driver
624 clean_fw firmware/edgeport/boot.H16 firmware/edgeport/boot.fw
625 clean_fw firmware/edgeport/down.H16 firmware/edgeport/down.fw
626 clean_fw firmware/edgeport/down2.H16 firmware/edgeport/down2.fw
627 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT'
628 clean_mk CONFIG_USB_SERIAL_EDGEPORT drivers/usb/serial/Makefile
629
630 # USB_SERIAL_EDGEPORT_TI - USB Inside Out Edgeport Serial Driver (TI devices)
631 clean_fw firmware/edgeport/boot2.H16 firmware/edgeport/boot2.fw
632 clean_fw firmware/edgeport/down3.bin.ihex firmware/edgeport/down3.bin
633 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT_TI'
634 clean_mk CONFIG_USB_SERIAL_EDGEPORT_TI drivers/usb/serial/Makefile
635
636 # USB_SERIAL_TI - USB TI 3410/5052 Serial Driver
637 clean_file firmware/ti_3410.fw.ihex
638 dummy_blob firmware/ti_3410.fw
639 clean_file firmware/ti_5052.fw.ihex
640 dummy_blob firmware/ti_5052.fw
641 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_TI'
642 clean_mk CONFIG_USB_SERIAL_TI drivers/usb/serial/Makefile
643
644 # USB_SERIAL_WHITEHEAT - USB ConnectTech WhiteHEAT Serial Driver
645 clean_fw firmware/whiteheat.HEX firmware/whiteheat.fw
646 clean_fw firmware/whiteheat_loader.HEX firmware/whiteheat_loader.fw
647 clean_fw firmware/whiteheat_loader_debug.HEX firmware/whiteheat_loader_debug.fw
648 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_WHITEHEAT'
649 clean_mk CONFIG_USB_SERIAL_WHITEHEAT drivers/usb/serial/Makefile
650
651
652 #########################
653 # Removed video Drivers #
654 #########################
655
656 # FB_ASILIANT - Asiliant (Chips) 69000 display support
657 clean_blob drivers/video/asiliantfb.c
658 clean_kconfig drivers/video/Kconfig 'FB_ASILIANT'
659 clean_mk CONFIG_FB_ASILIANT drivers/video/Makefile
660
661 # FB_CT65550 - Chips 65550 display support
662 clean_blob drivers/video/chipsfb.c
663 clean_kconfig drivers/video/Kconfig 'FB_CT65550'
664 clean_mk CONFIG_FB_CT65550 drivers/video/Makefile
665
666 # USB_GSPCA - Conexant 11646
667 clean_blob drivers/media/video/gspca/conex.c
668 # clean_kconfig drivers/video/gspca/Kconfig 'USB_GSPCA'
669 # clean_mk CONFIG_USB_GSPCA drivers/video/Makefile
670
671 #########################
672 # Removed Sound Drivers #
673 #########################
674
675 # SND_CS46XX - Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x
676 clean_blob sound/pci/cs46xx/cs46xx_image.h
677 # Blobs containing comments, not recognized by deblob-check
678 clean_file sound/pci/cs46xx/imgs/cwc4630.h
679 clean_file sound/pci/cs46xx/imgs/cwcasync.h
680 clean_file sound/pci/cs46xx/imgs/cwcdma.h
681 clean_file sound/pci/cs46xx/imgs/cwcsnoop.h
682 clean_kconfig sound/pci/Kconfig 'SND_CS46XX'
683 # sed -i '/cs46xx\/ \\/d' sound/pci/Makefile
684
685 # SND_KORG1212 - Korg 1212 IO
686 clean_file firmware/korg/k1212.dsp.ihex
687 dummy_blob firmware/korg/k1212.dsp
688
689 # SND_MAESTRO3 - ESS Allegro/Maestro3
690 clean_file firmware/ess/maestro3_assp_kernel.fw.ihex
691 dummy_blob firmware/ess/maestro3_assp_kernel.fw
692 clean_file firmware/ess/maestro3_assp_minisrc.fw.ihex
693 dummy_blob firmware/ess/maestro3_assp_minisrc.fw
694
695 # SND_YMFPCI - Yamaha YMF724/740/744/754
696 clean_file firmware/yamaha/ds1_ctrl.fw.ihex
697 dummy_blob firmware/yamaha/ds1_ctrl.fw
698 clean_file firmware/yamaha/ds1_dsp.fw.ihex
699 dummy_blob firmware/yamaha/ds1_dsp.fw
700 clean_file firmware/yamaha/ds1e_ctrl.fw.ihex
701 dummy_blob firmware/yamaha/ds1e_ctrl.fw
702
703 # SND_SB16_CSP_FIRMWARE_IN_KERNEL - SB16 Advanced Signal Processor
704 clean_file firmware/sb16/alaw_main.csp.ihex
705 dummy_blob firmware/sb16/alaw_main.csp
706 clean_file firmware/sb16/mulaw_main.csp.ihex
707 dummy_blob firmware/sb16/mulaw_main.csp
708 clean_file firmware/sb16/ima_adpcm_init.csp.ihex
709 dummy_blob firmware/sb16/ima_adpcm_init.csp
710 clean_file firmware/sb16/ima_adpcm_capture.csp.ihex
711 dummy_blob firmware/sb16/ima_adpcm_capture.csp
712 clean_file firmware/sb16/ima_adpcm_playback.csp.ihex
713 dummy_blob firmware/sb16/ima_adpcm_playback.csp
714
715 # SND_WAVEFRONT_FIRMWARE_IN_KERNEL
716 # Most of this file is not matched by deblob-check because of WAIT_IDLE.
717 # Just remove it.
718 clean_file sound/isa/wavefront/yss225.c
719
720 hack_fwmk 'fw-shipped-y := $(filter-out $(NONFREE_FW), $(fw-shipped-y))'
721 hack_fwmk 'fw-shipped-m := $(filter-out $(NONFREE_FW), $(fw-shipped-m))'
722 hack_fwmk 'fw-shipped-  := $(filter-out $(NONFREE_FW), $(fw-shipped-) )'
723
724 exit 0