deblob-2.6.25 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  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=3
  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/dvb-usb
  191. clean_blob drivers/media/dvb/dvb-usb/af9005-script.h
  192. clean_kconfig drivers/media/dvb/dvb-usb/Kconfig 'DVB_USB_AF9005'
  193. clean_mk CONFIG_DVB_USB_AF9005 drivers/media/dvb/dvb-usb/Makefile
  194. # dvb/frontends
  195. # DVB_TDA10021 - Philips TDA10021 based
  196. clean_blob drivers/media/dvb/frontends/tda10021.c
  197. clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_TDA10021'
  198. clean_mk CONFIG_DVB_TDA10021 drivers/media/dvb/frontends/Makefile
  199. # DVB_TDA8083 - Philips TDA8083 based
  200. clean_blob drivers/media/dvb/frontends/tda8083.c
  201. clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_TDA8083'
  202. clean_mk CONFIG_DVB_TDA8083 drivers/media/dvb/frontends/Makefile
  203. # DVB_VES1820 - VLSI VES1820 based
  204. clean_blob drivers/media/dvb/frontends/ves1820.c
  205. clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_VES1820'
  206. clean_mk CONFIG_DVB_VES1820 drivers/media/dvb/frontends/Makefile
  207. # DVB_VES1X93 - VLSI VES1893 or VES1993 based
  208. clean_blob drivers/media/dvb/frontends/ves1x93.c
  209. clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_VES1X93'
  210. clean_mk CONFIG_DVB_VES1X93 drivers/media/dvb/frontends/Makefile
  211. # dvb/ttpci
  212. # DVB_AV7110 - AV7110 cards
  213. clean_blob drivers/media/dvb/ttpci/av7110_hw.c
  214. clean_blob drivers/media/dvb/ttpci/av7110.c
  215. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_AV7110'
  216. clean_mk CONFIG_DVB_AV7110 drivers/media/dvb/ttpci/Makefile
  217. # DVB_BUDGET_AV - Budget cards with analog video inputs
  218. clean_blob drivers/media/dvb/ttpci/budget-av.c
  219. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET_AV'
  220. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET_PATCH'
  221. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET'
  222. clean_mk CONFIG_DVB_BUDGET_AV drivers/media/dvb/ttpci/Makefile
  223. clean_mk CONFIG_DVB_BUDGET_PATCH drivers/media/dvb/ttpci/Makefile
  224. clean_mk CONFIG_DVB_BUDGET drivers/media/dvb/ttpci/Makefile
  225. # DVB_BUDGET_CI - Budget cards with onboard CI connector
  226. clean_blob drivers/media/dvb/ttpci/budget-ci.c
  227. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET_CI'
  228. clean_mk CONFIG_DVB_BUDGET_CI drivers/media/dvb/ttpci/Makefile
  229. # dvb/ttusb-budget
  230. # DVB_TTUSB_BUDGET - Technotrend/Hauppauge Nova-USB devices
  231. clean_blob drivers/media/dvb/ttusb-budget/dvb-ttusb-dspbootcode.h
  232. clean_blob drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
  233. clean_kconfig drivers/media/dvb/ttusb-budget/Kconfig 'DVB_TTUSB_BUDGET'
  234. clean_mk CONFIG_DVB_TTUSB_BUDGET drivers/media/dvb/ttusb-budget/Makefile
  235. # video
  236. # USB_PWC - USB Philips Cameras
  237. clean_blob drivers/media/video/pwc/pwc-kiara.c
  238. clean_blob drivers/media/video/pwc/pwc-timon.c
  239. clean_kconfig drivers/media/video/pwc/Kconfig 'USB_PWC'
  240. clean_mk CONFIG_USB_PWC drivers/media/video/Makefile
  241. # VIDEO_CPIA - CPiA Video For Linux
  242. clean_blob drivers/media/video/cpia2/cpia2patch.h
  243. clean_kconfig drivers/media/video/Kconfig 'VIDEO_CPIA'
  244. clean_kconfig drivers/media/video/Kconfig 'VIDEO_CPIA_PP'
  245. clean_kconfig drivers/media/video/Kconfig 'VIDEO_CPIA_USB'
  246. clean_kconfig drivers/media/video/cpia2/Kconfig 'VIDEO_CPIA2'
  247. clean_mk CONFIG_VIDEO_CPIA drivers/media/video/Makefile
  248. clean_mk CONFIG_VIDEO_CPIA_PP drivers/media/video/Makefile
  249. clean_mk CONFIG_VIDEO_CPIA_USB drivers/media/video/Makefile
  250. clean_mk CONFIG_VIDEO_CPIA2 drivers/media/video/Makefile
  251. # USB_DABUSB - DABUSB driver
  252. clean_blob drivers/media/video/dabfirmware.h
  253. clean_kconfig drivers/media/Kconfig 'USB_DABUSB'
  254. clean_mk CONFIG_USB_DABUSB drivers/media/video/Makefile
  255. # video/usbvideo
  256. # USB_IBMCAM - USB IBM (Xirlink) C-it Camera support
  257. clean_blob drivers/media/video/usbvideo/ibmcam.c
  258. clean_kconfig drivers/media/video/usbvideo/Kconfig 'USB_IBMCAM'
  259. clean_mk CONFIG_USB_IBMCAM drivers/media/video/usbvideo/Makefile
  260. # USB_VICAM - USB 3com HomeConnect (aka vicam)
  261. clean_blob drivers/media/video/usbvideo/vicam.c
  262. clean_kconfig drivers/media/video/usbvideo/Kconfig 'USB_VICAM'
  263. clean_mk CONFIG_USB_VICAM drivers/media/video/usbvideo/Makefile
  264. #######################
  265. # Removed net Drivers #
  266. #######################
  267. # ACENIC - Alteon AceNIC/3Com 3C985/NetGear GA620 Gigabit
  268. clean_blob drivers/net/acenic_firmware.h
  269. clean_kconfig drivers/net/Kconfig 'ACENIC'
  270. clean_mk CONFIG_ACENIC drivers/net/Makefile
  271. # ADAPTEC_STARFIRE - Adaptec Starfire/DuraLAN support
  272. # This adds restrictions on top of GPLv2, but after deblobbing,
  273. # nothing copyrightable remains.
  274. clean_blob drivers/net/starfire_firmware.h
  275. clean_kconfig drivers/net/Kconfig 'ADAPTEC_STARFIRE'
  276. clean_mk CONFIG_ADAPTEC_STARFIRE drivers/net/Makefile
  277. # BNX2 - Broadcom NetXtremeII
  278. clean_blob drivers/net/bnx2_fw.h
  279. clean_blob drivers/net/bnx2_fw2.h
  280. clean_kconfig drivers/net/Kconfig 'BNX2'
  281. clean_mk CONFIG_BNX2 drivers/net/Makefile
  282. clean_blob drivers/net/bnx2x_init_values.h
  283. clean_kconfig drivers/net/Kconfig 'BNX2X'
  284. clean_mk CONFIG_BNX2X drivers/net/Makefile
  285. # CASSINI - Sun Cassini
  286. clean_blob drivers/net/cassini.h
  287. clean_kconfig drivers/net/Kconfig 'CASSINI'
  288. clean_mk CONFIG_CASSINI drivers/net/Makefile
  289. # E100 - Intel(R) PRO/100+
  290. clean_blob drivers/net/e100.c
  291. if $have_check; then
  292. sed -i 's:\(\/\*(DEBLOBBED)\*\/\),:\1:' drivers/net/e100.c
  293. else
  294. clean_kconfig drivers/net/Kconfig 'E100'
  295. clean_mk CONFIG_E100 drivers/net/Makefile
  296. fi
  297. # MYRI_SBUS - MyriCOM Gigabit Ethernet
  298. clean_blob drivers/net/myri_code.h
  299. clean_kconfig drivers/net/Kconfig 'MYRI_SBUS'
  300. clean_mk CONFIG_MYRI_SBUS drivers/net/Makefile
  301. # TEHUTI - Tehuti Networks 10G Ethernet
  302. clean_blob drivers/net/tehuti_fw.h
  303. clean_kconfig drivers/net/Kconfig 'TEHUTI'
  304. clean_mk CONFIG_TEHUTI drivers/net/Makefile
  305. # TIGON3 - Broadcom Tigon3
  306. patch --no-backup-if-mismatch -p0 <<\EOF # patches/linux-2.6-tg3-clean.patch
  307. --- drivers/net/tg3.c
  308. +++ drivers/net/tg3.c
  309. @@ -5,14 +5,6 @@
  310. * Copyright (C) 2001, 2002, 2003 Jeff Garzik (jgarzik@pobox.com)
  311. * Copyright (C) 2004 Sun Microsystems Inc.
  312. * Copyright (C) 2005-2007 Broadcom Corporation.
  313. - *
  314. - * Firmware is:
  315. - * Derived from proprietary unpublished source code,
  316. - * Copyright (C) 2000-2003 Broadcom Corporation.
  317. - *
  318. - * Permission is hereby granted for the distribution of this firmware
  319. - * data in hexadecimal or equivalent format, provided this copyright
  320. - * notice is accompanying it.
  321. */
  322. EOF
  323. clean_blob drivers/net/tg3.c -s 9
  324. if $have_check; then
  325. sed -i 's:\(\/\*(DEBLOBBED)\*\/\),:\1:' drivers/net/tg3.c
  326. else
  327. clean_kconfig drivers/net/Kconfig 'TIGON3'
  328. clean_mk CONFIG_TIGON3 drivers/net/Makefile
  329. fi
  330. # TYPHOON - 3cr990 series Typhoon
  331. clean_blob drivers/net/typhoon-firmware.h
  332. clean_kconfig drivers/net/Kconfig 'TYPHOON'
  333. clean_mk CONFIG_TYPHOON drivers/net/Makefile
  334. # appletalk
  335. # COPS - COPS LocalTalk PC
  336. # clean_blob drivers/net/appletalk/cops.c
  337. # clean_blob drivers/net/appletalk/cops.h
  338. clean_blob drivers/net/appletalk/cops_ffdrv.h
  339. clean_blob drivers/net/appletalk/cops_ltdrv.h
  340. clean_kconfig drivers/net/appletalk/Kconfig 'COPS'
  341. clean_mk CONFIG_COPS drivers/net/appletalk/Makefile
  342. # hamradio
  343. # YAM - YAM driver for AX.25
  344. clean_blob drivers/net/hamradio/yam1200.h
  345. clean_blob drivers/net/hamradio/yam9600.h
  346. clean_kconfig drivers/net/hamradio/Kconfig 'YAM'
  347. clean_mk CONFIG_YAM drivers/net/hamradio/Makefile
  348. # pcmcia
  349. # PCMCIA_SMC91C92 - SMC 91Cxx PCMCIA
  350. clean_blob drivers/net/pcmcia/ositech.h
  351. clean_kconfig drivers/net/pcmcia/Kconfig 'PCMCIA_SMC91C92'
  352. clean_mk CONFIG_PCMCIA_SMC91C92 drivers/net/pcmcia/Makefile
  353. # tokenring
  354. # 3C359 - 3Com 3C359 Token Link Velocity XL adapter
  355. # No need to remove these, they don't contain non-Free code.
  356. # clean_blob drivers/net/tokenring/3c359.c
  357. # clean_blob drivers/net/tokenring/3c359.h
  358. # This file is not under the GPL, better remove it all.
  359. clean_file drivers/net/tokenring/3c359_microcode.h
  360. clean_kconfig drivers/net/tokenring/Kconfig '3C359'
  361. clean_mk CONFIG_3C359 drivers/net/tokenring/Makefile
  362. # SMCTR - SMC ISA/MCA adapter
  363. # No need to remove these, they don't contain non-Free code.
  364. # clean_blob drivers/net/tokenring/smctr.c
  365. # clean_blob drivers/net/tokenring/smctr.h
  366. # This file is not under the GPL, better remove it all.
  367. clean_file drivers/net/tokenring/smctr_firmware.h
  368. clean_kconfig drivers/net/tokenring/Kconfig 'SMCTR'
  369. clean_mk CONFIG_SMCTR drivers/net/tokenring/Makefile
  370. # usb
  371. # USB_KAWETH - USB KLSI KL5USB101-based ethernet device support
  372. clean_blob drivers/net/usb/kawethfw.h
  373. clean_kconfig drivers/net/usb/Kconfig 'USB_KAWETH'
  374. clean_mk CONFIG_USB_KAWETH drivers/net/usb/Makefile
  375. ########################
  376. # Removed s390 Drivers #
  377. ########################
  378. # QETH - Gigabit Ethernet device support
  379. clean_blob drivers/s390/net/qeth_mpc.c
  380. clean_kconfig drivers/s390/net/Kconfig 'QETH'
  381. clean_mk CONFIG_QETH drivers/s390/net/Makefile
  382. ########################
  383. # Removed SCSI Drivers #
  384. ########################
  385. # SCSI_QLOGICPTI - PTI Qlogic, ISP Driver
  386. clean_blob drivers/scsi/qlogicpti_asm.c
  387. clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGICPTI'
  388. clean_mk CONFIG_SCSI_QLOGICPTI drivers/scsi/Makefile
  389. # SCSI_ADVANSYS - AdvanSys SCSI
  390. clean_blob drivers/scsi/advansys.c
  391. clean_kconfig drivers/scsi/Kconfig 'SCSI_ADVANSYS'
  392. clean_mk CONFIG_SCSI_ADVANSYS drivers/scsi/Makefile
  393. # SCSI_QLOGIC_1280 - Qlogic QLA 1240/1x80/1x160 SCSI
  394. clean_blob drivers/scsi/ql1280_fw.h
  395. clean_blob drivers/scsi/ql1040_fw.h
  396. clean_blob drivers/scsi/ql12160_fw.h
  397. clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGIC_1280'
  398. clean_mk CONFIG_SCSI_QLOGIC_1280 drivers/scsi/Makefile
  399. #######################
  400. # Removed USB Drivers #
  401. #######################
  402. # misc
  403. # USB_EMI26 - EMI 2|6 USB Audio interface
  404. # No need to remove this, it doesn't contain non-Free code.
  405. # clean_blob drivers/usb/misc/emi26.c
  406. # This file is not under the GPL, better remove it all.
  407. clean_file drivers/usb/misc/emi26_fw.h
  408. clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI26'
  409. clean_mk CONFIG_USB_EMI26 drivers/usb/misc/Makefile
  410. # USB_EMI62 - EMI 6|2m USB Audio interface
  411. # No need to remove this, it doesn't contain non-Free code.
  412. # clean_blob drivers/usb/misc/emi62.c
  413. # This file are probably not under the GPL, better remove them all.
  414. clean_file drivers/usb/misc/emi62_fw_m.h
  415. clean_file drivers/usb/misc/emi62_fw_s.h
  416. clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI62'
  417. clean_mk CONFIG_USB_EMI62 drivers/usb/misc/Makefile
  418. # USB_SISUSBVGA - USB 2.0 SVGA dongle support (Net2280/SiS315)
  419. clean_blob drivers/usb/misc/sisusbvga/sisusb_init.h
  420. clean_kconfig drivers/usb/misc/sisusbvga/Kconfig 'USB_SISUSBVGA'
  421. clean_mk CONFIG_USB_SISUSBVGA drivers/usb/misc/sisusbvga/Makefile
  422. # serial
  423. # USB_SERIAL_KEYSPAN_MPR - USB Keyspan MPR Firmware
  424. clean_file drivers/usb/serial/keyspan_mpr_fw.h
  425. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_MPR'
  426. # USB_SERIAL_KEYSPAN_USA18X - USB Keyspan USA-18X Firmware
  427. clean_file drivers/usb/serial/keyspan_usa18x_fw.h
  428. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA18X'
  429. # USB_SERIAL_KEYSPAN_USA19 - USB Keyspan USA-19 Firmware
  430. clean_file drivers/usb/serial/keyspan_usa19_fw.h
  431. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19'
  432. # USB_SERIAL_KEYSPAN_USA19QI - USB Keyspan USA-19QI Firmware
  433. clean_file drivers/usb/serial/keyspan_usa19qi_fw.h
  434. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QI'
  435. # USB_SERIAL_KEYSPAN_USA19QW - USB Keyspan USA-19QW Firmware
  436. clean_file drivers/usb/serial/keyspan_usa19qw_fw.h
  437. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QW'
  438. # USB_SERIAL_KEYSPAN_USA19W - USB Keyspan USA-19W Firmware
  439. clean_file drivers/usb/serial/keyspan_usa19w_fw.h
  440. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19W'
  441. # USB_SERIAL_KEYSPAN_USA28 - USB Keyspan USA-28 Firmware
  442. clean_file drivers/usb/serial/keyspan_usa28_fw.h
  443. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28'
  444. # USB_SERIAL_KEYSPAN_USA28XA - USB Keyspan USA-28XA Firmware
  445. clean_file drivers/usb/serial/keyspan_usa28xa_fw.h
  446. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XA'
  447. # USB_SERIAL_KEYSPAN_USA28XB - USB Keyspan USA-28XB Firmware
  448. clean_file drivers/usb/serial/keyspan_usa28xb_fw.h
  449. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XB'
  450. # USB_SERIAL_KEYSPAN_USA28X - USB Keyspan USA-28X Firmware
  451. clean_file drivers/usb/serial/keyspan_usa28x_fw.h
  452. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28X'
  453. # USB_SERIAL_KEYSPAN_USA49W - USB Keyspan USA-49W Firmware
  454. clean_file drivers/usb/serial/keyspan_usa49w_fw.h
  455. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49W'
  456. # USB_SERIAL_KEYSPAN_USA49WLC - USB Keyspan USA-49WLC Firmware
  457. clean_file drivers/usb/serial/keyspan_usa49wlc_fw.h
  458. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49WLC'
  459. clean_mk CONFIG_USB_SERIAL_KEYSPAN drivers/usb/serial/Makefile
  460. # USB_SERIAL_EDGEPORT - USB Inside Out Edgeport Serial Driver
  461. clean_file drivers/usb/serial/io_fw_boot.h
  462. clean_file drivers/usb/serial/io_fw_down.h
  463. clean_file drivers/usb/serial/io_fw_down2.h
  464. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT'
  465. clean_mk CONFIG_USB_SERIAL_EDGEPORT drivers/usb/serial/Makefile
  466. # USB_SERIAL_EDGEPORT_TI - USB Inside Out Edgeport Serial Driver (TI devices)
  467. clean_file drivers/usb/serial/io_fw_boot2.h
  468. clean_file drivers/usb/serial/io_fw_down3.h
  469. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT_TI'
  470. clean_mk CONFIG_USB_SERIAL_EDGEPORT_TI drivers/usb/serial/Makefile
  471. # USB_SERIAL_TI - USB TI 3410/5052 Serial Driver
  472. clean_blob drivers/usb/serial/ti_fw_3410.h
  473. clean_blob drivers/usb/serial/ti_fw_5052.h
  474. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_TI'
  475. clean_mk CONFIG_USB_SERIAL_TI drivers/usb/serial/Makefile
  476. # USB_SERIAL_WHITEHEAT - USB ConnectTech WhiteHEAT Serial Driver
  477. clean_blob drivers/usb/serial/whiteheat_fw.h
  478. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_WHITEHEAT'
  479. clean_mk CONFIG_USB_SERIAL_WHITEHEAT drivers/usb/serial/Makefile
  480. #########################
  481. # Removed video Drivers #
  482. #########################
  483. # FB_ASILIANT - Asiliant (Chips) 69000 display support
  484. clean_blob drivers/video/asiliantfb.c
  485. clean_kconfig drivers/video/Kconfig 'FB_ASILIANT'
  486. clean_mk CONFIG_FB_ASILIANT drivers/video/Makefile
  487. # FB_CT65550 - Chips 65550 display support
  488. clean_blob drivers/video/chipsfb.c
  489. clean_kconfig drivers/video/Kconfig 'FB_CT65550'
  490. clean_mk CONFIG_FB_CT65550 drivers/video/Makefile
  491. #########################
  492. # Removed Sound Drivers #
  493. #########################
  494. # SND_CS46XX - Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x
  495. clean_blob sound/pci/cs46xx/cs46xx_image.h
  496. # Blobs containing comments, not recognized by deblob-check
  497. clean_file sound/pci/cs46xx/imgs/cwc4630.h
  498. clean_file sound/pci/cs46xx/imgs/cwcasync.h
  499. clean_file sound/pci/cs46xx/imgs/cwcdma.h
  500. clean_file sound/pci/cs46xx/imgs/cwcsnoop.h
  501. clean_kconfig sound/pci/Kconfig 'SND_CS46XX'
  502. # sed -i '/cs46xx\/ \\/d' sound/pci/Makefile
  503. # SND_KORG1212 - Korg 1212 IO
  504. clean_ifdef sound/pci/korg1212/korg1212.c CONFIG_SND_KORG1212_FIRMWARE_IN_KERNEL
  505. clean_blob sound/pci/korg1212/korg1212-firmware.h
  506. # SND_MAESTRO3 - ESS Allegro/Maestro3
  507. clean_ifdef sound/pci/maestro3.c CONFIG_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. # SND_SB16_CSP_FIRMWARE_IN_KERNEL - SB16 Advanced Signal Processor
  512. clean_blob sound/isa/sb/sb16_csp_codecs.h
  513. clean_kconfig sound/isa/Kconfig SND_SB16_CSP_FIRMWARE_IN_KERNEL
  514. # SND_WAVEFRONT_FIRMWARE_IN_KERNEL
  515. # Most of this file is not matched by deblob-check because of WAIT_IDLE.
  516. # Just remove it.
  517. clean_file sound/isa/wavefront/yss225.c
  518. clean_kconfig sound/isa/Kconfig SND_WAVEFRONT_FIRMWARE_IN_KERNEL
  519. exit 0