deblob-2.6.28 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  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.28 extra=
  36. case $1 in
  37. --force) die () { echo ERROR: "$@": ignored >&2; }; shift;;
  38. *) die () { echo "$@" >&2; exit 1; };;
  39. esac
  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. die $1 does not exist, something is wrong
  51. fi
  52. rm -v $1
  53. }
  54. function check_changed {
  55. if test ! -f $1; then
  56. die $1 does not exist, something is wrong
  57. elif cmp $1.deblob $1 > /dev/null; then
  58. die $1 did not change, something is wrong
  59. fi
  60. mv $1.deblob $1
  61. }
  62. function clean_blob {
  63. #$1 = filename
  64. if $have_check; then
  65. if test ! -f $1; then
  66. die $1 does not exist, something is wrong
  67. fi
  68. name=$1
  69. echo Removing blobs from $name
  70. set fnord "$@" -d
  71. shift 2
  72. $check "$@" $name > $name.deblob
  73. check_changed $name
  74. else
  75. clean_file $1
  76. fi
  77. }
  78. function dummy_blob {
  79. #$1 = filename
  80. if test -f $1; then
  81. echo $1 exists, something is wrong >&2
  82. exit 1
  83. elif test ! -f firmware/Makefile; then
  84. echo firmware/Makefile does not exist, something is wrong >&2
  85. exit 1
  86. fi
  87. sed -i "s,`echo $1 | sed s,^firmware/,,`,\$(DEBLOBBED),g" \
  88. firmware/Makefile
  89. }
  90. function clean_fw {
  91. #$1 = firmware text input, $2 = firmware output
  92. if test ! -f $1; then
  93. echo $1 does not exist, something is wrong >&2
  94. exit 1
  95. elif test -f $2; then
  96. echo $2 exists, something is wrong >&2
  97. exit 1
  98. fi
  99. clean_blob $1 -s 4
  100. dummy_blob $2
  101. }
  102. function drop_fw_file {
  103. #$1 = firmware text input, $2 = firmware output
  104. if test ! -f $1; then
  105. echo $1 does not exist, something is wrong >&2
  106. exit 1
  107. elif test -f $2; then
  108. echo $2 exists, something is wrong >&2
  109. exit 1
  110. fi
  111. clean_file $1
  112. dummy_blob $2
  113. }
  114. function clean_kconfig {
  115. #$1 = filename $2 = things to remove
  116. echo Marking config $2 as depending on NONFREE in $1
  117. sed "/^config \\($2\\)\$/{p;i\
  118. depends on NONFREE
  119. d;}" $1 > $1.deblob
  120. check_changed $1
  121. }
  122. function clean_mk {
  123. #$1 = config $2 = Makefile name
  124. # We don't clean up Makefiles any more --lxoliva
  125. # sed -i "/\\($1\\)/d" $2
  126. # check_changed $2
  127. if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then
  128. :
  129. else
  130. die $2 does not contain matches for $1
  131. fi
  132. }
  133. # First, check that files that contain firmwares and their
  134. # corresponding sources are present.
  135. for f in \
  136. drivers/char/ser_a2232fw.h \
  137. drivers/char/ser_a2232fw.ax \
  138. drivers/net/ixp2000/ixp2400_rx.ucode \
  139. drivers/net/ixp2000/ixp2400_rx.uc \
  140. drivers/net/ixp2000/ixp2400_tx.ucode \
  141. drivers/net/ixp2000/ixp2400_rx.uc \
  142. drivers/net/wan/wanxlfw.inc_shipped \
  143. drivers/net/wan/wanxlfw.S \
  144. drivers/net/wireless/atmel.c \
  145. drivers/net/wireless/atmel.c \
  146. drivers/scsi/53c700_d.h_shipped \
  147. drivers/scsi/53c700.scr \
  148. drivers/scsi/aic7xxx/aic79xx_seq.h_shipped \
  149. drivers/scsi/aic7xxx/aic79xx.seq \
  150. drivers/scsi/aic7xxx/aic7xxx_seq.h_shipped \
  151. drivers/scsi/aic7xxx/aic7xxx.seq \
  152. drivers/scsi/aic7xxx_old/aic7xxx_seq.c \
  153. drivers/scsi/aic7xxx_old/aic7xxx.seq \
  154. drivers/scsi/53c7xx_d.h_shipped \
  155. drivers/scsi/53c7xx.scr \
  156. drivers/scsi/sym53c8xx_2/sym_fw1.h \
  157. drivers/scsi/sym53c8xx_2/sym_fw1.h \
  158. drivers/scsi/sym53c8xx_2/sym_fw2.h \
  159. drivers/scsi/sym53c8xx_2/sym_fw2.h \
  160. firmware/dsp56k/bootstrap.bin.ihex \
  161. firmware/dsp56k/bootstrap.asm \
  162. firmware/keyspan_pda/keyspan_pda.HEX \
  163. firmware/keyspan_pda/keyspan_pda.S \
  164. firmware/keyspan_pda/xircom_pgs.HEX \
  165. firmware/keyspan_pda/xircom_pgs.S \
  166. sound/pci/cs46xx/imgs/cwcbinhack.h \
  167. sound/pci/cs46xx/imgs/cwcdma.asp \
  168. ; do
  169. if test ! $f; then
  170. die $f is not present, something is amiss
  171. fi
  172. done
  173. # Identify the tarball.
  174. sed -i "s,^EXTRAVERSION.*,&-libre$extra," Makefile
  175. #######################
  176. # Removed ATM Drivers #
  177. #######################
  178. # ATM_AMBASSADOR - Madge Ambassador (Collage PCI 155 Server)
  179. clean_fw firmware/atmsar11.HEX firmware/atmsar11.fw
  180. # ATM_FORE200E_PCA
  181. # ATM_FORE200E_SBA - SBA-200E
  182. clean_kconfig drivers/atm/Kconfig 'ATM_FORE.*'
  183. clean_mk CONFIG_ATM_FORE200E drivers/atm/Makefile
  184. clean_kconfig drivers/atm/Kconfig 'ATM_AMBASSADOR'
  185. clean_mk CONFIG_ATM_AMBASSADOR drivers/atm/Makefile
  186. ########################
  187. # Removed char Drivers #
  188. ########################
  189. # COMPUTONE - Computone IntelliPort Plus serial
  190. drop_fw_file firmware/intelliport2.bin.ihex firmware/intelliport2.bin
  191. clean_kconfig drivers/char/Kconfig 'COMPUTONE'
  192. clean_mk CONFIG_COMPUTONE drivers/char/Makefile
  193. # gpu drm
  194. # DRM_MGA - Matrox g200/g400
  195. clean_blob drivers/gpu/drm/mga/mga_ucode.h
  196. clean_kconfig drivers/gpu/drm/Kconfig 'DRM_MGA'
  197. clean_mk CONFIG_DRM_MGA drivers/gpu/drm/Makefile
  198. # DRM_R128 - ATI Rage 128
  199. clean_blob drivers/gpu/drm/r128/r128_cce.c
  200. clean_kconfig drivers/gpu/drm/Kconfig 'DRM_R128'
  201. clean_mk CONFIG_DRM_R128 drivers/gpu/drm/Makefile
  202. # DRM_RADEON - ATI Radeon
  203. clean_blob drivers/gpu/drm/radeon/radeon_microcode.h
  204. clean_kconfig drivers/gpu/drm/Kconfig 'DRM_RADEON'
  205. clean_mk CONFIG_DRM_RADEON drivers/gpu/drm/Makefile
  206. #########################
  207. # Removed Media Drivers #
  208. #########################
  209. # dvb/dvb-usb
  210. clean_blob drivers/media/dvb/dvb-usb/af9005-script.h
  211. clean_kconfig drivers/media/dvb/dvb-usb/Kconfig 'DVB_USB_AF9005'
  212. clean_mk CONFIG_DVB_USB_AF9005 drivers/media/dvb/dvb-usb/Makefile
  213. # dvb/frontends
  214. # DVB_TDA10021 - Philips TDA10021 based
  215. clean_blob drivers/media/dvb/frontends/tda10021.c
  216. clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_TDA10021'
  217. clean_mk CONFIG_DVB_TDA10021 drivers/media/dvb/frontends/Makefile
  218. # DVB_TDA8083 - Philips TDA8083 based
  219. clean_blob drivers/media/dvb/frontends/tda8083.c
  220. clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_TDA8083'
  221. clean_mk CONFIG_DVB_TDA8083 drivers/media/dvb/frontends/Makefile
  222. # DVB_VES1820 - VLSI VES1820 based
  223. clean_blob drivers/media/dvb/frontends/ves1820.c
  224. clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_VES1820'
  225. clean_mk CONFIG_DVB_VES1820 drivers/media/dvb/frontends/Makefile
  226. # DVB_VES1X93 - VLSI VES1893 or VES1993 based
  227. clean_blob drivers/media/dvb/frontends/ves1x93.c
  228. clean_kconfig drivers/media/dvb/frontends/Kconfig 'DVB_VES1X93'
  229. clean_mk CONFIG_DVB_VES1X93 drivers/media/dvb/frontends/Makefile
  230. # dvb/ttpci
  231. # DVB_AV7110 - AV7110 cards
  232. clean_blob drivers/media/dvb/ttpci/av7110_hw.c
  233. clean_blob drivers/media/dvb/ttpci/av7110.c
  234. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_AV7110'
  235. clean_mk CONFIG_DVB_AV7110 drivers/media/dvb/ttpci/Makefile
  236. # DVB_BUDGET_AV - Budget cards with analog video inputs
  237. clean_blob drivers/media/dvb/ttpci/budget-av.c
  238. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET_AV'
  239. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET_PATCH'
  240. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET'
  241. clean_mk CONFIG_DVB_BUDGET_AV drivers/media/dvb/ttpci/Makefile
  242. clean_mk CONFIG_DVB_BUDGET_PATCH drivers/media/dvb/ttpci/Makefile
  243. clean_mk CONFIG_DVB_BUDGET drivers/media/dvb/ttpci/Makefile
  244. # DVB_BUDGET_CI - Budget cards with onboard CI connector
  245. clean_blob drivers/media/dvb/ttpci/budget-ci.c
  246. clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_BUDGET_CI'
  247. clean_mk CONFIG_DVB_BUDGET_CI drivers/media/dvb/ttpci/Makefile
  248. # dvb/ttusb-budget
  249. # DVB_TTUSB_BUDGET - Technotrend/Hauppauge Nova-USB devices
  250. drop_fw_file firmware/ttusb-budget/dspbootcode.bin.ihex firmware/ttusb-budget/dspbootcode.bin
  251. clean_blob drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
  252. clean_kconfig drivers/media/dvb/ttusb-budget/Kconfig 'DVB_TTUSB_BUDGET'
  253. clean_mk CONFIG_DVB_TTUSB_BUDGET drivers/media/dvb/ttusb-budget/Makefile
  254. # video
  255. # USB_PWC - USB Philips Cameras
  256. clean_blob drivers/media/video/pwc/pwc-kiara.c
  257. clean_blob drivers/media/video/pwc/pwc-timon.c
  258. clean_kconfig drivers/media/video/pwc/Kconfig 'USB_PWC'
  259. clean_mk CONFIG_USB_PWC drivers/media/video/Makefile
  260. # VIDEO_CPIA - CPiA Video For Linux
  261. clean_fw firmware/cpia2/stv0672_vp4.bin.ihex firmware/cpia2/stv0672_vp4.bin
  262. clean_kconfig drivers/media/video/Kconfig 'VIDEO_CPIA'
  263. clean_kconfig drivers/media/video/Kconfig 'VIDEO_CPIA_PP'
  264. clean_kconfig drivers/media/video/Kconfig 'VIDEO_CPIA_USB'
  265. clean_kconfig drivers/media/video/cpia2/Kconfig 'VIDEO_CPIA2'
  266. clean_mk CONFIG_VIDEO_CPIA drivers/media/video/Makefile
  267. clean_mk CONFIG_VIDEO_CPIA_PP drivers/media/video/Makefile
  268. clean_mk CONFIG_VIDEO_CPIA_USB drivers/media/video/Makefile
  269. clean_mk CONFIG_VIDEO_CPIA2 drivers/media/video/Makefile
  270. # USB_DABUSB - DABUSB driver
  271. clean_fw firmware/dabusb/bitstream.bin.ihex firmware/dabusb/bitstream.bin
  272. clean_fw firmware/dabusb/firmware.HEX firmware/dabusb/firmware.fw
  273. clean_kconfig drivers/media/Kconfig 'USB_DABUSB'
  274. clean_mk CONFIG_USB_DABUSB drivers/media/video/Makefile
  275. # video/usbvideo
  276. # USB_IBMCAM - USB IBM (Xirlink) C-it Camera support
  277. clean_blob drivers/media/video/usbvideo/ibmcam.c
  278. clean_kconfig drivers/media/video/usbvideo/Kconfig 'USB_IBMCAM'
  279. clean_mk CONFIG_USB_IBMCAM drivers/media/video/usbvideo/Makefile
  280. # USB_VICAM - USB 3com HomeConnect (aka vicam)
  281. drop_fw_file firmware/vicam/firmware.H16 firmware/vicam/firmware.fw
  282. clean_kconfig drivers/media/video/usbvideo/Kconfig 'USB_VICAM'
  283. clean_mk CONFIG_USB_VICAM drivers/media/video/usbvideo/Makefile
  284. #######################
  285. # Removed net Drivers #
  286. #######################
  287. # ACENIC - Alteon AceNIC/3Com 3C985/NetGear GA620 Gigabit
  288. clean_blob drivers/net/acenic_firmware.h
  289. clean_kconfig drivers/net/Kconfig 'ACENIC'
  290. clean_mk CONFIG_ACENIC drivers/net/Makefile
  291. # ADAPTEC_STARFIRE - Adaptec Starfire/DuraLAN support
  292. # This adds restrictions on top of GPLv2, but after deblobbing,
  293. # nothing copyrightable remains.
  294. clean_blob drivers/net/starfire_firmware.h
  295. clean_kconfig drivers/net/Kconfig 'ADAPTEC_STARFIRE'
  296. clean_mk CONFIG_ADAPTEC_STARFIRE drivers/net/Makefile
  297. # BNX2 - Broadcom NetXtremeII
  298. clean_blob drivers/net/bnx2_fw.h
  299. clean_blob drivers/net/bnx2_fw2.h
  300. clean_kconfig drivers/net/Kconfig 'BNX2'
  301. clean_mk CONFIG_BNX2 drivers/net/Makefile
  302. clean_blob drivers/net/bnx2x_init_values.h
  303. clean_kconfig drivers/net/Kconfig 'BNX2X'
  304. clean_mk CONFIG_BNX2X drivers/net/Makefile
  305. # CASSINI - Sun Cassini
  306. drop_fw_file firmware/sun/cassini.bin.ihex firmware/sun/cassini.bin
  307. clean_kconfig drivers/net/Kconfig 'CASSINI'
  308. clean_mk CONFIG_CASSINI drivers/net/Makefile
  309. # CHELSIO_T3 - Chelsio AEL 2005 support
  310. clean_blob drivers/net/cxgb3/ael1002.c
  311. if $have_check; then
  312. :
  313. else
  314. clean_kconfig drivers/net/Kconfig 'CHELSIO_T3'
  315. clean_mk CONFIG_CHELSIO_T3 drivers/net/cxgb3/Makefile
  316. fi
  317. # E100 - Intel(R) PRO/100+
  318. clean_blob drivers/net/e100.c
  319. if $have_check; then
  320. sed -i 's:\(\/\*(DEBLOBBED)\*\/\),:\1:' drivers/net/e100.c
  321. else
  322. clean_kconfig drivers/net/Kconfig 'E100'
  323. clean_mk CONFIG_E100 drivers/net/Makefile
  324. fi
  325. # MYRI_SBUS - MyriCOM Gigabit Ethernet
  326. clean_blob drivers/net/myri_code.h
  327. clean_kconfig drivers/net/Kconfig 'MYRI_SBUS'
  328. clean_mk CONFIG_MYRI_SBUS drivers/net/Makefile
  329. # TEHUTI - Tehuti Networks 10G Ethernet
  330. clean_blob drivers/net/tehuti_fw.h -s 4
  331. clean_kconfig drivers/net/Kconfig 'TEHUTI'
  332. clean_mk CONFIG_TEHUTI drivers/net/Makefile
  333. # TIGON3 - Broadcom Tigon3
  334. patch --no-backup-if-mismatch --batch -p0 <<\EOF || \
  335. die failed to remove license comments from drivers/net/tg3.c \
  336. # patches/linux-2.6-tg3-clean.patch
  337. --- drivers/net/tg3.c
  338. +++ drivers/net/tg3.c
  339. @@ -5,14 +5,6 @@
  340. * Copyright (C) 2001, 2002, 2003 Jeff Garzik (jgarzik@pobox.com)
  341. * Copyright (C) 2004 Sun Microsystems Inc.
  342. * Copyright (C) 2005-2007 Broadcom Corporation.
  343. - *
  344. - * Firmware is:
  345. - * Derived from proprietary unpublished source code,
  346. - * Copyright (C) 2000-2003 Broadcom Corporation.
  347. - *
  348. - * Permission is hereby granted for the distribution of this firmware
  349. - * data in hexadecimal or equivalent format, provided this copyright
  350. - * notice is accompanying it.
  351. */
  352. EOF
  353. clean_blob drivers/net/tg3.c -s 9
  354. if $have_check; then
  355. sed -i 's:\(\/\*(DEBLOBBED)\*\/\),:\1:' drivers/net/tg3.c
  356. else
  357. clean_kconfig drivers/net/Kconfig 'TIGON3'
  358. clean_mk CONFIG_TIGON3 drivers/net/Makefile
  359. fi
  360. # TYPHOON - 3cr990 series Typhoon
  361. clean_blob drivers/net/typhoon-firmware.h
  362. clean_kconfig drivers/net/Kconfig 'TYPHOON'
  363. clean_mk CONFIG_TYPHOON drivers/net/Makefile
  364. # appletalk
  365. # COPS - COPS LocalTalk PC
  366. # clean_blob drivers/net/appletalk/cops.c
  367. # clean_blob drivers/net/appletalk/cops.h
  368. clean_blob drivers/net/appletalk/cops_ffdrv.h
  369. clean_blob drivers/net/appletalk/cops_ltdrv.h
  370. clean_kconfig drivers/net/appletalk/Kconfig 'COPS'
  371. clean_mk CONFIG_COPS drivers/net/appletalk/Makefile
  372. # hamradio
  373. # YAM - YAM driver for AX.25
  374. clean_blob drivers/net/hamradio/yam1200.h
  375. clean_blob drivers/net/hamradio/yam9600.h
  376. clean_kconfig drivers/net/hamradio/Kconfig 'YAM'
  377. clean_mk CONFIG_YAM drivers/net/hamradio/Makefile
  378. # pcmcia
  379. # PCMCIA_SMC91C92 - SMC 91Cxx PCMCIA
  380. clean_blob drivers/net/pcmcia/ositech.h
  381. clean_kconfig drivers/net/pcmcia/Kconfig 'PCMCIA_SMC91C92'
  382. clean_mk CONFIG_PCMCIA_SMC91C92 drivers/net/pcmcia/Makefile
  383. # tokenring
  384. # 3C359 - 3Com 3C359 Token Link Velocity XL adapter
  385. # No need to remove these, they don't contain non-Free code.
  386. # clean_blob drivers/net/tokenring/3c359.c
  387. # clean_blob drivers/net/tokenring/3c359.h
  388. # This file is not under the GPL, better remove it all.
  389. clean_file drivers/net/tokenring/3c359_microcode.h
  390. clean_kconfig drivers/net/tokenring/Kconfig '3C359'
  391. clean_mk CONFIG_3C359 drivers/net/tokenring/Makefile
  392. # SMCTR - SMC ISA/MCA adapter
  393. # No need to remove these, they don't contain non-Free code.
  394. # clean_blob drivers/net/tokenring/smctr.c
  395. # clean_blob drivers/net/tokenring/smctr.h
  396. # This file is not under the GPL, better remove it all.
  397. drop_fw_file firmware/tr_smctr.bin.ihex firmware/tr_smctr.bin
  398. clean_kconfig drivers/net/tokenring/Kconfig 'SMCTR'
  399. clean_mk CONFIG_SMCTR drivers/net/tokenring/Makefile
  400. # usb
  401. # USB_KAWETH - USB KLSI KL5USB101-based ethernet device support
  402. drop_fw_file firmware/kaweth/new_code.bin.ihex firmware/kaweth/new_code.bin
  403. drop_fw_file firmware/kaweth/new_code_fix.bin.ihex firmware/kaweth/new_code_fix.bin
  404. drop_fw_file firmware/kaweth/trigger_code.bin.ihex firmware/kaweth/trigger_code.bin
  405. drop_fw_file firmware/kaweth/trigger_code_fix.bin.ihex firmware/kaweth/trigger_code_fix.bin
  406. clean_kconfig drivers/net/usb/Kconfig 'USB_KAWETH'
  407. clean_mk CONFIG_USB_KAWETH drivers/net/usb/Makefile
  408. # wireless
  409. clean_blob drivers/net/wireless/rtl8187_dev.c
  410. # clean_kconfig drivers/net/wireless/Kconfig 'RTL8187'
  411. # clean_mk CONFIG_RTL8187 drivers/net/wireless/Makefile
  412. ########################
  413. # Removed s390 Drivers #
  414. ########################
  415. # QETH - Gigabit Ethernet device support
  416. clean_blob drivers/s390/net/qeth_core_mpc.c
  417. clean_kconfig drivers/s390/net/Kconfig 'QETH'
  418. clean_mk CONFIG_QETH drivers/s390/net/Makefile
  419. #####################
  420. # Removed SH boards #
  421. #####################
  422. # SH_AP325RXA - Renesas AP-325RXA board
  423. clean_blob arch/sh/boards/board-ap325rxa.c
  424. clean_kconfig arch/sh/boards/Kconfig 'SH_AP325RXA'
  425. clean_mk CONFIG_SH_AP325RXA arch/sh/boards/Makefile
  426. # SH_MIGOR - Reneasas Migo-R
  427. clean_blob arch/sh/boards/mach-migor/lcd_qvga.c -s 16
  428. clean_blob arch/sh/boards/mach-migor/setup.c
  429. clean_kconfig arch/sh/boards/Kconfig 'SH_MIGOR'
  430. clean_kconfig arch/sh/boards/mach-migor/Kconfig 'SH_MIGOR_QVGA'
  431. clean_mk CONFIG_SH_MIGOR_QVGA arch/sh/boards/mach-migor/Makefile
  432. ########################
  433. # Removed SCSI Drivers #
  434. ########################
  435. # SCSI_QLOGICPTI - PTI Qlogic, ISP Driver
  436. clean_blob drivers/scsi/qlogicpti_asm.c
  437. clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGICPTI'
  438. clean_mk CONFIG_SCSI_QLOGICPTI drivers/scsi/Makefile
  439. # SCSI_ADVANSYS - AdvanSys SCSI
  440. clean_blob drivers/scsi/advansys.c
  441. clean_kconfig drivers/scsi/Kconfig 'SCSI_ADVANSYS'
  442. clean_mk CONFIG_SCSI_ADVANSYS drivers/scsi/Makefile
  443. # SCSI_QLOGIC_1280 - Qlogic QLA 1240/1x80/1x160 SCSI
  444. clean_blob drivers/scsi/ql1280_fw.h
  445. clean_blob drivers/scsi/ql1040_fw.h
  446. clean_blob drivers/scsi/ql12160_fw.h
  447. clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGIC_1280'
  448. clean_mk CONFIG_SCSI_QLOGIC_1280 drivers/scsi/Makefile
  449. #######################
  450. # Removed USB Drivers #
  451. #######################
  452. # misc
  453. # USB_EMI26 - EMI 2|6 USB Audio interface
  454. # No need to remove this, it doesn't contain non-Free code.
  455. # clean_blob drivers/usb/misc/emi26.c
  456. # These files are not under the GPL, better remove them all.
  457. drop_fw_file firmware/emi26/bitstream.HEX firmware/emi26/bitstream.fw
  458. drop_fw_file firmware/emi26/firmware.HEX firmware/emi26/firmware.fw
  459. drop_fw_file firmware/emi26/loader.HEX firmware/emi26/loader.fw
  460. clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI26'
  461. clean_mk CONFIG_USB_EMI26 drivers/usb/misc/Makefile
  462. # USB_EMI62 - EMI 6|2m USB Audio interface
  463. # No need to remove this, it doesn't contain non-Free code.
  464. # clean_blob drivers/usb/misc/emi62.c
  465. # These files are probably not under the GPL, better remove them all.
  466. drop_fw_file firmware/emi62/bitstream.HEX firmware/emi62/bitstream.fw
  467. drop_fw_file firmware/emi62/loader.HEX firmware/emi62/loader.fw
  468. drop_fw_file firmware/emi62/midi.HEX firmware/emi62/midi.fw
  469. drop_fw_file firmware/emi62/spdif.HEX firmware/emi62/spdif.fw
  470. clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI62'
  471. clean_mk CONFIG_USB_EMI62 drivers/usb/misc/Makefile
  472. # USB_SISUSBVGA - USB 2.0 SVGA dongle support (Net2280/SiS315)
  473. clean_blob drivers/usb/misc/sisusbvga/sisusb_init.h
  474. clean_kconfig drivers/usb/misc/sisusbvga/Kconfig 'USB_SISUSBVGA'
  475. clean_mk CONFIG_USB_SISUSBVGA drivers/usb/misc/sisusbvga/Makefile
  476. # serial
  477. # USB_SERIAL_KEYSPAN_MPR - USB Keyspan MPR Firmware
  478. drop_fw_file firmware/keyspan/mpr.HEX firmware/keyspan/mpr.fw
  479. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_MPR'
  480. # USB_SERIAL_KEYSPAN_USA18X - USB Keyspan USA-18X Firmware
  481. drop_fw_file firmware/keyspan/usa18x.HEX firmware/keyspan/usa18x.fw
  482. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA18X'
  483. # USB_SERIAL_KEYSPAN_USA19 - USB Keyspan USA-19 Firmware
  484. drop_fw_file firmware/keyspan/usa19.HEX firmware/keyspan/usa19.fw
  485. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19'
  486. # USB_SERIAL_KEYSPAN_USA19QI - USB Keyspan USA-19QI Firmware
  487. drop_fw_file firmware/keyspan/usa19qi.HEX firmware/keyspan/usa19qi.fw
  488. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QI'
  489. # USB_SERIAL_KEYSPAN_USA19QW - USB Keyspan USA-19QW Firmware
  490. drop_fw_file firmware/keyspan/usa19qw.HEX firmware/keyspan/usa19qw.fw
  491. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QW'
  492. # USB_SERIAL_KEYSPAN_USA19W - USB Keyspan USA-19W Firmware
  493. drop_fw_file firmware/keyspan/usa19w.HEX firmware/keyspan/usa19w.fw
  494. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19W'
  495. # USB_SERIAL_KEYSPAN_USA28 - USB Keyspan USA-28 Firmware
  496. drop_fw_file firmware/keyspan/usa28.HEX firmware/keyspan/usa28.fw
  497. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28'
  498. # USB_SERIAL_KEYSPAN_USA28XA - USB Keyspan USA-28XA Firmware
  499. drop_fw_file firmware/keyspan/usa28xa.HEX firmware/keyspan/usa28xa.fw
  500. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XA'
  501. # USB_SERIAL_KEYSPAN_USA28XB - USB Keyspan USA-28XB Firmware
  502. drop_fw_file firmware/keyspan/usa28xb.HEX firmware/keyspan/usa28xb.fw
  503. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XB'
  504. # USB_SERIAL_KEYSPAN_USA28X - USB Keyspan USA-28X Firmware
  505. drop_fw_file firmware/keyspan/usa28x.HEX firmware/keyspan/usa28x.fw
  506. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28X'
  507. # USB_SERIAL_KEYSPAN_USA49W - USB Keyspan USA-49W Firmware
  508. drop_fw_file firmware/keyspan/usa49w.HEX firmware/keyspan/usa49w.fw
  509. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49W'
  510. # USB_SERIAL_KEYSPAN_USA49WLC - USB Keyspan USA-49WLC Firmware
  511. drop_fw_file firmware/keyspan/usa49wlc.HEX firmware/keyspan/usa49wlc.fw
  512. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49WLC'
  513. clean_mk CONFIG_USB_SERIAL_KEYSPAN drivers/usb/serial/Makefile
  514. # USB_SERIAL_EDGEPORT - USB Inside Out Edgeport Serial Driver
  515. clean_fw firmware/edgeport/boot.H16 firmware/edgeport/boot.fw
  516. clean_fw firmware/edgeport/down.H16 firmware/edgeport/down.fw
  517. clean_fw firmware/edgeport/down2.H16 firmware/edgeport/down2.fw
  518. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT'
  519. clean_mk CONFIG_USB_SERIAL_EDGEPORT drivers/usb/serial/Makefile
  520. # USB_SERIAL_EDGEPORT_TI - USB Inside Out Edgeport Serial Driver (TI devices)
  521. clean_fw firmware/edgeport/boot2.H16 firmware/edgeport/boot2.fw
  522. clean_fw firmware/edgeport/down3.bin.ihex firmware/edgeport/down3.bin
  523. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT_TI'
  524. clean_mk CONFIG_USB_SERIAL_EDGEPORT_TI drivers/usb/serial/Makefile
  525. # USB_SERIAL_TI - USB TI 3410/5052 Serial Driver
  526. drop_fw_file firmware/ti_3410.fw.ihex firmware/ti_3410.fw
  527. drop_fw_file firmware/ti_5052.fw.ihex firmware/ti_5052.fw
  528. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_TI'
  529. clean_mk CONFIG_USB_SERIAL_TI drivers/usb/serial/Makefile
  530. # USB_SERIAL_WHITEHEAT - USB ConnectTech WhiteHEAT Serial Driver
  531. clean_fw firmware/whiteheat.HEX firmware/whiteheat.fw
  532. clean_fw firmware/whiteheat_loader.HEX firmware/whiteheat_loader.fw
  533. clean_fw firmware/whiteheat_loader_debug.HEX firmware/whiteheat_loader_debug.fw
  534. clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_WHITEHEAT'
  535. clean_mk CONFIG_USB_SERIAL_WHITEHEAT drivers/usb/serial/Makefile
  536. #########################
  537. # Removed video Drivers #
  538. #########################
  539. # FB_ASILIANT - Asiliant (Chips) 69000 display support
  540. clean_blob drivers/video/asiliantfb.c
  541. clean_kconfig drivers/video/Kconfig 'FB_ASILIANT'
  542. clean_mk CONFIG_FB_ASILIANT drivers/video/Makefile
  543. # FB_CT65550 - Chips 65550 display support
  544. clean_blob drivers/video/chipsfb.c
  545. clean_kconfig drivers/video/Kconfig 'FB_CT65550'
  546. clean_mk CONFIG_FB_CT65550 drivers/video/Makefile
  547. # USB_GSPCA - Conexant 11646
  548. clean_blob drivers/media/video/gspca/conex.c
  549. # clean_kconfig drivers/video/gspca/Kconfig 'USB_GSPCA'
  550. # clean_mk CONFIG_USB_GSPCA drivers/video/Makefile
  551. #########################
  552. # Removed Sound Drivers #
  553. #########################
  554. # SND_CS46XX - Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x
  555. clean_blob sound/pci/cs46xx/cs46xx_image.h
  556. # Blobs containing comments, not recognized by deblob-check
  557. clean_file sound/pci/cs46xx/imgs/cwc4630.h
  558. clean_file sound/pci/cs46xx/imgs/cwcasync.h
  559. clean_file sound/pci/cs46xx/imgs/cwcdma.h
  560. clean_file sound/pci/cs46xx/imgs/cwcsnoop.h
  561. clean_kconfig sound/pci/Kconfig 'SND_CS46XX'
  562. # sed -i '/cs46xx\/ \\/d' sound/pci/Makefile
  563. # SND_KORG1212 - Korg 1212 IO
  564. drop_fw_file firmware/korg/k1212.dsp.ihex firmware/korg/k1212.dsp
  565. # SND_MAESTRO3 - ESS Allegro/Maestro3
  566. drop_fw_file firmware/ess/maestro3_assp_kernel.fw.ihex firmware/ess/maestro3_assp_kernel.fw
  567. drop_fw_file firmware/ess/maestro3_assp_minisrc.fw.ihex firmware/ess/maestro3_assp_minisrc.fw
  568. # SND_YMFPCI - Yamaha YMF724/740/744/754
  569. drop_fw_file firmware/yamaha/ds1_ctrl.fw.ihex firmware/yamaha/ds1_ctrl.fw
  570. drop_fw_file firmware/yamaha/ds1_dsp.fw.ihex firmware/yamaha/ds1_dsp.fw
  571. drop_fw_file firmware/yamaha/ds1e_ctrl.fw.ihex firmware/yamaha/ds1e_ctrl.fw
  572. # SND_SB16_CSP_FIRMWARE_IN_KERNEL - SB16 Advanced Signal Processor
  573. drop_fw_file firmware/sb16/alaw_main.csp.ihex firmware/sb16/alaw_main.csp
  574. drop_fw_file firmware/sb16/mulaw_main.csp.ihex firmware/sb16/mulaw_main.csp
  575. drop_fw_file firmware/sb16/ima_adpcm_init.csp.ihex firmware/sb16/ima_adpcm_init.csp
  576. drop_fw_file firmware/sb16/ima_adpcm_capture.csp.ihex firmware/sb16/ima_adpcm_capture.csp
  577. drop_fw_file firmware/sb16/ima_adpcm_playback.csp.ihex firmware/sb16/ima_adpcm_playback.csp
  578. # SND_WAVEFRONT_FIRMWARE_IN_KERNEL
  579. # Most of this file is not matched by deblob-check because of WAIT_IDLE.
  580. # Just remove it.
  581. clean_file sound/isa/wavefront/yss225.c
  582. clean_kconfig sound/isa/Kconfig 'SND_WAVEFRONT_FIRMWARE_IN_KERNEL'
  583. ###########################
  584. # Removed Staging Drivers #
  585. ###########################
  586. # ME4000 - Meilhaus ME-4000 I/O board
  587. clean_file drivers/staging/me4000/me4000_firmware.h
  588. clean_file drivers/staging/me4000/me4610_firmware.h
  589. clean_kconfig drivers/staging/me4000/Kconfig 'ME4000'
  590. clean_mk CONFIG_ME4000 drivers/staging/me4000/Makefile
  591. # SLICOSS - Alacritech Gigabit IS-NIC cards
  592. clean_blob drivers/staging/slicoss/gbdownload.h
  593. clean_blob drivers/staging/slicoss/oasisdownload.h
  594. clean_blob drivers/staging/slicoss/oasisdbgdownload.h
  595. clean_blob drivers/staging/slicoss/gbrcvucode.h
  596. clean_blob drivers/staging/slicoss/oasisrcvucode.h
  597. clean_kconfig drivers/staging/slicoss/Kconfig 'SLICOSS'
  598. clean_mk CONFIG_SLICOSS drivers/staging/slicoss/Makefile
  599. # SXG - Alacritech SLIC Technology Non-Accelerated 10Gbe cards
  600. clean_blob drivers/staging/sxg/saharadbgdownload.h
  601. clean_blob drivers/staging/sxg/sxgphycode.h
  602. clean_kconfig drivers/staging/sxg/Kconfig 'SXG'
  603. clean_mk CONFIG_SXG drivers/staging/sxg/Makefile
  604. exit 0