3 # Copyright (C) 2008, 2009 Alexandre Oliva <lxoliva@fsfla.org>
4 # Copyright (C) 2008 Jeff Moe
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.
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.
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
21 # deblob - remove non-free blobs from the vanilla linux kernel
23 # http://www.fsfla.org/svn/fsfla/software/linux-libre
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.
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.
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
42 # Thanks to Brian Brazil @ gnewsense
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.
50 --force) die () { echo ERROR: "$@": ignored >&2; }; shift;;
51 *) die () { echo "$@" >&2; exit 1; };;
54 check=`echo $0 | sed 's,/[^/]*$,,'`/deblob-check
55 if [ ! -f $check ] ; then
56 echo optional deblob-check missing, will remove entire files >&2
70 die $1 does not exist, something is wrong
77 die $1 does not exist, something is wrong
78 elif cmp $1.deblob $1 > /dev/null; then
79 die $1 did not change, something is wrong
88 die $1 does not exist, something is wrong
91 echo Removing blobs from $name
94 $check "$@" -i linux-$kver $name > $name.deblob
104 echo $1 exists, something is wrong >&2
106 elif test ! -f firmware/Makefile; then
107 echo firmware/Makefile does not exist, something is wrong >&2
111 sed -i "s,`echo $1 | sed s,^firmware/,,`,\$(DEBLOBBED),g" \
116 #$1 = firmware text input, $2 = firmware output
117 if test ! -f $1; then
118 echo $1 does not exist, something is wrong >&2
120 elif test -f $2; then
121 echo $2 exists, something is wrong >&2
129 #$1 = firmware text input, $2 = firmware output
130 if test ! -f $1; then
131 echo $1 does not exist, something is wrong >&2
133 elif test -f $2; then
134 echo $2 exists, something is wrong >&2
142 #$1 = filename $2 = things to remove
153 echo Marking config $2 as depending on NONFREE in $1
154 sed "/^config \\($2\\)\$/{p;i\
161 #$1 = config $2 = Makefile name
162 # We don't clean up Makefiles any more --lxoliva
163 # sed -i "/\\($1\\)/d" $2
165 if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then
168 die $2 does not contain matches for $1
173 #$1 = sed-script $2 = file
174 echo Cleaning "$2" with sed script "$1"
175 sed -e "$1" "$2" > "$2".deblob
181 clean_sed 's,request\(_ihex\|\)_firmware(,reject_firmware(,' "$1"
184 # First, check that files that contain firmwares and their
185 # corresponding sources are present.
188 drivers/char/ser_a2232fw.h \
189 drivers/char/ser_a2232fw.ax \
190 drivers/net/ixp2000/ixp2400_rx.ucode \
191 drivers/net/ixp2000/ixp2400_rx.uc \
192 drivers/net/ixp2000/ixp2400_tx.ucode \
193 drivers/net/ixp2000/ixp2400_rx.uc \
194 drivers/net/wan/wanxlfw.inc_shipped \
195 drivers/net/wan/wanxlfw.S \
196 drivers/net/wireless/atmel.c \
197 drivers/net/wireless/atmel.c \
198 drivers/scsi/53c700_d.h_shipped \
199 drivers/scsi/53c700.scr \
200 drivers/scsi/aic7xxx/aic79xx_seq.h_shipped \
201 drivers/scsi/aic7xxx/aic79xx.seq \
202 drivers/scsi/aic7xxx/aic7xxx_seq.h_shipped \
203 drivers/scsi/aic7xxx/aic7xxx.seq \
204 drivers/scsi/aic7xxx_old/aic7xxx_seq.c \
205 drivers/scsi/aic7xxx_old/aic7xxx.seq \
206 drivers/scsi/53c7xx_d.h_shipped \
207 drivers/scsi/53c7xx.scr \
208 drivers/scsi/sym53c8xx_2/sym_fw1.h \
209 drivers/scsi/sym53c8xx_2/sym_fw1.h \
210 drivers/scsi/sym53c8xx_2/sym_fw2.h \
211 drivers/scsi/sym53c8xx_2/sym_fw2.h \
212 firmware/dsp56k/bootstrap.bin.ihex \
213 firmware/dsp56k/bootstrap.asm \
214 firmware/keyspan_pda/keyspan_pda.HEX \
215 firmware/keyspan_pda/keyspan_pda.S \
216 firmware/keyspan_pda/xircom_pgs.HEX \
217 firmware/keyspan_pda/xircom_pgs.S \
218 sound/pci/cs46xx/imgs/cwcbinhack.h \
219 sound/pci/cs46xx/imgs/cwcdma.asp \
222 die $f is not present, something is amiss
226 # Identify the tarball.
227 clean_sed "s,^EXTRAVERSION.*,&-libre$extra," Makefile
229 # Add reject_firmware and maybe_reject_firmware
230 cat >> include/linux/firwmare.h <<\EOF
231 #ifndef _LINUX_LIBRE_FIRMWARE_H
232 #define _LINUX_LIBRE_FIRMWARE_H
234 #define NONFREE_FIRMWARE "/*(DEBLOBBED)*/"
236 static inline int reject_firmware(const struct firmware **fw,
238 struct device *device)
240 struct firmware *xfw = NULL;
241 int retval = request_firmware(&xfw, NONFREE_FIRMWARE, device);
243 release_firmware(xfw);
246 static inline int maybe_reject_firmware(const struct firmware **fw,
248 struct device *device)
250 if (strstr (name, NONFREE_FIRMWARE))
251 return reject_firmware(fw, name, device);
253 return request_firmware(fw, name, device);
255 static inline void discard_rejected_firmware(const struct firmware *fw,
258 release_firmware(fw);
260 static inline int reject_firmware_nowait(
261 struct module *module, int uevent,
262 const char *name, struct device *device, void *context,
263 void (*cont)(const struct firmware *fw, void *context))
265 int retval = request_firmware_nowait(module, uevent, NONFREE_FIRMWARE,
267 discard_rejected_firmware);
272 static inline int maybe_reject_firmware_nowait(
273 struct module *module, int uevent,
274 const char *name, struct device *device, void *context,
275 void (*cont)(const struct firmware *fw, void *context))
277 if (strstr (name, NONFREE_FIRMWARE))
278 return reject_firmware_nowait(module, uevent, name,
279 device, context, cont);
281 return request_firmware_nowait(module, uevent, name,
282 device, context, cont);
285 #endif /* _LINUX_LIBRE_FIRMWARE_H */
288 #######################
289 # Removed ATM Drivers #
290 #######################
292 announce ATM_AMBASSADOR - Madge Ambassador, Collage PCI 155 Server
293 reject_firmware drivers/atm/ambassador.c
294 clean_blob drivers/atm/ambassador.c
295 clean_fw firmware/atmsar11.HEX firmware/atmsar11.fw
296 clean_kconfig drivers/atm/Kconfig 'ATM_AMBASSADOR'
297 clean_mk CONFIG_ATM_AMBASSADOR drivers/atm/Makefile
299 announce ATM_FORE200E_PCA, ATM_FORE200E_SBA - SBA-200E
300 reject_firmware drivers/atm/fore200e.c
301 clean_blob drivers/atm/fore200e.c
302 clean_blob Documentation/networking/fore200e.txt
303 clean_kconfig drivers/atm/Kconfig 'ATM_FORE.*'
304 clean_mk CONFIG_ATM_FORE200E drivers/atm/Makefile
307 ########################
308 # Removed char Drivers #
309 ########################
311 announce COMPUTONE - Computone IntelliPort Plus serial
312 drop_fw_file firmware/intelliport2.bin.ihex firmware/intelliport2.bin
313 reject_firmware drivers/char/ip2/ip2main.c
314 clean_blob drivers/char/ip2/ip2main.c
315 clean_kconfig drivers/char/Kconfig 'COMPUTONE'
316 clean_mk CONFIG_COMPUTONE drivers/char/Makefile
320 announce DRM_MGA - Matrox g200/g400
321 clean_blob drivers/gpu/drm/mga/mga_ucode.h
322 clean_blob drivers/gpu/drm/mga/mga_warp.c
323 clean_kconfig drivers/gpu/drm/Kconfig 'DRM_MGA'
324 clean_mk CONFIG_DRM_MGA drivers/gpu/drm/Makefile
326 announce DRM_R128 - ATI Rage 128
327 clean_sed '/^static int r128_do_init_cce(/,/^}$/{
328 /^ r128_cce_load_microcode(dev_priv);$/{
330 DRM_ERROR("Missing Free microcode!\\n");\
331 dev->dev_private = (void *)dev_priv;\
332 r128_do_cleanup_cce(dev);\
335 }' drivers/gpu/drm/r128/r128_cce.c
336 clean_blob drivers/gpu/drm/r128/r128_cce.c
337 clean_kconfig drivers/gpu/drm/Kconfig 'DRM_R128'
338 clean_mk CONFIG_DRM_R128 drivers/gpu/drm/Makefile
340 announce DRM_RADEON - ATI Radeon
341 clean_sed '/^static int radeon_do_init_cce(/,/^}$/{
342 /^ radeon_cp_load_microcode(dev_priv);$/{
344 DRM_ERROR("Missing Free microcode!\\n");\
345 radeon_do_cleanup_cp(dev);\
349 /^static int radeon_do_resume_cp(/,/^}$/{
350 /^ radeon_cp_load_microcode(dev_priv);$/{
352 DRM_ERROR("Missing Free microcode!\\n");\
355 }' drivers/gpu/drm/radeon/radeon_cp.c
356 clean_blob drivers/gpu/drm/radeon/radeon_microcode.h
357 clean_kconfig drivers/gpu/drm/Kconfig 'DRM_RADEON'
358 clean_mk CONFIG_DRM_RADEON drivers/gpu/drm/Makefile
361 #########################
362 # Removed Media Drivers #
363 #########################
366 announce DVB non-Free firmware scripts and documentation
367 clean_blob Documentation/dvb/get_dvb_firmware
368 clean_blob Documentation/dvb/avermedia.txt
369 clean_blob Documentation/dvb/opera-firmware.txt
370 clean_blob Documentation/dvb/ttusb-dec.txt
372 announce DVB_USB_AF9005 - Afatech AF9005 DVB-T USB1.1
373 clean_file drivers/media/dvb/dvb-usb/af9005-script.h
374 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
375 clean_blob drivers/media/dvb/dvb-usb/af9005-fe.c
376 clean_kconfig drivers/media/dvb/dvb-usb/Kconfig 'DVB_USB_AF9005'
377 clean_mk CONFIG_DVB_USB_AF9005 drivers/media/dvb/dvb-usb/Makefile
381 announce DVB_SP8870 - Spase sp8870
382 clean_sed 's,SP8870_DEFAULT_FIRMWARE,NONFREE_FIRMWARE,g' drivers/media/dvb/frontends/sp8870.c
383 clean_blob drivers/media/dvb/frontends/sp8870.c
384 clean_kconfig drivers/media/dvb/frontends 'DVB_SP8870'
385 clean_mk CONFIG_DVB_SP8870 drivers/media/dvb/frontends/Makefile
387 announce DVB_TDA1004X - Philips TDA10045H/TDA10046H
388 clean_sed 's,TDA1004[56]_DEFAULT_FIRMWARE,NONFREE_FIRMWARE,g' drivers/media/dvb/frontends/tda1004x.c
389 clean_blob drivers/media/dvb/frontends/tda1004x.c
390 clean_kconfig drivers/media/dvb/frontends 'DVB_TDA1004X'
391 clean_mk CONFIG_DVB_TDA1004X drivers/media/dvb/frontends/Makefile
395 announce DVB_AV7110 - AV7110 cards
396 # The bootcode is actually Free Software under GPLv2, but since it's
397 # being distributed without source code, we're taking it out for now.
398 clean_sed 's,^ \/\* boot \*\/$, printk(KERN_ERR "dvb-ttpci: av7110_bootarm(): Missing Free bootcode\\n");\n return -EINVAL;\n\n&,' drivers/media/dvb/ttpci/av7110_hw.c
399 clean_sed 's,mwdebi(.*bootcode.*$,/* & */,' drivers/media/dvb/ttpci/av7110_hw.c
400 clean_blob drivers/media/dvb/ttpci/av7110_hw.c
401 clean_sed '/^static int get_firmware(/,/^}$/s, request_firmware(, reject_firmware(,' drivers/media/dvb/ttpci/av7110.c
402 clean_sed '/^static int alps_tdlb7_request_firmware(/,/^}$/s, request_firmware(, maybe_reject_firmware(,' drivers/media/dvb/ttpci/av7110.c
403 clean_blob drivers/media/dvb/ttpci/av7110.c
404 clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_AV7110'
405 clean_mk CONFIG_DVB_AV7110 drivers/media/dvb/ttpci/Makefile
407 announce DVB_BUDGET - Budget cards
408 clean_sed '/^static int alps_tdhd1_204_request_firmware(/,/^}$/s, request_firmware(, maybe_reject_firmware(,' drivers/media/dvb/ttpci/budget.c
410 announce DVB_BUDGET_AV - Budget cards with analog video inputs
411 clean_sed '/^static int philips_tu1216_request_firmware(/,/^}$/s, request_firmware(, maybe_reject_firmware(,' drivers/media/dvb/ttpci/budget-av.c
413 announce DVB_BUDGET_CI - Budget cards with onboard CI connector
414 clean_sed '/^static int philips_tdm1316l_request_firmware(/,/^}$/s, request_firmware(, maybe_reject_firmware(,' drivers/media/dvb/ttpci/budget-ci.c
418 announce DVB_TTUSB_BUDGET - Technotrend/Hauppauge Nova-USB devices
419 drop_fw_file firmware/ttusb-budget/dspbootcode.bin.ihex firmware/ttusb-budget/dspbootcode.bin
420 clean_sed '/^static int philips_tdm1316l_request_firmware(/,/^}$/s, request_firmware(, maybe_reject_firmware(,' drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
421 reject_firmware drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
422 clean_blob drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
423 clean_kconfig drivers/media/dvb/ttusb-budget/Kconfig 'DVB_TTUSB_BUDGET'
424 clean_mk CONFIG_DVB_TTUSB_BUDGET drivers/media/dvb/ttusb-budget/Makefile
428 announce VIDEO_CPIA2 - CPiA2 Video For Linux
429 clean_fw firmware/cpia2/stv0672_vp4.bin.ihex firmware/cpia2/stv0672_vp4.bin
430 reject_firmware drivers/media/video/cpia2/cpia2_core.c
431 clean_blob drivers/media/video/cpia2/cpia2_core.c
432 clean_kconfig drivers/media/video/cpia2/Kconfig 'VIDEO_CPIA2'
433 clean_mk CONFIG_VIDEO_CPIA2 drivers/media/video/cpia2/Makefile
435 announce USB_DABUSB - DABUSB driver
436 clean_fw firmware/dabusb/bitstream.bin.ihex firmware/dabusb/bitstream.bin
437 clean_fw firmware/dabusb/firmware.HEX firmware/dabusb/firmware.fw
438 reject_firmware drivers/media/video/dabusb.c
439 clean_blob drivers/media/video/dabusb.c
440 clean_kconfig drivers/media/Kconfig 'USB_DABUSB'
441 clean_mk CONFIG_USB_DABUSB drivers/media/video/Makefile
445 announce USB_VICAM - USB 3com HomeConnect, AKA vicam
446 drop_fw_file firmware/vicam/firmware.H16 firmware/vicam/firmware.fw
447 reject_firmware drivers/media/video/vicam.c
448 clean_blob drivers/media/video/vicam.c
449 clean_kconfig drivers/media/video/usbvideo/Kconfig 'USB_VICAM'
450 clean_mk CONFIG_USB_VICAM drivers/media/video/usbvideo/Makefile
453 #######################
454 # Removed net Drivers #
455 #######################
457 announce ACENIC - Alteon AceNIC/3Com 3C985/NetGear GA620 Gigabit
458 clean_blob drivers/net/acenic_firmware.h
459 clean_sed 's, \(ace_load_firmware[^;]*\), if ((ecode = \1)) goto init_error,' drivers/net/acenic.c
460 clean_sed '/^static int __devinit ace_load_firmware(/,/^}$/ { /^}$/i\
462 printk(KERN_ERR "%s: Missing Free firwmare\\n", ap->name);\
464 }' drivers/net/acenic.c
465 clean_blob drivers/net/acenic.c
466 clean_kconfig drivers/net/Kconfig 'ACENIC'
467 clean_mk CONFIG_ACENIC drivers/net/Makefile
469 announce ADAPTEC_STARFIRE - Adaptec Starfire/DuraLAN support
470 # This file requires prior acceptance of the GPL before you can even
471 # run the code in it. It's not clear whether this is a further
472 # requirement that would make the distribution incompatible with the
473 # GPL, but since nothing remains after we remove the blob, it's
474 # irrelevant whether the explicit acceptance would be a problem.
475 clean_file drivers/net/starfire_firmware.h
476 clean_file drivers/net/starfire_firmware.pl
477 clean_sed '/Load Rx\/Tx firmware/i\
478 printk (KERN_ERR "%s: Missing Free firmware\\n", dev->name);\
480 ' drivers/net/starfire.c
481 clean_blob drivers/net/starfire.c
482 clean_kconfig drivers/net/Kconfig 'ADAPTEC_STARFIRE'
483 clean_mk CONFIG_ADAPTEC_STARFIRE drivers/net/Makefile
485 # BNX2 - Broadcom NetXtremeII
486 clean_blob drivers/net/bnx2_fw.h
487 clean_blob drivers/net/bnx2_fw2.h
488 clean_kconfig drivers/net/Kconfig 'BNX2'
489 clean_mk CONFIG_BNX2 drivers/net/Makefile
491 # BNX2X - Broadcom NetXtremeII 10Gb support
492 clean_blob drivers/net/bnx2x_init_values.h
493 clean_kconfig drivers/net/Kconfig 'BNX2X'
494 clean_mk CONFIG_BNX2X drivers/net/Makefile
496 # CASSINI - Sun Cassini
497 drop_fw_file firmware/sun/cassini.bin.ihex firmware/sun/cassini.bin
498 clean_kconfig drivers/net/Kconfig 'CASSINI'
499 clean_mk CONFIG_CASSINI drivers/net/Makefile
501 # CHELSIO_T3 - Chelsio AEL 2005 support
502 clean_blob drivers/net/cxgb3/ael1002.c
506 clean_kconfig drivers/net/Kconfig 'CHELSIO_T3'
507 clean_mk CONFIG_CHELSIO_T3 drivers/net/cxgb3/Makefile
510 # E100 - Intel(R) PRO/100+
511 clean_blob drivers/net/e100.c
513 sed -i 's:\(\/\*(DEBLOBBED)\*\/\),:\1:' drivers/net/e100.c
515 clean_kconfig drivers/net/Kconfig 'E100'
516 clean_mk CONFIG_E100 drivers/net/Makefile
519 # MYRI_SBUS - MyriCOM Gigabit Ethernet
520 clean_blob drivers/net/myri_code.h
521 clean_kconfig drivers/net/Kconfig 'MYRI_SBUS'
522 clean_mk CONFIG_MYRI_SBUS drivers/net/Makefile
524 # TEHUTI - Tehuti Networks 10G Ethernet
525 clean_blob drivers/net/tehuti_fw.h -s 4
526 clean_kconfig drivers/net/Kconfig 'TEHUTI'
527 clean_mk CONFIG_TEHUTI drivers/net/Makefile
529 # TIGON3 - Broadcom Tigon3
530 patch --no-backup-if-mismatch --batch -p0 <<\EOF || \
531 die failed to remove license comments from drivers/net/tg3.c \
532 # patches/linux-2.6-tg3-clean.patch
533 --- drivers/net/tg3.c
534 +++ drivers/net/tg3.c
536 * Copyright (C) 2001, 2002, 2003 Jeff Garzik (jgarzik@pobox.com)
537 * Copyright (C) 2004 Sun Microsystems Inc.
538 * Copyright (C) 2005-2007 Broadcom Corporation.
541 - * Derived from proprietary unpublished source code,
542 - * Copyright (C) 2000-2003 Broadcom Corporation.
544 - * Permission is hereby granted for the distribution of this firmware
545 - * data in hexadecimal or equivalent format, provided this copyright
546 - * notice is accompanying it.
551 clean_blob drivers/net/tg3.c -s 9
553 sed -i 's:\(\/\*(DEBLOBBED)\*\/\),:\1:' drivers/net/tg3.c
555 clean_kconfig drivers/net/Kconfig 'TIGON3'
556 clean_mk CONFIG_TIGON3 drivers/net/Makefile
559 # TYPHOON - 3cr990 series Typhoon
560 clean_blob drivers/net/typhoon-firmware.h
561 clean_kconfig drivers/net/Kconfig 'TYPHOON'
562 clean_mk CONFIG_TYPHOON drivers/net/Makefile
566 # COPS - COPS LocalTalk PC
567 # clean_blob drivers/net/appletalk/cops.c
568 # clean_blob drivers/net/appletalk/cops.h
569 clean_blob drivers/net/appletalk/cops_ffdrv.h
570 clean_blob drivers/net/appletalk/cops_ltdrv.h
571 clean_kconfig drivers/net/appletalk/Kconfig 'COPS'
572 clean_mk CONFIG_COPS drivers/net/appletalk/Makefile
576 # YAM - YAM driver for AX.25
577 clean_blob drivers/net/hamradio/yam1200.h
578 clean_blob drivers/net/hamradio/yam9600.h
579 clean_kconfig drivers/net/hamradio/Kconfig 'YAM'
580 clean_mk CONFIG_YAM drivers/net/hamradio/Makefile
584 # PCMCIA_SMC91C92 - SMC 91Cxx PCMCIA
585 clean_blob drivers/net/pcmcia/ositech.h
586 clean_kconfig drivers/net/pcmcia/Kconfig 'PCMCIA_SMC91C92'
587 clean_mk CONFIG_PCMCIA_SMC91C92 drivers/net/pcmcia/Makefile
592 # 3C359 - 3Com 3C359 Token Link Velocity XL adapter
593 # No need to remove these, they don't contain non-Free code.
594 # clean_blob drivers/net/tokenring/3c359.c
595 # clean_blob drivers/net/tokenring/3c359.h
596 # This file is not under the GPL, better remove it all.
597 clean_file drivers/net/tokenring/3c359_microcode.h
598 clean_kconfig drivers/net/tokenring/Kconfig '3C359'
599 clean_mk CONFIG_3C359 drivers/net/tokenring/Makefile
601 # SMCTR - SMC ISA/MCA adapter
602 # No need to remove these, they don't contain non-Free code.
603 # clean_blob drivers/net/tokenring/smctr.c
604 # clean_blob drivers/net/tokenring/smctr.h
605 # This file is not under the GPL, better remove it all.
606 drop_fw_file firmware/tr_smctr.bin.ihex firmware/tr_smctr.bin
607 clean_kconfig drivers/net/tokenring/Kconfig 'SMCTR'
608 clean_mk CONFIG_SMCTR drivers/net/tokenring/Makefile
612 # USB_KAWETH - USB KLSI KL5USB101-based ethernet device support
613 drop_fw_file firmware/kaweth/new_code.bin.ihex firmware/kaweth/new_code.bin
614 drop_fw_file firmware/kaweth/new_code_fix.bin.ihex firmware/kaweth/new_code_fix.bin
615 drop_fw_file firmware/kaweth/trigger_code.bin.ihex firmware/kaweth/trigger_code.bin
616 drop_fw_file firmware/kaweth/trigger_code_fix.bin.ihex firmware/kaweth/trigger_code_fix.bin
617 clean_kconfig drivers/net/usb/Kconfig 'USB_KAWETH'
618 clean_mk CONFIG_USB_KAWETH drivers/net/usb/Makefile
624 ########################
625 # Removed s390 Drivers #
626 ########################
628 # QETH - Gigabit Ethernet device support
629 clean_blob drivers/s390/net/qeth_core_mpc.c
630 clean_kconfig drivers/s390/net/Kconfig 'QETH'
631 clean_mk CONFIG_QETH drivers/s390/net/Makefile
634 #####################
635 # Removed SH boards #
636 #####################
638 # SH_AP325RXA - Renesas AP-325RXA board
639 clean_blob arch/sh/boards/board-ap325rxa.c
640 clean_kconfig arch/sh/boards/Kconfig 'SH_AP325RXA'
641 clean_mk CONFIG_SH_AP325RXA arch/sh/boards/Makefile
643 # SH_MIGOR - Reneasas Migo-R
644 clean_blob arch/sh/boards/mach-migor/lcd_qvga.c -s 16
645 clean_blob arch/sh/boards/mach-migor/setup.c
646 clean_kconfig arch/sh/boards/Kconfig 'SH_MIGOR'
647 clean_kconfig arch/sh/boards/mach-migor/Kconfig 'SH_MIGOR_QVGA'
648 clean_mk CONFIG_SH_MIGOR_QVGA arch/sh/boards/mach-migor/Makefile
651 ########################
652 # Removed SCSI Drivers #
653 ########################
655 # SCSI_QLOGICPTI - PTI Qlogic, ISP Driver
656 clean_blob drivers/scsi/qlogicpti_asm.c
657 clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGICPTI'
658 clean_mk CONFIG_SCSI_QLOGICPTI drivers/scsi/Makefile
660 # SCSI_ADVANSYS - AdvanSys SCSI
661 clean_blob drivers/scsi/advansys.c
662 clean_kconfig drivers/scsi/Kconfig 'SCSI_ADVANSYS'
663 clean_mk CONFIG_SCSI_ADVANSYS drivers/scsi/Makefile
665 # SCSI_QLOGIC_1280 - Qlogic QLA 1240/1x80/1x160 SCSI
666 clean_blob drivers/scsi/ql1280_fw.h
667 clean_blob drivers/scsi/ql1040_fw.h
668 clean_blob drivers/scsi/ql12160_fw.h
669 clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGIC_1280'
670 clean_mk CONFIG_SCSI_QLOGIC_1280 drivers/scsi/Makefile
673 #######################
674 # Removed USB Drivers #
675 #######################
679 # USB_EMI26 - EMI 2|6 USB Audio interface
680 # No need to remove this, it doesn't contain non-Free code.
681 # clean_blob drivers/usb/misc/emi26.c
682 # These files are not under the GPL, better remove them all.
683 drop_fw_file firmware/emi26/bitstream.HEX firmware/emi26/bitstream.fw
684 drop_fw_file firmware/emi26/firmware.HEX firmware/emi26/firmware.fw
685 drop_fw_file firmware/emi26/loader.HEX firmware/emi26/loader.fw
686 clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI26'
687 clean_mk CONFIG_USB_EMI26 drivers/usb/misc/Makefile
689 # USB_EMI62 - EMI 6|2m USB Audio interface
690 # No need to remove this, it doesn't contain non-Free code.
691 # clean_blob drivers/usb/misc/emi62.c
692 # These files are probably not under the GPL, better remove them all.
693 drop_fw_file firmware/emi62/bitstream.HEX firmware/emi62/bitstream.fw
694 drop_fw_file firmware/emi62/loader.HEX firmware/emi62/loader.fw
695 drop_fw_file firmware/emi62/midi.HEX firmware/emi62/midi.fw
696 drop_fw_file firmware/emi62/spdif.HEX firmware/emi62/spdif.fw
697 clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI62'
698 clean_mk CONFIG_USB_EMI62 drivers/usb/misc/Makefile
700 # USB_SISUSBVGA - USB 2.0 SVGA dongle support (Net2280/SiS315)
701 clean_blob drivers/usb/misc/sisusbvga/sisusb_init.h
702 clean_kconfig drivers/usb/misc/sisusbvga/Kconfig 'USB_SISUSBVGA'
703 clean_mk CONFIG_USB_SISUSBVGA drivers/usb/misc/sisusbvga/Makefile
707 # USB_SERIAL_KEYSPAN_MPR - USB Keyspan MPR Firmware
708 drop_fw_file firmware/keyspan/mpr.HEX firmware/keyspan/mpr.fw
709 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_MPR'
710 # USB_SERIAL_KEYSPAN_USA18X - USB Keyspan USA-18X Firmware
711 drop_fw_file firmware/keyspan/usa18x.HEX firmware/keyspan/usa18x.fw
712 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA18X'
713 # USB_SERIAL_KEYSPAN_USA19 - USB Keyspan USA-19 Firmware
714 drop_fw_file firmware/keyspan/usa19.HEX firmware/keyspan/usa19.fw
715 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19'
716 # USB_SERIAL_KEYSPAN_USA19QI - USB Keyspan USA-19QI Firmware
717 drop_fw_file firmware/keyspan/usa19qi.HEX firmware/keyspan/usa19qi.fw
718 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QI'
719 # USB_SERIAL_KEYSPAN_USA19QW - USB Keyspan USA-19QW Firmware
720 drop_fw_file firmware/keyspan/usa19qw.HEX firmware/keyspan/usa19qw.fw
721 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QW'
722 # USB_SERIAL_KEYSPAN_USA19W - USB Keyspan USA-19W Firmware
723 drop_fw_file firmware/keyspan/usa19w.HEX firmware/keyspan/usa19w.fw
724 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19W'
725 # USB_SERIAL_KEYSPAN_USA28 - USB Keyspan USA-28 Firmware
726 drop_fw_file firmware/keyspan/usa28.HEX firmware/keyspan/usa28.fw
727 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28'
728 # USB_SERIAL_KEYSPAN_USA28XA - USB Keyspan USA-28XA Firmware
729 drop_fw_file firmware/keyspan/usa28xa.HEX firmware/keyspan/usa28xa.fw
730 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XA'
731 # USB_SERIAL_KEYSPAN_USA28XB - USB Keyspan USA-28XB Firmware
732 drop_fw_file firmware/keyspan/usa28xb.HEX firmware/keyspan/usa28xb.fw
733 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XB'
734 # USB_SERIAL_KEYSPAN_USA28X - USB Keyspan USA-28X Firmware
735 drop_fw_file firmware/keyspan/usa28x.HEX firmware/keyspan/usa28x.fw
736 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28X'
737 # USB_SERIAL_KEYSPAN_USA49W - USB Keyspan USA-49W Firmware
738 drop_fw_file firmware/keyspan/usa49w.HEX firmware/keyspan/usa49w.fw
739 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49W'
740 # USB_SERIAL_KEYSPAN_USA49WLC - USB Keyspan USA-49WLC Firmware
741 drop_fw_file firmware/keyspan/usa49wlc.HEX firmware/keyspan/usa49wlc.fw
742 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49WLC'
743 clean_mk CONFIG_USB_SERIAL_KEYSPAN drivers/usb/serial/Makefile
745 # USB_SERIAL_EDGEPORT - USB Inside Out Edgeport Serial Driver
746 clean_fw firmware/edgeport/boot.H16 firmware/edgeport/boot.fw
747 clean_fw firmware/edgeport/down.H16 firmware/edgeport/down.fw
748 clean_fw firmware/edgeport/down2.H16 firmware/edgeport/down2.fw
749 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT'
750 clean_mk CONFIG_USB_SERIAL_EDGEPORT drivers/usb/serial/Makefile
752 # USB_SERIAL_EDGEPORT_TI - USB Inside Out Edgeport Serial Driver (TI devices)
753 clean_fw firmware/edgeport/boot2.H16 firmware/edgeport/boot2.fw
754 clean_fw firmware/edgeport/down3.bin.ihex firmware/edgeport/down3.bin
755 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT_TI'
756 clean_mk CONFIG_USB_SERIAL_EDGEPORT_TI drivers/usb/serial/Makefile
758 # USB_SERIAL_TI - USB TI 3410/5052 Serial Driver
759 drop_fw_file firmware/ti_3410.fw.ihex firmware/ti_3410.fw
760 drop_fw_file firmware/ti_5052.fw.ihex firmware/ti_5052.fw
761 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_TI'
762 clean_mk CONFIG_USB_SERIAL_TI drivers/usb/serial/Makefile
764 # USB_SERIAL_WHITEHEAT - USB ConnectTech WhiteHEAT Serial Driver
765 clean_fw firmware/whiteheat.HEX firmware/whiteheat.fw
766 clean_fw firmware/whiteheat_loader.HEX firmware/whiteheat_loader.fw
767 clean_fw firmware/whiteheat_loader_debug.HEX firmware/whiteheat_loader_debug.fw
768 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_WHITEHEAT'
769 clean_mk CONFIG_USB_SERIAL_WHITEHEAT drivers/usb/serial/Makefile
772 #########################
773 # Removed video Drivers #
774 #########################
776 # FB_ASILIANT - Asiliant (Chips) 69000 display support
777 clean_blob drivers/video/asiliantfb.c
778 clean_kconfig drivers/video/Kconfig 'FB_ASILIANT'
779 clean_mk CONFIG_FB_ASILIANT drivers/video/Makefile
781 # FB_CT65550 - Chips 65550 display support
782 clean_blob drivers/video/chipsfb.c
783 clean_kconfig drivers/video/Kconfig 'FB_CT65550'
784 clean_mk CONFIG_FB_CT65550 drivers/video/Makefile
786 # USB_GSPCA - Conexant 11646
787 clean_blob drivers/media/video/gspca/conex.c
788 # clean_kconfig drivers/video/gspca/Kconfig 'USB_GSPCA'
789 # clean_mk CONFIG_USB_GSPCA drivers/video/Makefile
791 #########################
792 # Removed Sound Drivers #
793 #########################
795 # SND_CS46XX - Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x
796 clean_blob sound/pci/cs46xx/cs46xx_image.h
797 # Blobs containing comments, not recognized by deblob-check
798 clean_file sound/pci/cs46xx/imgs/cwc4630.h
799 clean_file sound/pci/cs46xx/imgs/cwcasync.h
800 clean_file sound/pci/cs46xx/imgs/cwcdma.h
801 clean_file sound/pci/cs46xx/imgs/cwcsnoop.h
802 clean_kconfig sound/pci/Kconfig 'SND_CS46XX'
803 # sed -i '/cs46xx\/ \\/d' sound/pci/Makefile
805 # SND_KORG1212 - Korg 1212 IO
806 drop_fw_file firmware/korg/k1212.dsp.ihex firmware/korg/k1212.dsp
808 # SND_MAESTRO3 - ESS Allegro/Maestro3
809 drop_fw_file firmware/ess/maestro3_assp_kernel.fw.ihex firmware/ess/maestro3_assp_kernel.fw
810 drop_fw_file firmware/ess/maestro3_assp_minisrc.fw.ihex firmware/ess/maestro3_assp_minisrc.fw
812 # SND_YMFPCI - Yamaha YMF724/740/744/754
813 drop_fw_file firmware/yamaha/ds1_ctrl.fw.ihex firmware/yamaha/ds1_ctrl.fw
814 drop_fw_file firmware/yamaha/ds1_dsp.fw.ihex firmware/yamaha/ds1_dsp.fw
815 drop_fw_file firmware/yamaha/ds1e_ctrl.fw.ihex firmware/yamaha/ds1e_ctrl.fw
817 # SND_SB16_CSP_FIRMWARE_IN_KERNEL - SB16 Advanced Signal Processor
818 drop_fw_file firmware/sb16/alaw_main.csp.ihex firmware/sb16/alaw_main.csp
819 drop_fw_file firmware/sb16/mulaw_main.csp.ihex firmware/sb16/mulaw_main.csp
820 drop_fw_file firmware/sb16/ima_adpcm_init.csp.ihex firmware/sb16/ima_adpcm_init.csp
821 drop_fw_file firmware/sb16/ima_adpcm_capture.csp.ihex firmware/sb16/ima_adpcm_capture.csp
822 drop_fw_file firmware/sb16/ima_adpcm_playback.csp.ihex firmware/sb16/ima_adpcm_playback.csp
824 # SND_WAVEFRONT_FIRMWARE_IN_KERNEL
825 # Most of this file is not matched by deblob-check because of WAIT_IDLE.
827 clean_file sound/isa/wavefront/yss225.c
828 clean_kconfig sound/isa/Kconfig 'SND_WAVEFRONT_FIRMWARE_IN_KERNEL'
831 ###########################
832 # Removed Staging Drivers #
833 ###########################
835 # ME4000 - Meilhaus ME-4000 I/O board
836 clean_file drivers/staging/me4000/me4000_firmware.h
837 clean_file drivers/staging/me4000/me4610_firmware.h
838 clean_kconfig drivers/staging/me4000/Kconfig 'ME4000'
839 clean_mk CONFIG_ME4000 drivers/staging/me4000/Makefile
841 # SLICOSS - Alacritech Gigabit IS-NIC cards
842 clean_blob drivers/staging/slicoss/gbdownload.h
843 clean_blob drivers/staging/slicoss/oasisdownload.h
844 clean_blob drivers/staging/slicoss/oasisdbgdownload.h
845 clean_blob drivers/staging/slicoss/gbrcvucode.h
846 clean_blob drivers/staging/slicoss/oasisrcvucode.h
847 clean_kconfig drivers/staging/slicoss/Kconfig 'SLICOSS'
848 clean_mk CONFIG_SLICOSS drivers/staging/slicoss/Makefile
850 # SXG - Alacritech SLIC Technology Non-Accelerated 10Gbe cards
851 clean_blob drivers/staging/sxg/saharadbgdownload.h
852 clean_blob drivers/staging/sxg/sxgphycode.h
853 clean_kconfig drivers/staging/sxg/Kconfig 'SXG'
854 clean_mk CONFIG_SXG drivers/staging/sxg/Makefile