1
0

deblob-2.6.21 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. #!/bin/sh
  2. # Copyright (C) 2008 Jeff Moe
  3. # Copyright (C) 2008 Alexandre Oliva <lxoliva@fsfla.org>
  4. #
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  18. # deblob - remove non-free blobs from the vanilla linux kernel
  19. # http://www.fsfla.org/svn/fsfla/software/linux-libre
  20. # This script, suited for the kernel version named below, in kver,
  21. # attempts to remove only non-Free Software bits, without removing
  22. # Free Software that happens to be in the same file.
  23. # Drivers that currently require non-Free firmware are retained, but
  24. # firmware included in GPLed sources is replaced with /*(DEBLOBBED)*/
  25. # if the deblob-check script, that knows how to do this, is present.
  26. # -lxoliva
  27. # See also:
  28. # http://wiki.debian.org/KernelFirmwareLicensing
  29. # svn://svn.debian.org/kernel/dists/trunk/linux-2.6/debian/patches/debian/dfsg/files-1
  30. # http://svn.gnewsense.svnhopper.net/gnewsense/builder/trunk/firmware/firmware-removed
  31. # http://svn.gnewsense.svnhopper.net/gnewsense/builder/trunk/gen-kernel
  32. # Thanks to Brian Brazil @ gnewsense
  33. # For each kver release, start extra with an empty string, then count
  34. # from 1 if changes are needed that require rebuilding the tarball.
  35. kver=2.6.21 extra=
  36. if unifdef /dev/null; then :; else
  37. echo unifdef is required >&2
  38. exit 1
  39. fi
  40. check=`echo $0 | sed 's,/[^/]*$,,'`/deblob-check
  41. if [ ! -f $check ] ; then
  42. echo optional deblob-check missing, will remove entire files >&2
  43. have_check=false
  44. else
  45. have_check=:
  46. fi
  47. function clean_file {
  48. #$1 = filename
  49. if test ! -f $1; then
  50. echo $1 does not exist, something is wrong >&2
  51. exit 1
  52. fi
  53. rm -v $1
  54. }
  55. function check_changed {
  56. if test ! -f $1; then
  57. echo $1 does not exist, something is wrong >&2
  58. exit 1
  59. elif cmp $1.deblob $1 > /dev/null; then
  60. echo $1 did not change, something is wrong >&2
  61. exit 1
  62. fi
  63. mv $1.deblob $1
  64. }
  65. function clean_blob {
  66. #$1 = filename
  67. if $have_check; then
  68. if test ! -f $1; then
  69. echo $1 does not exist, something is wrong >&2
  70. exit 1
  71. fi
  72. name=$1
  73. echo Removing blobs from $name
  74. set fnord "$@" -d
  75. shift 2
  76. $check "$@" $name > $name.deblob
  77. check_changed $name
  78. else
  79. clean_file $1
  80. fi
  81. }
  82. function clean_kconfig {
  83. #$1 = filename $2 = things to remove
  84. echo Marking config $2 as depending on NONFREE in $1
  85. sed "/^config \\($2\\)\$/{p;i\
  86. depends on NONFREE
  87. d;}" $1 > $1.deblob
  88. check_changed $1
  89. }
  90. function clean_mk {
  91. #$1 = config $2 = Makefile name
  92. # We don't clean up Makefiles any more --lxoliva
  93. # sed -i "/\\($1\\)/d" $2
  94. # check_changed $2
  95. if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then
  96. :
  97. else
  98. echo $2 does not contain matches for $1
  99. exit 1
  100. fi
  101. }
  102. function clean_ifdef {
  103. #$1 = filename $2 = macro to -U
  104. echo unifdefing $1 with -U$2
  105. unifdef $1 -U$2 > $1.deblob
  106. check_changed $1
  107. }
  108. # First, check that files that contain firmwares and their
  109. # corresponding sources are present.
  110. for f in \
  111. drivers/char/ser_a2232fw.h \
  112. drivers/char/ser_a2232fw.ax \
  113. drivers/net/ixp2000/ixp2400_rx.ucode \
  114. drivers/net/ixp2000/ixp2400_rx.uc \
  115. drivers/net/ixp2000/ixp2400_tx.ucode \
  116. drivers/net/ixp2000/ixp2400_rx.uc \
  117. drivers/net/wan/wanxlfw.inc_shipped \
  118. drivers/net/wan/wanxlfw.S \
  119. drivers/net/wireless/atmel.c \
  120. drivers/net/wireless/atmel.c \
  121. drivers/scsi/53c700_d.h_shipped \
  122. drivers/scsi/53c700.scr \
  123. drivers/scsi/aic7xxx/aic79xx_seq.h_shipped \
  124. drivers/scsi/aic7xxx/aic79xx.seq \
  125. drivers/scsi/aic7xxx/aic7xxx_seq.h_shipped \
  126. drivers/scsi/aic7xxx/aic7xxx.seq \
  127. drivers/scsi/aic7xxx_old/aic7xxx_seq.c \
  128. drivers/scsi/aic7xxx_old/aic7xxx.seq \
  129. drivers/scsi/53c7xx_d.h_shipped \
  130. drivers/scsi/53c7xx.scr \
  131. drivers/scsi/sym53c8xx_2/sym_fw1.h \
  132. drivers/scsi/sym53c8xx_2/sym_fw1.h \
  133. drivers/scsi/sym53c8xx_2/sym_fw2.h \
  134. drivers/scsi/sym53c8xx_2/sym_fw2.h \
  135. drivers/usb/serial/keyspan_pda_fw.h \
  136. drivers/usb/serial/keyspan_pda.S \
  137. drivers/usb/serial/xircom_pgs_fw.h \
  138. drivers/usb/serial/xircom_pgs.S \
  139. sound/pci/cs46xx/imgs/cwcbinhack.h \
  140. sound/pci/cs46xx/imgs/cwcdma.asp \
  141. ; do
  142. if test ! $f; then
  143. echo $f is not present, something is amiss >&2
  144. exit 1
  145. fi
  146. done
  147. # Identify the tarball.
  148. sed -i "s,^EXTRAVERSION.*,&-libre$extra," Makefile
  149. #######################
  150. # Removed ATM Drivers #
  151. #######################
  152. # ATM_AMBASSADOR - Madge Ambassador (Collage PCI 155 Server)
  153. clean_blob drivers/atm/atmsar11.data
  154. # ATM_FORE200E_PCA
  155. # ATM_FORE200E_SBA - SBA-200E
  156. clean_kconfig drivers/atm/Kconfig 'ATM_FORE.*'
  157. clean_mk CONFIG_ATM_FORE200E drivers/atm/Makefile
  158. clean_file drivers/atm/pca200e.data
  159. clean_file drivers/atm/pca200e_ecd.data
  160. clean_file drivers/atm/sba200e_ecd.data
  161. clean_kconfig drivers/atm/Kconfig 'ATM_AMBASSADOR'
  162. clean_mk CONFIG_ATM_AMBASSADOR drivers/atm/Makefile
  163. ########################
  164. # Removed char Drivers #
  165. ########################
  166. # COMPUTONE - Computone IntelliPort Plus serial
  167. clean_blob drivers/char/ip2/fip_firm.h
  168. clean_kconfig drivers/char/Kconfig 'COMPUTONE'
  169. clean_mk CONFIG_COMPUTONE drivers/char/Makefile
  170. # DSP56001 Device Driver
  171. clean_blob drivers/char/dsp56k.c
  172. clean_kconfig arch/m68k/Kconfig 'ATARI_DSP56K'
  173. clean_mk CONFIG_ATARI_DSP56K drivers/char/Makefile
  174. # gpu drm
  175. # DRM_MGA - Matrox g200/g400
  176. clean_blob drivers/char/drm/mga_ucode.h
  177. clean_kconfig drivers/char/drm/Kconfig 'DRM_MGA'
  178. clean_mk CONFIG_DRM_MGA drivers/char/drm/Makefile
  179. # DRM_R128 - ATI Rage 128
  180. clean_blob drivers/char/drm/r128_cce.c
  181. clean_kconfig drivers/char/drm/Kconfig 'DRM_R128'
  182. clean_mk CONFIG_DRM_R128 drivers/char/drm/Makefile
  183. # DRM_RADEON - ATI Radeon
  184. clean_blob drivers/char/drm/radeon_cp.c
  185. clean_kconfig drivers/char/drm/Kconfig 'DRM_RADEON'
  186. clean_mk CONFIG_DRM_RADEON drivers/char/drm/Makefile
  187. #########################
  188. # Removed Media Drivers #
  189. #########################
  190. # dvb/frontends
  191. # DVB_TDA10021 - Philips TDA10021 based
  192. clean_blob drivers/media/dvb/frontends/tda10021.c
  193. clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_TDA10021'
  194. clean_mk CONFIG_DVB_TDA10021 drivers/media/dvb/frontends/Makefile
  195. # DVB_TDA8083 - Philips TDA8083 based
  196. clean_blob drivers/media/dvb/frontends/tda8083.c
  197. clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_TDA8083'
  198. clean_mk CONFIG_DVB_TDA8083 drivers/media/dvb/frontends/Makefile
  199. # DVB_VES1820 - VLSI VES1820 based
  200. clean_blob drivers/media/dvb/frontends/ves1820.c
  201. clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_VES1820'
  202. clean_mk CONFIG_DVB_VES1820 drivers/media/dvb/frontends/Makefile
  203. # DVB_VES1X93 - VLSI VES1893 or VES1993 based
  204. clean_blob drivers/media/dvb/frontends/ves1x93.c
  205. clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_VES1X93'
  206. clean_mk CONFIG_DVB_VES1X93 drivers/media/dvb/frontends/Makefile
  207. # dvb/ttpci
  208. # DVB_AV7110 - AV7110 cards
  209. clean_blob drivers/media/dvb/ttpci/av7110_hw.c
  210. clean_blob drivers/media/dvb/ttpci/av7110.c
  211. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_AV7110'
  212. clean_mk CONFIG_DVB_AV7110 drivers/media/dvb/ttpci/Makefile
  213. # DVB_BUDGET_AV - Budget cards with analog video inputs
  214. clean_blob drivers/media/dvb/ttpci/budget-av.c
  215. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET_AV'
  216. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET_PATCH'
  217. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET'
  218. clean_mk CONFIG_DVB_BUDGET_AV drivers/media/dvb/ttpci/Makefile
  219. clean_mk CONFIG_DVB_BUDGET_PATCH drivers/media/dvb/ttpci/Makefile
  220. clean_mk CONFIG_DVB_BUDGET drivers/media/dvb/ttpci/Makefile
  221. # DVB_BUDGET_CI - Budget cards with onboard CI connector
  222. clean_blob drivers/media/dvb/ttpci/budget-ci.c
  223. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET_CI'
  224. clean_mk CONFIG_DVB_BUDGET_CI drivers/media/dvb/ttpci/Makefile
  225. # dvb/ttusb-budget
  226. # DVB_TTUSB_BUDGET - Technotrend/Hauppauge Nova-USB devices
  227. clean_blob drivers/media/dvb/ttusb-budget/dvb-ttusb-dspbootcode.h
  228. clean_blob drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
  229. clean_kconfig drivers/media/dvb/ttusb-budget/Kconfig 'DVB_TTUSB_BUDGET'
  230. clean_mk CONFIG_DVB_TTUSB_BUDGET drivers/media/dvb/ttusb-budget/Makefile
  231. # video
  232. # USB_PWC - USB Philips Cameras
  233. clean_blob drivers/media/video/pwc/pwc-kiara.c
  234. clean_blob drivers/media/video/pwc/pwc-timon.c
  235. clean_kconfig drivers/media/video/pwc/Kconfig 'USB_PWC'
  236. clean_mk CONFIG_USB_PWC drivers/media/video/Makefile
  237. # VIDEO_CPIA - CPiA Video For Linux
  238. clean_blob drivers/media/video/cpia2/cpia2patch.h
  239. clean_kconfig drivers/media/video/Kconfig 'VIDEO_CPIA'
  240. clean_kconfig drivers/media/video/Kconfig 'VIDEO_CPIA_PP'
  241. clean_kconfig drivers/media/video/Kconfig 'VIDEO_CPIA_USB'
  242. clean_kconfig drivers/media/video/cpia2/Kconfig 'VIDEO_CPIA2'
  243. clean_mk CONFIG_VIDEO_CPIA drivers/media/video/Makefile
  244. clean_mk CONFIG_VIDEO_CPIA_PP drivers/media/video/Makefile
  245. clean_mk CONFIG_VIDEO_CPIA_USB drivers/media/video/Makefile
  246. clean_mk CONFIG_VIDEO_CPIA2 drivers/media/video/Makefile
  247. # USB_DABUSB - DABUSB driver
  248. clean_blob drivers/media/video/dabfirmware.h
  249. clean_kconfig drivers/media/Kconfig 'USB_DABUSB'
  250. clean_mk CONFIG_USB_DABUSB drivers/media/video/Makefile
  251. # video/usbvideo
  252. # USB_IBMCAM - USB IBM (Xirlink) C-it Camera support
  253. clean_blob drivers/media/video/usbvideo/ibmcam.c
  254. clean_kconfig drivers/media/video/usbvideo/Kconfig 'USB_IBMCAM'
  255. clean_mk CONFIG_USB_IBMCAM drivers/media/video/usbvideo/Makefile
  256. # USB_VICAM - USB 3com HomeConnect (aka vicam)
  257. clean_blob drivers/media/video/usbvideo/vicam.c
  258. clean_kconfig drivers/media/video/usbvideo/Kconfig 'USB_VICAM'
  259. clean_mk CONFIG_USB_VICAM drivers/media/video/usbvideo/Makefile
  260. #######################
  261. # Removed net Drivers #
  262. #######################
  263. # ACENIC - Alteon AceNIC/3Com 3C985/NetGear GA620 Gigabit
  264. clean_blob drivers/net/acenic_firmware.h
  265. clean_kconfig drivers/net/Kconfig 'ACENIC'
  266. clean_mk CONFIG_ACENIC drivers/net/Makefile
  267. # ADAPTEC_STARFIRE - Adaptec Starfire/DuraLAN support
  268. # This adds restrictions on top of GPLv2, but after deblobbing,
  269. # nothing copyrightable remains.
  270. clean_blob drivers/net/starfire_firmware.h
  271. clean_kconfig drivers/net/Kconfig 'ADAPTEC_STARFIRE'
  272. clean_mk CONFIG_ADAPTEC_STARFIRE drivers/net/Makefile
  273. # BNX2 - Broadcom NetXtremeII
  274. clean_blob drivers/net/bnx2_fw.h
  275. clean_blob drivers/net/bnx2_fw2.h
  276. clean_kconfig drivers/net/Kconfig 'BNX2'
  277. clean_mk CONFIG_BNX2 drivers/net/Makefile
  278. # CASSINI - Sun Cassini
  279. clean_blob drivers/net/cassini.h
  280. clean_kconfig drivers/net/Kconfig 'CASSINI'
  281. clean_mk CONFIG_CASSINI drivers/net/Makefile
  282. # Digi RightSwitch SE-X
  283. clean_blob drivers/net/dgrs_firmware.c
  284. clean_kconfig drivers/net/Kconfig 'DGRS'
  285. clean_mk CONFIG_DGRS drivers/net/Makefile
  286. # E100 - Intel(R) PRO/100+
  287. clean_blob drivers/net/e100.c
  288. if $have_check; then
  289. sed -i 's:\(\/\*(DEBLOBBED)\*\/\),:\1:' drivers/net/e100.c
  290. else
  291. clean_kconfig drivers/net/Kconfig 'E100'
  292. clean_mk CONFIG_E100 drivers/net/Makefile
  293. fi
  294. # MYRI_SBUS - MyriCOM Gigabit Ethernet
  295. clean_blob drivers/net/myri_code.h
  296. clean_kconfig drivers/net/Kconfig 'MYRI_SBUS'
  297. clean_mk CONFIG_MYRI_SBUS drivers/net/Makefile
  298. # TIGON3 - Broadcom Tigon3
  299. patch --no-backup-if-mismatch -p0 <<\EOF # patches/linux-2.6-tg3-clean.patch
  300. --- drivers/net/tg3.c
  301. +++ drivers/net/tg3.c
  302. @@ -5,14 +5,6 @@
  303. * Copyright (C) 2001, 2002, 2003 Jeff Garzik (jgarzik@pobox.com)
  304. * Copyright (C) 2004 Sun Microsystems Inc.
  305. * Copyright (C) 2005-2007 Broadcom Corporation.
  306. - *
  307. - * Firmware is:
  308. - * Derived from proprietary unpublished source code,
  309. - * Copyright (C) 2000-2003 Broadcom Corporation.
  310. - *
  311. - * Permission is hereby granted for the distribution of this firmware
  312. - * data in hexadecimal or equivalent format, provided this copyright
  313. - * notice is accompanying it.
  314. */
  315. EOF
  316. clean_blob drivers/net/tg3.c -s 9
  317. if $have_check; then
  318. sed -i 's:\(\/\*(DEBLOBBED)\*\/\),:\1:' drivers/net/tg3.c
  319. else
  320. clean_kconfig drivers/net/Kconfig 'TIGON3'
  321. clean_mk CONFIG_TIGON3 drivers/net/Makefile
  322. fi
  323. # TYPHOON - 3cr990 series Typhoon
  324. clean_blob drivers/net/typhoon-firmware.h
  325. clean_kconfig drivers/net/Kconfig 'TYPHOON'
  326. clean_mk CONFIG_TYPHOON drivers/net/Makefile
  327. # appletalk
  328. # COPS - COPS LocalTalk PC
  329. # clean_blob drivers/net/appletalk/cops.c
  330. # clean_blob drivers/net/appletalk/cops.h
  331. clean_blob drivers/net/appletalk/cops_ffdrv.h
  332. clean_blob drivers/net/appletalk/cops_ltdrv.h
  333. clean_kconfig drivers/net/appletalk/Kconfig 'COPS'
  334. clean_mk CONFIG_COPS drivers/net/appletalk/Makefile
  335. # hamradio
  336. # YAM - YAM driver for AX.25
  337. clean_blob drivers/net/hamradio/yam1200.h
  338. clean_blob drivers/net/hamradio/yam9600.h
  339. clean_kconfig drivers/net/hamradio/Kconfig 'YAM'
  340. clean_mk CONFIG_YAM drivers/net/hamradio/Makefile
  341. # pcmcia
  342. # PCMCIA_SMC91C92 - SMC 91Cxx PCMCIA
  343. clean_blob drivers/net/pcmcia/ositech.h
  344. clean_kconfig drivers/net/pcmcia/Kconfig 'PCMCIA_SMC91C92'
  345. clean_mk CONFIG_PCMCIA_SMC91C92 drivers/net/pcmcia/Makefile
  346. # tokenring
  347. # 3C359 - 3Com 3C359 Token Link Velocity XL adapter
  348. # No need to remove these, they don't contain non-Free code.
  349. # clean_blob drivers/net/tokenring/3c359.c
  350. # clean_blob drivers/net/tokenring/3c359.h
  351. # This file is not under the GPL, better remove it all.
  352. clean_file drivers/net/tokenring/3c359_microcode.h
  353. clean_kconfig drivers/net/tokenring/Kconfig '3C359'
  354. clean_mk CONFIG_3C359 drivers/net/tokenring/Makefile
  355. # SMCTR - SMC ISA/MCA adapter
  356. # No need to remove these, they don't contain non-Free code.
  357. # clean_blob drivers/net/tokenring/smctr.c
  358. # clean_blob drivers/net/tokenring/smctr.h
  359. # This file is not under the GPL, better remove it all.
  360. clean_file drivers/net/tokenring/smctr_firmware.h
  361. clean_kconfig drivers/net/tokenring/Kconfig 'SMCTR'
  362. clean_mk CONFIG_SMCTR drivers/net/tokenring/Makefile
  363. # usb
  364. # USB_KAWETH - USB KLSI KL5USB101-based ethernet device support
  365. clean_blob drivers/usb/net/kawethfw.h
  366. clean_kconfig drivers/usb/net/Kconfig 'USB_KAWETH'
  367. clean_mk CONFIG_USB_KAWETH drivers/usb/net/Makefile
  368. ########################
  369. # Removed s390 Drivers #
  370. ########################
  371. # QETH - Gigabit Ethernet device support
  372. clean_blob drivers/s390/net/qeth_mpc.c
  373. clean_kconfig drivers/s390/net/Kconfig 'QETH'
  374. clean_mk CONFIG_QETH drivers/s390/net/Makefile
  375. ########################
  376. # Removed SCSI Drivers #
  377. ########################
  378. # SCSI_QLOGICPTI - PTI Qlogic, ISP Driver
  379. clean_blob drivers/scsi/qlogicpti_asm.c
  380. clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGICPTI'
  381. clean_mk CONFIG_SCSI_QLOGICPTI drivers/scsi/Makefile
  382. # SCSI_ADVANSYS - AdvanSys SCSI
  383. clean_blob drivers/scsi/advansys.c
  384. clean_kconfig drivers/scsi/Kconfig 'SCSI_ADVANSYS'
  385. clean_mk CONFIG_SCSI_ADVANSYS drivers/scsi/Makefile
  386. # SCSI_QLOGIC_1280 - Qlogic QLA 1240/1x80/1x160 SCSI
  387. clean_blob drivers/scsi/ql1280_fw.h
  388. clean_blob drivers/scsi/ql1040_fw.h
  389. clean_blob drivers/scsi/ql12160_fw.h
  390. clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGIC_1280'
  391. clean_mk CONFIG_SCSI_QLOGIC_1280 drivers/scsi/Makefile
  392. #######################
  393. # Removed USB Drivers #
  394. #######################
  395. # misc
  396. # USB_EMI26 - EMI 2|6 USB Audio interface
  397. # No need to remove this, it doesn't contain non-Free code.
  398. # clean_blob drivers/usb/misc/emi26.c
  399. # This file is not under the GPL, better remove it all.
  400. clean_file drivers/usb/misc/emi26_fw.h
  401. clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI26'
  402. clean_mk CONFIG_USB_EMI26 drivers/usb/misc/Makefile
  403. # USB_EMI62 - EMI 6|2m USB Audio interface
  404. # No need to remove this, it doesn't contain non-Free code.
  405. # clean_blob drivers/usb/misc/emi62.c
  406. # This file are probably not under the GPL, better remove them all.
  407. clean_file drivers/usb/misc/emi62_fw_m.h
  408. clean_file drivers/usb/misc/emi62_fw_s.h
  409. clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI62'
  410. clean_mk CONFIG_USB_EMI62 drivers/usb/misc/Makefile
  411. # USB_SISUSBVGA - USB 2.0 SVGA dongle support (Net2280/SiS315)
  412. clean_blob drivers/usb/misc/sisusbvga/sisusb_init.h
  413. clean_kconfig drivers/usb/misc/sisusbvga/Kconfig 'USB_SISUSBVGA'
  414. clean_mk CONFIG_USB_SISUSBVGA drivers/usb/misc/sisusbvga/Makefile
  415. # serial
  416. # USB_SERIAL_KEYSPAN_MPR - USB Keyspan MPR Firmware
  417. clean_file drivers/usb/serial/keyspan_mpr_fw.h
  418. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_MPR'
  419. # USB_SERIAL_KEYSPAN_USA18X - USB Keyspan USA-18X Firmware
  420. clean_file drivers/usb/serial/keyspan_usa18x_fw.h
  421. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA18X'
  422. # USB_SERIAL_KEYSPAN_USA19 - USB Keyspan USA-19 Firmware
  423. clean_file drivers/usb/serial/keyspan_usa19_fw.h
  424. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19'
  425. # USB_SERIAL_KEYSPAN_USA19QI - USB Keyspan USA-19QI Firmware
  426. clean_file drivers/usb/serial/keyspan_usa19qi_fw.h
  427. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QI'
  428. # USB_SERIAL_KEYSPAN_USA19QW - USB Keyspan USA-19QW Firmware
  429. clean_file drivers/usb/serial/keyspan_usa19qw_fw.h
  430. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QW'
  431. # USB_SERIAL_KEYSPAN_USA19W - USB Keyspan USA-19W Firmware
  432. clean_file drivers/usb/serial/keyspan_usa19w_fw.h
  433. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19W'
  434. # USB_SERIAL_KEYSPAN_USA28 - USB Keyspan USA-28 Firmware
  435. clean_file drivers/usb/serial/keyspan_usa28_fw.h
  436. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28'
  437. # USB_SERIAL_KEYSPAN_USA28XA - USB Keyspan USA-28XA Firmware
  438. clean_file drivers/usb/serial/keyspan_usa28xa_fw.h
  439. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XA'
  440. # USB_SERIAL_KEYSPAN_USA28XB - USB Keyspan USA-28XB Firmware
  441. clean_file drivers/usb/serial/keyspan_usa28xb_fw.h
  442. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XB'
  443. # USB_SERIAL_KEYSPAN_USA28X - USB Keyspan USA-28X Firmware
  444. clean_file drivers/usb/serial/keyspan_usa28x_fw.h
  445. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28X'
  446. # USB_SERIAL_KEYSPAN_USA49W - USB Keyspan USA-49W Firmware
  447. clean_file drivers/usb/serial/keyspan_usa49w_fw.h
  448. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49W'
  449. # USB_SERIAL_KEYSPAN_USA49WLC - USB Keyspan USA-49WLC Firmware
  450. clean_file drivers/usb/serial/keyspan_usa49wlc_fw.h
  451. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49WLC'
  452. clean_mk CONFIG_USB_SERIAL_KEYSPAN drivers/usb/serial/Makefile
  453. # USB_SERIAL_EDGEPORT - USB Inside Out Edgeport Serial Driver
  454. clean_file drivers/usb/serial/io_fw_boot.h
  455. clean_file drivers/usb/serial/io_fw_down.h
  456. clean_file drivers/usb/serial/io_fw_down2.h
  457. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT'
  458. clean_mk CONFIG_USB_SERIAL_EDGEPORT drivers/usb/serial/Makefile
  459. # USB_SERIAL_EDGEPORT_TI - USB Inside Out Edgeport Serial Driver (TI devices)
  460. clean_file drivers/usb/serial/io_fw_boot2.h
  461. clean_file drivers/usb/serial/io_fw_down3.h
  462. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT_TI'
  463. clean_mk CONFIG_USB_SERIAL_EDGEPORT_TI drivers/usb/serial/Makefile
  464. # USB_SERIAL_TI - USB TI 3410/5052 Serial Driver
  465. clean_blob drivers/usb/serial/ti_fw_3410.h
  466. clean_blob drivers/usb/serial/ti_fw_5052.h
  467. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_TI'
  468. clean_mk CONFIG_USB_SERIAL_TI drivers/usb/serial/Makefile
  469. # USB_SERIAL_WHITEHEAT - USB ConnectTech WhiteHEAT Serial Driver
  470. clean_blob drivers/usb/serial/whiteheat_fw.h
  471. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_WHITEHEAT'
  472. clean_mk CONFIG_USB_SERIAL_WHITEHEAT drivers/usb/serial/Makefile
  473. #########################
  474. # Removed video Drivers #
  475. #########################
  476. # FB_ASILIANT - Asiliant (Chips) 69000 display support
  477. clean_blob drivers/video/asiliantfb.c
  478. clean_kconfig drivers/video/Kconfig 'FB_ASILIANT'
  479. clean_mk CONFIG_FB_ASILIANT drivers/video/Makefile
  480. # FB_CT65550 - Chips 65550 display support
  481. clean_blob drivers/video/chipsfb.c
  482. clean_kconfig drivers/video/Kconfig 'FB_CT65550'
  483. clean_mk CONFIG_FB_CT65550 drivers/video/Makefile
  484. #########################
  485. # Removed Sound Drivers #
  486. #########################
  487. # SND_CS46XX - Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x
  488. clean_blob sound/pci/cs46xx/cs46xx_image.h
  489. # Blobs containing comments, not recognized by deblob-check
  490. clean_file sound/pci/cs46xx/imgs/cwc4630.h
  491. clean_file sound/pci/cs46xx/imgs/cwcasync.h
  492. clean_file sound/pci/cs46xx/imgs/cwcdma.h
  493. clean_file sound/pci/cs46xx/imgs/cwcsnoop.h
  494. clean_kconfig sound/pci/Kconfig 'SND_CS46XX'
  495. # sed -i '/cs46xx\/ \\/d' sound/pci/Makefile
  496. # SOUND_FUSION - Cirrus Logic (Sound Fusion) CS461x
  497. clean_file sound/oss/cs461x_image.h
  498. # no Kconfig?!?
  499. # SND_KORG1212 - Korg 1212 IO
  500. clean_ifdef sound/pci/korg1212/korg1212.c FIRMWARE_IN_THE_KERNEL
  501. clean_blob sound/pci/korg1212/korg1212-firmware.h
  502. # SND_MAESTRO3 - ESS Allegro/Maestro3
  503. clean_ifdef sound/pci/maestro3.c FIRMWARE_IN_THE_KERNEL
  504. # SND_YMFPCI - Yamaha YMF724/740/744/754
  505. clean_blob sound/pci/ymfpci/ymfpci_image.h
  506. clean_ifdef sound/pci/ymfpci/ymfpci_main.c FIRMWARE_IN_THE_KERNEL
  507. # SND_SB16_CSP_FIRMWARE_IN_KERNEL - SB16 Advanced Signal Processor
  508. clean_blob sound/isa/sb/sb16_csp_codecs.h
  509. clean_ifdef sound/isa/sb/sb16_csp.c FIRMWARE_IN_THE_KERNEL
  510. # SND_WAVEFRONT_FIRMWARE_IN_KERNEL
  511. # Most of this file is not matched by deblob-check because of WAIT_IDLE.
  512. # Just remove it.
  513. clean_file sound/isa/wavefront/yss225.c
  514. clean_ifdef sound/isa/wavefront/wavefront_fx.c FIRMWARE_IN_THE_KERNEL
  515. exit 0