deblob-2.6.25 22 KB

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