1
0

deblob-2.6.23 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  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.23 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. # CASSINI - Sun Cassini
  283. clean_blob drivers/net/cassini.h
  284. clean_kconfig drivers/net/Kconfig 'CASSINI'
  285. clean_mk CONFIG_CASSINI drivers/net/Makefile
  286. # Digi RightSwitch SE-X
  287. clean_blob drivers/net/dgrs_firmware.c
  288. clean_kconfig drivers/net/Kconfig 'DGRS'
  289. clean_mk CONFIG_DGRS drivers/net/Makefile
  290. # E100 - Intel(R) PRO/100+
  291. clean_blob drivers/net/e100.c
  292. if $have_check; then
  293. sed -i 's:\(\/\*(DEBLOBBED)\*\/\),:\1:' drivers/net/e100.c
  294. else
  295. clean_kconfig drivers/net/Kconfig 'E100'
  296. clean_mk CONFIG_E100 drivers/net/Makefile
  297. fi
  298. # MYRI_SBUS - MyriCOM Gigabit Ethernet
  299. clean_blob drivers/net/myri_code.h
  300. clean_kconfig drivers/net/Kconfig 'MYRI_SBUS'
  301. clean_mk CONFIG_MYRI_SBUS drivers/net/Makefile
  302. # TIGON3 - Broadcom Tigon3
  303. patch --no-backup-if-mismatch -p0 <<\EOF # patches/linux-2.6-tg3-clean.patch
  304. --- drivers/net/tg3.c
  305. +++ drivers/net/tg3.c
  306. @@ -5,14 +5,6 @@
  307. * Copyright (C) 2001, 2002, 2003 Jeff Garzik (jgarzik@pobox.com)
  308. * Copyright (C) 2004 Sun Microsystems Inc.
  309. * Copyright (C) 2005-2007 Broadcom Corporation.
  310. - *
  311. - * Firmware is:
  312. - * Derived from proprietary unpublished source code,
  313. - * Copyright (C) 2000-2003 Broadcom Corporation.
  314. - *
  315. - * Permission is hereby granted for the distribution of this firmware
  316. - * data in hexadecimal or equivalent format, provided this copyright
  317. - * notice is accompanying it.
  318. */
  319. EOF
  320. clean_blob drivers/net/tg3.c -s 9
  321. if $have_check; then
  322. sed -i 's:\(\/\*(DEBLOBBED)\*\/\),:\1:' drivers/net/tg3.c
  323. else
  324. clean_kconfig drivers/net/Kconfig 'TIGON3'
  325. clean_mk CONFIG_TIGON3 drivers/net/Makefile
  326. fi
  327. # TYPHOON - 3cr990 series Typhoon
  328. clean_blob drivers/net/typhoon-firmware.h
  329. clean_kconfig drivers/net/Kconfig 'TYPHOON'
  330. clean_mk CONFIG_TYPHOON drivers/net/Makefile
  331. # appletalk
  332. # COPS - COPS LocalTalk PC
  333. # clean_blob drivers/net/appletalk/cops.c
  334. # clean_blob drivers/net/appletalk/cops.h
  335. clean_blob drivers/net/appletalk/cops_ffdrv.h
  336. clean_blob drivers/net/appletalk/cops_ltdrv.h
  337. clean_kconfig drivers/net/appletalk/Kconfig 'COPS'
  338. clean_mk CONFIG_COPS drivers/net/appletalk/Makefile
  339. # hamradio
  340. # YAM - YAM driver for AX.25
  341. clean_blob drivers/net/hamradio/yam1200.h
  342. clean_blob drivers/net/hamradio/yam9600.h
  343. clean_kconfig drivers/net/hamradio/Kconfig 'YAM'
  344. clean_mk CONFIG_YAM drivers/net/hamradio/Makefile
  345. # pcmcia
  346. # PCMCIA_SMC91C92 - SMC 91Cxx PCMCIA
  347. clean_blob drivers/net/pcmcia/ositech.h
  348. clean_kconfig drivers/net/pcmcia/Kconfig 'PCMCIA_SMC91C92'
  349. clean_mk CONFIG_PCMCIA_SMC91C92 drivers/net/pcmcia/Makefile
  350. # tokenring
  351. # 3C359 - 3Com 3C359 Token Link Velocity XL adapter
  352. # No need to remove these, they don't contain non-Free code.
  353. # clean_blob drivers/net/tokenring/3c359.c
  354. # clean_blob drivers/net/tokenring/3c359.h
  355. # This file is not under the GPL, better remove it all.
  356. clean_file drivers/net/tokenring/3c359_microcode.h
  357. clean_kconfig drivers/net/tokenring/Kconfig '3C359'
  358. clean_mk CONFIG_3C359 drivers/net/tokenring/Makefile
  359. # SMCTR - SMC ISA/MCA adapter
  360. # No need to remove these, they don't contain non-Free code.
  361. # clean_blob drivers/net/tokenring/smctr.c
  362. # clean_blob drivers/net/tokenring/smctr.h
  363. # This file is not under the GPL, better remove it all.
  364. clean_file drivers/net/tokenring/smctr_firmware.h
  365. clean_kconfig drivers/net/tokenring/Kconfig 'SMCTR'
  366. clean_mk CONFIG_SMCTR drivers/net/tokenring/Makefile
  367. # usb
  368. # USB_KAWETH - USB KLSI KL5USB101-based ethernet device support
  369. clean_blob drivers/net/usb/kawethfw.h
  370. clean_kconfig drivers/net/usb/Kconfig 'USB_KAWETH'
  371. clean_mk CONFIG_USB_KAWETH drivers/net/usb/Makefile
  372. ########################
  373. # Removed s390 Drivers #
  374. ########################
  375. # QETH - Gigabit Ethernet device support
  376. clean_blob drivers/s390/net/qeth_mpc.c
  377. clean_kconfig drivers/s390/net/Kconfig 'QETH'
  378. clean_mk CONFIG_QETH drivers/s390/net/Makefile
  379. ########################
  380. # Removed SCSI Drivers #
  381. ########################
  382. # SCSI_QLOGICPTI - PTI Qlogic, ISP Driver
  383. clean_blob drivers/scsi/qlogicpti_asm.c
  384. clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGICPTI'
  385. clean_mk CONFIG_SCSI_QLOGICPTI drivers/scsi/Makefile
  386. # SCSI_ADVANSYS - AdvanSys SCSI
  387. clean_blob drivers/scsi/advansys.c
  388. clean_kconfig drivers/scsi/Kconfig 'SCSI_ADVANSYS'
  389. clean_mk CONFIG_SCSI_ADVANSYS drivers/scsi/Makefile
  390. # SCSI_QLOGIC_1280 - Qlogic QLA 1240/1x80/1x160 SCSI
  391. clean_blob drivers/scsi/ql1280_fw.h
  392. clean_blob drivers/scsi/ql1040_fw.h
  393. clean_blob drivers/scsi/ql12160_fw.h
  394. clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGIC_1280'
  395. clean_mk CONFIG_SCSI_QLOGIC_1280 drivers/scsi/Makefile
  396. #######################
  397. # Removed USB Drivers #
  398. #######################
  399. # misc
  400. # USB_EMI26 - EMI 2|6 USB Audio interface
  401. # No need to remove this, it doesn't contain non-Free code.
  402. # clean_blob drivers/usb/misc/emi26.c
  403. # This file is not under the GPL, better remove it all.
  404. clean_file drivers/usb/misc/emi26_fw.h
  405. clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI26'
  406. clean_mk CONFIG_USB_EMI26 drivers/usb/misc/Makefile
  407. # USB_EMI62 - EMI 6|2m USB Audio interface
  408. # No need to remove this, it doesn't contain non-Free code.
  409. # clean_blob drivers/usb/misc/emi62.c
  410. # This file are probably not under the GPL, better remove them all.
  411. clean_file drivers/usb/misc/emi62_fw_m.h
  412. clean_file drivers/usb/misc/emi62_fw_s.h
  413. clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI62'
  414. clean_mk CONFIG_USB_EMI62 drivers/usb/misc/Makefile
  415. # USB_SISUSBVGA - USB 2.0 SVGA dongle support (Net2280/SiS315)
  416. clean_blob drivers/usb/misc/sisusbvga/sisusb_init.h
  417. clean_kconfig drivers/usb/misc/sisusbvga/Kconfig 'USB_SISUSBVGA'
  418. clean_mk CONFIG_USB_SISUSBVGA drivers/usb/misc/sisusbvga/Makefile
  419. # serial
  420. # USB_SERIAL_KEYSPAN_MPR - USB Keyspan MPR Firmware
  421. clean_file drivers/usb/serial/keyspan_mpr_fw.h
  422. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_MPR'
  423. # USB_SERIAL_KEYSPAN_USA18X - USB Keyspan USA-18X Firmware
  424. clean_file drivers/usb/serial/keyspan_usa18x_fw.h
  425. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA18X'
  426. # USB_SERIAL_KEYSPAN_USA19 - USB Keyspan USA-19 Firmware
  427. clean_file drivers/usb/serial/keyspan_usa19_fw.h
  428. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19'
  429. # USB_SERIAL_KEYSPAN_USA19QI - USB Keyspan USA-19QI Firmware
  430. clean_file drivers/usb/serial/keyspan_usa19qi_fw.h
  431. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QI'
  432. # USB_SERIAL_KEYSPAN_USA19QW - USB Keyspan USA-19QW Firmware
  433. clean_file drivers/usb/serial/keyspan_usa19qw_fw.h
  434. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QW'
  435. # USB_SERIAL_KEYSPAN_USA19W - USB Keyspan USA-19W Firmware
  436. clean_file drivers/usb/serial/keyspan_usa19w_fw.h
  437. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19W'
  438. # USB_SERIAL_KEYSPAN_USA28 - USB Keyspan USA-28 Firmware
  439. clean_file drivers/usb/serial/keyspan_usa28_fw.h
  440. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28'
  441. # USB_SERIAL_KEYSPAN_USA28XA - USB Keyspan USA-28XA Firmware
  442. clean_file drivers/usb/serial/keyspan_usa28xa_fw.h
  443. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XA'
  444. # USB_SERIAL_KEYSPAN_USA28XB - USB Keyspan USA-28XB Firmware
  445. clean_file drivers/usb/serial/keyspan_usa28xb_fw.h
  446. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XB'
  447. # USB_SERIAL_KEYSPAN_USA28X - USB Keyspan USA-28X Firmware
  448. clean_file drivers/usb/serial/keyspan_usa28x_fw.h
  449. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28X'
  450. # USB_SERIAL_KEYSPAN_USA49W - USB Keyspan USA-49W Firmware
  451. clean_file drivers/usb/serial/keyspan_usa49w_fw.h
  452. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49W'
  453. # USB_SERIAL_KEYSPAN_USA49WLC - USB Keyspan USA-49WLC Firmware
  454. clean_file drivers/usb/serial/keyspan_usa49wlc_fw.h
  455. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49WLC'
  456. clean_mk CONFIG_USB_SERIAL_KEYSPAN drivers/usb/serial/Makefile
  457. # USB_SERIAL_EDGEPORT - USB Inside Out Edgeport Serial Driver
  458. clean_file drivers/usb/serial/io_fw_boot.h
  459. clean_file drivers/usb/serial/io_fw_down.h
  460. clean_file drivers/usb/serial/io_fw_down2.h
  461. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT'
  462. clean_mk CONFIG_USB_SERIAL_EDGEPORT drivers/usb/serial/Makefile
  463. # USB_SERIAL_EDGEPORT_TI - USB Inside Out Edgeport Serial Driver (TI devices)
  464. clean_file drivers/usb/serial/io_fw_boot2.h
  465. clean_file drivers/usb/serial/io_fw_down3.h
  466. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT_TI'
  467. clean_mk CONFIG_USB_SERIAL_EDGEPORT_TI drivers/usb/serial/Makefile
  468. # USB_SERIAL_TI - USB TI 3410/5052 Serial Driver
  469. clean_blob drivers/usb/serial/ti_fw_3410.h
  470. clean_blob drivers/usb/serial/ti_fw_5052.h
  471. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_TI'
  472. clean_mk CONFIG_USB_SERIAL_TI drivers/usb/serial/Makefile
  473. # USB_SERIAL_WHITEHEAT - USB ConnectTech WhiteHEAT Serial Driver
  474. clean_blob drivers/usb/serial/whiteheat_fw.h
  475. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_WHITEHEAT'
  476. clean_mk CONFIG_USB_SERIAL_WHITEHEAT drivers/usb/serial/Makefile
  477. #########################
  478. # Removed video Drivers #
  479. #########################
  480. # FB_ASILIANT - Asiliant (Chips) 69000 display support
  481. clean_blob drivers/video/asiliantfb.c
  482. clean_kconfig drivers/video/Kconfig 'FB_ASILIANT'
  483. clean_mk CONFIG_FB_ASILIANT drivers/video/Makefile
  484. # FB_CT65550 - Chips 65550 display support
  485. clean_blob drivers/video/chipsfb.c
  486. clean_kconfig drivers/video/Kconfig 'FB_CT65550'
  487. clean_mk CONFIG_FB_CT65550 drivers/video/Makefile
  488. #########################
  489. # Removed Sound Drivers #
  490. #########################
  491. # SND_CS46XX - Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x
  492. clean_blob sound/pci/cs46xx/cs46xx_image.h
  493. # Blobs containing comments, not recognized by deblob-check
  494. clean_file sound/pci/cs46xx/imgs/cwc4630.h
  495. clean_file sound/pci/cs46xx/imgs/cwcasync.h
  496. clean_file sound/pci/cs46xx/imgs/cwcdma.h
  497. clean_file sound/pci/cs46xx/imgs/cwcsnoop.h
  498. clean_kconfig sound/pci/Kconfig 'SND_CS46XX'
  499. # sed -i '/cs46xx\/ \\/d' sound/pci/Makefile
  500. # SND_KORG1212 - Korg 1212 IO
  501. clean_ifdef sound/pci/korg1212/korg1212.c CONFIG_SND_KORG1212_FIRMWARE_IN_KERNEL
  502. clean_blob sound/pci/korg1212/korg1212-firmware.h
  503. # SND_MAESTRO3 - ESS Allegro/Maestro3
  504. clean_ifdef sound/pci/maestro3.c CONFIG_SND_MAESTRO3_FIRMWARE_IN_KERNEL
  505. # SND_YMFPCI - Yamaha YMF724/740/744/754
  506. clean_blob sound/pci/ymfpci/ymfpci_image.h
  507. clean_ifdef sound/pci/ymfpci/ymfpci_main.c CONFIG_SND_YMFPCI_FIRMWARE_IN_KERNEL
  508. # SND_SB16_CSP_FIRMWARE_IN_KERNEL - SB16 Advanced Signal Processor
  509. clean_blob sound/isa/sb/sb16_csp_codecs.h
  510. clean_kconfig sound/isa/Kconfig SND_SB16_CSP_FIRMWARE_IN_KERNEL
  511. # SND_WAVEFRONT_FIRMWARE_IN_KERNEL
  512. # Most of this file is not matched by deblob-check because of WAIT_IDLE.
  513. # Just remove it.
  514. clean_file sound/isa/wavefront/yss225.c
  515. clean_kconfig sound/isa/Kconfig SND_WAVEFRONT_FIRMWARE_IN_KERNEL
  516. exit 0