deblob-2.6.27 25 KB

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