1
0

deblob-2.6.26 22 KB

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