Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/linux-firmware/
Date: Fri, 16 Aug 2019 20:11:12
Message-Id: 1565986257.43481c7e31c810bc77eedfff6eae2f0053bb7a48.whissi@gentoo
1 commit: 43481c7e31c810bc77eedfff6eae2f0053bb7a48
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 16 20:04:06 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 16 20:10:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43481c7e
7
8 sys-kernel/linux-firmware: drop old
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-kernel/linux-firmware/Manifest | 6 -
14 .../linux-firmware/linux-firmware-20190502.ebuild | 135 --------
15 .../linux-firmware/linux-firmware-20190514.ebuild | 312 ------------------
16 .../linux-firmware/linux-firmware-20190620.ebuild | 301 ------------------
17 .../linux-firmware/linux-firmware-20190712.ebuild | 301 ------------------
18 .../linux-firmware/linux-firmware-20190717.ebuild | 301 ------------------
19 .../linux-firmware-20190726-r2.ebuild | 354 ---------------------
20 7 files changed, 1710 deletions(-)
21
22 diff --git a/sys-kernel/linux-firmware/Manifest b/sys-kernel/linux-firmware/Manifest
23 index d3fa92347d4..9b7444cea83 100644
24 --- a/sys-kernel/linux-firmware/Manifest
25 +++ b/sys-kernel/linux-firmware/Manifest
26 @@ -1,8 +1,2 @@
27 -DIST linux-firmware-20190502.tar.gz 185125493 BLAKE2B 48e60d08893688ab546d3d834490f5633c890c523890dedda75154fa041db8a4ae6663ce29485d32cf65556c91906aa8eb4f58ebbc95c34b5aeffb15c8737a98 SHA512 4dbc6548a66b5fcf4af47422004123b42f4c62088c5d97c8f24e03403d7acf729d9335addd68b383ecd9e8dc602b301534842c032a58ef920fad74f2c61d29ae
28 -DIST linux-firmware-20190514.tar.gz 186854834 BLAKE2B cc4feeb4627fa402e445b8176557d67107701c6c0db44f5e5398b4040a0b80d40e32731ca3a31ca67de1e134e6b05f7e43ad29f5793c69e23fa220562624d53f SHA512 eff7a5b7c65b254949443b9d2943332f486c73a69baaaa8398c1298cfe1c06c9fdafa2dcfb2f9d1c02adad8b5e205f25bd61001fee99814e12e5d524179bc3e2
29 DIST linux-firmware-20190603.tar.gz 186855626 BLAKE2B 66e3bf709ae9a3df1ac9b7b9bd4e1fa556b07696896e7db086c7b60887a8e8854638d86ecead091d32b3d9a83adc1ab88e8b2fde730f8f97a3225492c2229512 SHA512 9027ae7f649b7e1ff15177c1edb23def93d8fe90a63a90e72e7ab98414d557c9f4545ced30363c68eb1715cd74d19c0dd9e395e82320427b4aab2432a173e62b
30 -DIST linux-firmware-20190620.tar.gz 190401448 BLAKE2B a31bbe2f2bf00b9b4f5dfe43f1b764b1cd66e07baf12b21a9f9ab0186c6075c0e78b70b22ac0c3e0762d54dd1624c55f1ae177c445472e28be7c46f570dc015e SHA512 f09ed91c57d6b9f181131030e0af66766c0b49e06cce732744f5df44ed989b635e9a275ec5b140418586fd6fec7f3a1d703dd22b9257f4e5dc7c52f1194f75ae
31 -DIST linux-firmware-20190712.tar.gz 193523688 BLAKE2B 2c2751d41b7e17eb40092af43d9dd196ef5544ed43a77392780b77a2def50306f7479aa5b682507b29e471e9acdc446cc44e4ef2c0cceba9d116dbeea5a4d981 SHA512 db60dc1d42603c4fba663b7a7ff7fa8de66dd17d8dd99560162c7e763f73012d2e0ded0bb3827d80efa9a4eec4689c11000d44dc094a59242e62f92670b4aca0
32 -DIST linux-firmware-20190717.tar.gz 193982388 BLAKE2B 9f3795aba9d1d4127bae4cbf758844bf2ef8dbc185858d2de9c89017b51f410d5f1267aa29b9ce9e41cabfc306a73f5c4d3658aa7929b0b2701b74b13b7af86e SHA512 f50a63ec9f28d4a6f6800559469a43986b1f66c09950f96d1c6ad1402ae5a02599c8f86468d96b014ede00a0a1a7cedf1aa28d53075308bf5d7f12a355fbbe20
33 -DIST linux-firmware-20190726.tar.gz 195272955 BLAKE2B 0997ad87830a73909943d01a01a40b8bad06798e4f039bebee663e49ba0694de368164c596033d4dffb146b684a151cc89f98de956ec3743f0a9407097954d9f SHA512 c7503f889b9b37f18f8c4489c1c666fa49e4d6d31329f51f0b59a7ec69eeb9cbc3aa9324e09f373609df242db8f51e1890fd4a61f54bcb7731a642555fd807fe
34 DIST linux-firmware-20190815.tar.gz 195268794 BLAKE2B bc67b4501e1d0c4375000bbcbae754b072a3769703eb214f85468d910f29becbe79f6989d3bf223ffa259326c964cbf153326b64d7756882165d29b576e13703 SHA512 99bcc1372ed51be1692cbc3c7b7c34940ee2f9b89f611afa5266b2b0825ed602cde27ff383edb776c1239eaf37002cd19be7cbb7cdf81e0721c3167d38018e9a
35
36 diff --git a/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild
37 deleted file mode 100644
38 index dc0a935d311..00000000000
39 --- a/sys-kernel/linux-firmware/linux-firmware-20190502.ebuild
40 +++ /dev/null
41 @@ -1,135 +0,0 @@
42 -# Copyright 1999-2019 Gentoo Authors
43 -# Distributed under the terms of the GNU General Public License v2
44 -
45 -EAPI="6"
46 -inherit savedconfig
47 -
48 -if [[ ${PV} == 99999999* ]]; then
49 - inherit git-r3
50 - SRC_URI=""
51 - EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
52 -else
53 - GIT_COMMIT="92e17d0dd2437140fab044ae62baf69b35d7d1fa"
54 - SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
55 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 mips ppc ppc64 s390 sh sparc x86"
56 -fi
57 -
58 -DESCRIPTION="Linux firmware files"
59 -HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
60 -
61 -LICENSE="linux-firmware ( BSD ISC MIT no-source-code ) GPL-2 GPL-2+"
62 -SLOT="0"
63 -IUSE="savedconfig"
64 -
65 -DEPEND=""
66 -RDEPEND="!savedconfig? (
67 - !sys-firmware/alsa-firmware[alsa_cards_ca0132]
68 - !sys-firmware/alsa-firmware[alsa_cards_korg1212]
69 - !sys-firmware/alsa-firmware[alsa_cards_maestro3]
70 - !sys-firmware/alsa-firmware[alsa_cards_sb16]
71 - !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
72 - !media-tv/cx18-firmware
73 - !<sys-firmware/ivtv-firmware-20080701-r1
74 - !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
75 - !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
76 - !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
77 - !net-dialup/ueagle-atm
78 - !net-dialup/ueagle4-atm
79 - !net-wireless/ar9271-firmware
80 - !net-wireless/i2400m-fw
81 - !net-wireless/libertas-firmware
82 - !sys-firmware/rt61-firmware
83 - !net-wireless/rt73-firmware
84 - !net-wireless/rt2860-firmware
85 - !net-wireless/rt2870-firmware
86 - !sys-block/qla-fc-firmware
87 - !sys-firmware/amd-ucode
88 - !sys-firmware/iwl1000-ucode
89 - !sys-firmware/iwl2000-ucode
90 - !sys-firmware/iwl2030-ucode
91 - !sys-firmware/iwl3945-ucode
92 - !sys-firmware/iwl4965-ucode
93 - !sys-firmware/iwl5000-ucode
94 - !sys-firmware/iwl5150-ucode
95 - !sys-firmware/iwl6000-ucode
96 - !sys-firmware/iwl6005-ucode
97 - !sys-firmware/iwl6030-ucode
98 - !sys-firmware/iwl6050-ucode
99 - !sys-firmware/iwl3160-ucode
100 - !sys-firmware/iwl7260-ucode
101 - !sys-firmware/iwl7265-ucode
102 - !sys-firmware/iwl3160-7260-bt-ucode
103 - !sys-firmware/radeon-ucode
104 - )"
105 -#add anything else that collides to this
106 -
107 -RESTRICT="binchecks strip"
108 -
109 -src_unpack() {
110 - if [[ ${PV} == 99999999* ]]; then
111 - git-r3_src_unpack
112 - else
113 - default
114 - # rename directory from git snapshot tarball
115 - mv ${PN}-*/ ${P} || die
116 - fi
117 -}
118 -
119 -src_prepare() {
120 - default
121 -
122 - echo "# Remove files that shall not be installed from this list." > ${PN}.conf
123 - find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
124 -
125 - if use savedconfig; then
126 - restore_config ${PN}.conf
127 - ebegin "Removing all files not listed in config"
128 -
129 - local file delete_file preserved_file preserved_files=()
130 -
131 - while IFS= read -r file; do
132 - # Ignore comments.
133 - if [[ ${file} != "#"* ]]; then
134 - preserved_files+=("${file}")
135 - fi
136 - done < ${PN}.conf || die
137 -
138 - while IFS= read -d "" -r file; do
139 - delete_file=true
140 - for preserved_file in "${preserved_files[@]}"; do
141 - if [[ "${file}" == "${preserved_file}" ]]; then
142 - delete_file=false
143 - fi
144 - done
145 -
146 - if ${delete_file}; then
147 - rm "${file}" || die
148 - fi
149 - done < <(find * \( \! -type d -and \! -name ${PN}.conf \) -print0 || die)
150 -
151 - eend || die
152 -
153 - # remove empty directories, bug #396073
154 - find -type d -empty -delete || die
155 - fi
156 -}
157 -
158 -src_install() {
159 - if use !savedconfig; then
160 - save_config ${PN}.conf
161 - fi
162 - rm ${PN}.conf || die
163 - insinto /lib/firmware/
164 - doins -r *
165 -}
166 -
167 -pkg_preinst() {
168 - if use savedconfig; then
169 - ewarn "USE=savedconfig is active. You must handle file collisions manually."
170 - fi
171 -}
172 -
173 -pkg_postinst() {
174 - elog "If you are only interested in particular firmware files, edit the saved"
175 - elog "configfile and remove those that you do not want."
176 -}
177
178 diff --git a/sys-kernel/linux-firmware/linux-firmware-20190514.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190514.ebuild
179 deleted file mode 100644
180 index ef067f81422..00000000000
181 --- a/sys-kernel/linux-firmware/linux-firmware-20190514.ebuild
182 +++ /dev/null
183 @@ -1,312 +0,0 @@
184 -# Copyright 1999-2019 Gentoo Authors
185 -# Distributed under the terms of the GNU General Public License v2
186 -
187 -EAPI=7
188 -inherit savedconfig
189 -
190 -if [[ ${PV} == 99999999* ]]; then
191 - inherit git-r3
192 - EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
193 -else
194 - GIT_COMMIT="711d3297bac870af42088a467459a0634c1970ca"
195 - SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
196 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 mips ppc ppc64 s390 sh sparc x86"
197 -fi
198 -
199 -DESCRIPTION="Linux firmware files"
200 -HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
201 -
202 -LICENSE="GPL-2 GPL-2+ GPL-3 BSD MIT || ( MPL-1.1 GPL-2 )
203 - redistributable? (
204 - linux-fw-redistributable ( BSD-2 BSD BSD-4 ISC MIT no-source-code ) )
205 - unknown-license? ( all-rights-reserved )"
206 -SLOT="0"
207 -IUSE="+redistributable savedconfig unknown-license"
208 -RESTRICT="binchecks strip
209 - unknown-license? ( bindist )"
210 -
211 -RDEPEND="!savedconfig? (
212 - redistributable? (
213 - !sys-firmware/alsa-firmware[alsa_cards_ca0132]
214 - !media-tv/cx18-firmware
215 - !<sys-firmware/ivtv-firmware-20080701-r1
216 - !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
217 - !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
218 - !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
219 - !net-dialup/ueagle-atm
220 - !net-dialup/ueagle4-atm
221 - !net-wireless/ar9271-firmware
222 - !net-wireless/i2400m-fw
223 - !net-wireless/libertas-firmware
224 - !sys-firmware/rt61-firmware
225 - !net-wireless/rt73-firmware
226 - !net-wireless/rt2860-firmware
227 - !net-wireless/rt2870-firmware
228 - !sys-block/qla-fc-firmware
229 - !sys-firmware/amd-ucode
230 - !sys-firmware/iwl1000-ucode
231 - !sys-firmware/iwl2000-ucode
232 - !sys-firmware/iwl2030-ucode
233 - !sys-firmware/iwl3945-ucode
234 - !sys-firmware/iwl4965-ucode
235 - !sys-firmware/iwl5000-ucode
236 - !sys-firmware/iwl5150-ucode
237 - !sys-firmware/iwl6000-ucode
238 - !sys-firmware/iwl6005-ucode
239 - !sys-firmware/iwl6030-ucode
240 - !sys-firmware/iwl6050-ucode
241 - !sys-firmware/iwl3160-ucode
242 - !sys-firmware/iwl7260-ucode
243 - !sys-firmware/iwl7265-ucode
244 - !sys-firmware/iwl3160-7260-bt-ucode
245 - !sys-firmware/radeon-ucode
246 - )
247 - unknown-license? (
248 - !sys-firmware/alsa-firmware[alsa_cards_korg1212]
249 - !sys-firmware/alsa-firmware[alsa_cards_maestro3]
250 - !sys-firmware/alsa-firmware[alsa_cards_sb16]
251 - !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
252 - )
253 - )"
254 -
255 -#add anything else that collides to this
256 -
257 -src_unpack() {
258 - if [[ ${PV} == 99999999* ]]; then
259 - git-r3_src_unpack
260 - else
261 - default
262 - # rename directory from git snapshot tarball
263 - mv ${PN}-*/ ${P} || die
264 - fi
265 -}
266 -
267 -src_prepare() {
268 - # source and documentation files, not to be installed
269 - local source_files=(
270 - README
271 - WHENCE
272 - "LICEN[CS]E*"
273 - "GPL*"
274 - configure
275 - Makefile
276 - check_whence.py
277 - atusb/ChangeLog
278 - av7110/Boot.S
279 - av7110/Makefile
280 - carl9170fw/
281 - cis/Makefile
282 - cis/src/
283 - dsp56k/bootstrap.asm
284 - dsp56k/concat-bootstrap.pl
285 - dsp56k/Makefile
286 - "isci/*.[ch]"
287 - isci/Makefile
288 - isci/README
289 - "keyspan_pda/*.S"
290 - keyspan_pda/Makefile
291 - usbdux/
292 - )
293 -
294 - # whitelist of images with a free software license
295 - local free_software=(
296 - # keyspan_pda (GPL-2+)
297 - keyspan_pda/keyspan_pda.fw
298 - keyspan_pda/xircom_pgs.fw
299 - # dsp56k (GPL-2+)
300 - dsp56k/bootstrap.bin
301 - # ath9k_htc (BSD GPL-2+ MIT)
302 - ath9k_htc/htc_7010-1.4.0.fw
303 - ath9k_htc/htc_9271-1.4.0.fw
304 - # pcnet_cs, 3c589_cs, 3c574_cs, serial_cs (dual GPL-2/MPL-1.1)
305 - cis/LA-PCM.cis
306 - cis/PCMLM28.cis
307 - cis/DP83903.cis
308 - cis/NE2K.cis
309 - cis/tamarack.cis
310 - cis/PE-200.cis
311 - cis/PE520.cis
312 - cis/3CXEM556.cis
313 - cis/3CCFEM556.cis
314 - cis/MT5634ZLX.cis
315 - cis/RS-COM-2P.cis
316 - cis/COMpad2.cis
317 - cis/COMpad4.cis
318 - # serial_cs (GPL-3)
319 - cis/SW_555_SER.cis
320 - cis/SW_7xx_SER.cis
321 - cis/SW_8xx_SER.cis
322 - # dvb-ttpci (GPL-2+)
323 - av7110/bootcode.bin
324 - # usbdux, usbduxfast, usbduxsigma (GPL-2+)
325 - usbdux_firmware.bin
326 - usbduxfast_firmware.bin
327 - usbduxsigma_firmware.bin
328 - # brcmfmac (GPL-2+)
329 - brcm/brcmfmac4330-sdio.Prowise-PT301.txt
330 - brcm/brcmfmac43340-sdio.meegopad-t08.txt
331 - brcm/brcmfmac43362-sdio.cubietech,cubietruck.txt
332 - brcm/brcmfmac43362-sdio.lemaker,bananapro.txt
333 - brcm/brcmfmac43430a0-sdio.jumper-ezpad-mini3.txt
334 - "brcm/brcmfmac43430a0-sdio.ONDA-V80 PLUS.txt"
335 - brcm/brcmfmac43430-sdio.AP6212.txt
336 - brcm/brcmfmac43430-sdio.Hampoo-D2D3_Vi8A1.txt
337 - brcm/brcmfmac43430-sdio.MUR1DX.txt
338 - brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt
339 - brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
340 - brcm/brcmfmac4356-pcie.gpd-win-pocket.txt
341 - # isci (GPL-2)
342 - isci/isci_firmware.bin
343 - # carl9170 (GPL-2+)
344 - carl9170-1.fw
345 - # atusb (GPL-2+)
346 - atusb/atusb-0.2.dfu
347 - atusb/atusb-0.3.dfu
348 - atusb/rzusb-0.3.bin
349 - # mlxsw_spectrum (dual BSD/GPL-2)
350 - mellanox/mlxsw_spectrum-13.1420.122.mfa2
351 - mellanox/mlxsw_spectrum-13.1530.152.mfa2
352 - mellanox/mlxsw_spectrum-13.1620.192.mfa2
353 - mellanox/mlxsw_spectrum-13.1702.6.mfa2
354 - mellanox/mlxsw_spectrum-13.1703.4.mfa2
355 - mellanox/mlxsw_spectrum-13.1910.622.mfa2
356 - mellanox/mlxsw_spectrum-13.2000.1122.mfa2
357 - )
358 -
359 - # blacklist of images with unknown license
360 - local unknown_license=(
361 - atmsar11.fw
362 - korg/k1212.dsp
363 - ess/maestro3_assp_kernel.fw
364 - ess/maestro3_assp_minisrc.fw
365 - yamaha/ds1_ctrl.fw
366 - yamaha/ds1_dsp.fw
367 - yamaha/ds1e_ctrl.fw
368 - tr_smctr.bin
369 - ttusb-budget/dspbootcode.bin
370 - emi62/bitstream.fw
371 - emi62/loader.fw
372 - emi62/midi.fw
373 - emi62/spdif.fw
374 - ti_3410.fw
375 - ti_5052.fw
376 - mts_mt9234mu.fw
377 - mts_mt9234zba.fw
378 - whiteheat.fw
379 - whiteheat_loader.fw
380 - intelliport2.bin
381 - cpia2/stv0672_vp4.bin
382 - vicam/firmware.fw
383 - edgeport/boot.fw
384 - edgeport/boot2.fw
385 - edgeport/down.fw
386 - edgeport/down2.fw
387 - edgeport/down3.bin
388 - sb16/mulaw_main.csp
389 - sb16/alaw_main.csp
390 - sb16/ima_adpcm_init.csp
391 - sb16/ima_adpcm_playback.csp
392 - sb16/ima_adpcm_capture.csp
393 - sun/cassini.bin
394 - acenic/tg1.bin
395 - acenic/tg2.bin
396 - adaptec/starfire_rx.bin
397 - adaptec/starfire_tx.bin
398 - yam/1200.bin
399 - yam/9600.bin
400 - 3com/3C359.bin
401 - ositech/Xilinx7OD.bin
402 - qlogic/isp1000.bin
403 - myricom/lanai.bin
404 - yamaha/yss225_registers.bin
405 - lgs8g75.fw
406 - )
407 -
408 - default
409 -
410 - # remove sources and documentation (wildcards are expanded)
411 - rm -r ${source_files[@]} || die
412 -
413 - if use !unknown-license; then
414 - # remove files in unknown_license
415 - rm "${unknown_license[@]}" || die
416 - fi
417 -
418 - if use !redistributable; then
419 - # remove files _not_ in the free_software or unknown_license lists
420 - # everything else is confirmed (or assumed) to be redistributable
421 - # based on upstream acceptance policy
422 - local file remove=()
423 - while IFS= read -d "" -r file; do
424 - has "${file#./}" "${free_software[@]}" "${unknown_license[@]}" \
425 - || remove+=("${file}")
426 - done < <(find * ! -type d -print0 || die)
427 - printf "%s\0" "${remove[@]}" | xargs -0 rm || die
428 - fi
429 -
430 - echo "# Remove files that shall not be installed from this list." > ${PN}.conf
431 - find * ! -type d ! -name ${PN}.conf >> ${PN}.conf
432 -
433 - if use savedconfig; then
434 - restore_config ${PN}.conf
435 -
436 - local file preserved_files=() remove=()
437 -
438 - ebegin "Removing all files not listed in config"
439 - while IFS= read -r file; do
440 - # Ignore comments.
441 - if [[ ${file} != "#"* ]]; then
442 - preserved_files+=("${file}")
443 - fi
444 - done < ${PN}.conf || die
445 -
446 - while IFS= read -d "" -r file; do
447 - has "${file}" "${preserved_files[@]}" || remove+=("${file}")
448 - done < <(find * ! -type d ! -name ${PN}.conf -print0 || die)
449 - if [[ ${#remove[@]} -gt 0 ]]; then
450 - printf "%s\0" "${remove[@]}" | xargs -0 rm || die
451 - fi
452 - eend 0
453 - fi
454 -
455 - # remove empty directories, bug #396073
456 - find -type d -empty -delete || die
457 -}
458 -
459 -src_install() {
460 - if use !savedconfig; then
461 - save_config ${PN}.conf
462 - fi
463 - rm ${PN}.conf || die
464 -
465 - if ! ( shopt -s failglob; : * ) 2>/dev/null; then
466 - eerror "No files to install. Check your USE flag settings"
467 - eerror "and the list of files in your saved configuration."
468 - die "Refusing to install an empty package"
469 - fi
470 -
471 - insinto /lib/firmware/
472 - doins -r *
473 -}
474 -
475 -pkg_preinst() {
476 - if use savedconfig; then
477 - ewarn "USE=savedconfig is active. You must handle file collisions manually."
478 - fi
479 -}
480 -
481 -pkg_postinst() {
482 - elog "If you are only interested in particular firmware files, edit the saved"
483 - elog "configfile and remove those that you do not want."
484 -
485 - local ver
486 - for ver in ${REPLACING_VERSIONS}; do
487 - if ver_test ${ver} -lt 20190514; then
488 - elog
489 - elog 'Starting with version 20190514, installation of many firmware'
490 - elog 'files is controlled by USE flags. Please review your USE flag'
491 - elog 'and package.license settings if you are missing some files.'
492 - break
493 - fi
494 - done
495 -}
496
497 diff --git a/sys-kernel/linux-firmware/linux-firmware-20190620.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190620.ebuild
498 deleted file mode 100644
499 index b4197ce2f0d..00000000000
500 --- a/sys-kernel/linux-firmware/linux-firmware-20190620.ebuild
501 +++ /dev/null
502 @@ -1,301 +0,0 @@
503 -# Copyright 1999-2019 Gentoo Authors
504 -# Distributed under the terms of the GNU General Public License v2
505 -
506 -EAPI=7
507 -inherit savedconfig
508 -
509 -if [[ ${PV} == 99999999* ]]; then
510 - inherit git-r3
511 - EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
512 -else
513 - GIT_COMMIT="7ae3a09dcc7581da3fcc6c578429b89e2764a684"
514 - SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
515 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 mips ppc ppc64 s390 sh sparc x86"
516 -fi
517 -
518 -DESCRIPTION="Linux firmware files"
519 -HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
520 -
521 -LICENSE="GPL-2 GPL-2+ GPL-3 BSD MIT || ( MPL-1.1 GPL-2 )
522 - redistributable? (
523 - linux-fw-redistributable ( BSD-2 BSD BSD-4 ISC MIT no-source-code ) )
524 - unknown-license? ( all-rights-reserved )"
525 -SLOT="0"
526 -IUSE="+redistributable savedconfig unknown-license"
527 -RESTRICT="binchecks strip
528 - unknown-license? ( bindist )"
529 -
530 -RDEPEND="!savedconfig? (
531 - redistributable? (
532 - !sys-firmware/alsa-firmware[alsa_cards_ca0132]
533 - !media-tv/cx18-firmware
534 - !<sys-firmware/ivtv-firmware-20080701-r1
535 - !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
536 - !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
537 - !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
538 - !net-dialup/ueagle-atm
539 - !net-dialup/ueagle4-atm
540 - !net-wireless/ar9271-firmware
541 - !net-wireless/i2400m-fw
542 - !net-wireless/libertas-firmware
543 - !sys-firmware/rt61-firmware
544 - !net-wireless/rt73-firmware
545 - !net-wireless/rt2860-firmware
546 - !net-wireless/rt2870-firmware
547 - !sys-block/qla-fc-firmware
548 - !sys-firmware/amd-ucode
549 - !sys-firmware/iwl1000-ucode
550 - !sys-firmware/iwl2000-ucode
551 - !sys-firmware/iwl2030-ucode
552 - !sys-firmware/iwl3945-ucode
553 - !sys-firmware/iwl4965-ucode
554 - !sys-firmware/iwl5000-ucode
555 - !sys-firmware/iwl5150-ucode
556 - !sys-firmware/iwl6000-ucode
557 - !sys-firmware/iwl6005-ucode
558 - !sys-firmware/iwl6030-ucode
559 - !sys-firmware/iwl6050-ucode
560 - !sys-firmware/iwl3160-ucode
561 - !sys-firmware/iwl7260-ucode
562 - !sys-firmware/iwl7265-ucode
563 - !sys-firmware/iwl3160-7260-bt-ucode
564 - !sys-firmware/radeon-ucode
565 - )
566 - unknown-license? (
567 - !sys-firmware/alsa-firmware[alsa_cards_korg1212]
568 - !sys-firmware/alsa-firmware[alsa_cards_maestro3]
569 - !sys-firmware/alsa-firmware[alsa_cards_sb16]
570 - !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
571 - )
572 - )"
573 -
574 -#add anything else that collides to this
575 -
576 -src_unpack() {
577 - if [[ ${PV} == 99999999* ]]; then
578 - git-r3_src_unpack
579 - else
580 - default
581 - # rename directory from git snapshot tarball
582 - mv ${PN}-*/ ${P} || die
583 - fi
584 -}
585 -
586 -src_prepare() {
587 - # source and documentation files, not to be installed
588 - local source_files=(
589 - README
590 - WHENCE
591 - "LICEN[CS]E*"
592 - "GPL*"
593 - configure
594 - Makefile
595 - check_whence.py
596 - atusb/ChangeLog
597 - av7110/Boot.S
598 - av7110/Makefile
599 - carl9170fw/
600 - cis/Makefile
601 - cis/src/
602 - dsp56k/bootstrap.asm
603 - dsp56k/concat-bootstrap.pl
604 - dsp56k/Makefile
605 - "isci/*.[ch]"
606 - isci/Makefile
607 - isci/README
608 - "keyspan_pda/*.S"
609 - keyspan_pda/Makefile
610 - usbdux/
611 - )
612 -
613 - # whitelist of images with a free software license
614 - local free_software=(
615 - # keyspan_pda (GPL-2+)
616 - keyspan_pda/keyspan_pda.fw
617 - keyspan_pda/xircom_pgs.fw
618 - # dsp56k (GPL-2+)
619 - dsp56k/bootstrap.bin
620 - # ath9k_htc (BSD GPL-2+ MIT)
621 - ath9k_htc/htc_7010-1.4.0.fw
622 - ath9k_htc/htc_9271-1.4.0.fw
623 - # pcnet_cs, 3c589_cs, 3c574_cs, serial_cs (dual GPL-2/MPL-1.1)
624 - cis/LA-PCM.cis
625 - cis/PCMLM28.cis
626 - cis/DP83903.cis
627 - cis/NE2K.cis
628 - cis/tamarack.cis
629 - cis/PE-200.cis
630 - cis/PE520.cis
631 - cis/3CXEM556.cis
632 - cis/3CCFEM556.cis
633 - cis/MT5634ZLX.cis
634 - cis/RS-COM-2P.cis
635 - cis/COMpad2.cis
636 - cis/COMpad4.cis
637 - # serial_cs (GPL-3)
638 - cis/SW_555_SER.cis
639 - cis/SW_7xx_SER.cis
640 - cis/SW_8xx_SER.cis
641 - # dvb-ttpci (GPL-2+)
642 - av7110/bootcode.bin
643 - # usbdux, usbduxfast, usbduxsigma (GPL-2+)
644 - usbdux_firmware.bin
645 - usbduxfast_firmware.bin
646 - usbduxsigma_firmware.bin
647 - # brcmfmac (GPL-2+)
648 - brcm/brcmfmac4330-sdio.Prowise-PT301.txt
649 - brcm/brcmfmac43340-sdio.meegopad-t08.txt
650 - brcm/brcmfmac43362-sdio.cubietech,cubietruck.txt
651 - brcm/brcmfmac43362-sdio.lemaker,bananapro.txt
652 - brcm/brcmfmac43430a0-sdio.jumper-ezpad-mini3.txt
653 - "brcm/brcmfmac43430a0-sdio.ONDA-V80 PLUS.txt"
654 - brcm/brcmfmac43430-sdio.AP6212.txt
655 - brcm/brcmfmac43430-sdio.Hampoo-D2D3_Vi8A1.txt
656 - brcm/brcmfmac43430-sdio.MUR1DX.txt
657 - brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt
658 - brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
659 - brcm/brcmfmac4356-pcie.gpd-win-pocket.txt
660 - # isci (GPL-2)
661 - isci/isci_firmware.bin
662 - # carl9170 (GPL-2+)
663 - carl9170-1.fw
664 - # atusb (GPL-2+)
665 - atusb/atusb-0.2.dfu
666 - atusb/atusb-0.3.dfu
667 - atusb/rzusb-0.3.bin
668 - # mlxsw_spectrum (dual BSD/GPL-2)
669 - mellanox/mlxsw_spectrum-13.1420.122.mfa2
670 - mellanox/mlxsw_spectrum-13.1530.152.mfa2
671 - mellanox/mlxsw_spectrum-13.1620.192.mfa2
672 - mellanox/mlxsw_spectrum-13.1702.6.mfa2
673 - mellanox/mlxsw_spectrum-13.1703.4.mfa2
674 - mellanox/mlxsw_spectrum-13.1910.622.mfa2
675 - mellanox/mlxsw_spectrum-13.2000.1122.mfa2
676 - )
677 -
678 - # blacklist of images with unknown license
679 - local unknown_license=(
680 - atmsar11.fw
681 - korg/k1212.dsp
682 - ess/maestro3_assp_kernel.fw
683 - ess/maestro3_assp_minisrc.fw
684 - yamaha/ds1_ctrl.fw
685 - yamaha/ds1_dsp.fw
686 - yamaha/ds1e_ctrl.fw
687 - tr_smctr.bin
688 - ttusb-budget/dspbootcode.bin
689 - emi62/bitstream.fw
690 - emi62/loader.fw
691 - emi62/midi.fw
692 - emi62/spdif.fw
693 - ti_3410.fw
694 - ti_5052.fw
695 - mts_mt9234mu.fw
696 - mts_mt9234zba.fw
697 - whiteheat.fw
698 - whiteheat_loader.fw
699 - intelliport2.bin
700 - cpia2/stv0672_vp4.bin
701 - vicam/firmware.fw
702 - edgeport/boot.fw
703 - edgeport/boot2.fw
704 - edgeport/down.fw
705 - edgeport/down2.fw
706 - edgeport/down3.bin
707 - sb16/mulaw_main.csp
708 - sb16/alaw_main.csp
709 - sb16/ima_adpcm_init.csp
710 - sb16/ima_adpcm_playback.csp
711 - sb16/ima_adpcm_capture.csp
712 - sun/cassini.bin
713 - acenic/tg1.bin
714 - acenic/tg2.bin
715 - adaptec/starfire_rx.bin
716 - adaptec/starfire_tx.bin
717 - yam/1200.bin
718 - yam/9600.bin
719 - 3com/3C359.bin
720 - ositech/Xilinx7OD.bin
721 - qlogic/isp1000.bin
722 - myricom/lanai.bin
723 - yamaha/yss225_registers.bin
724 - lgs8g75.fw
725 - )
726 -
727 - default
728 -
729 - # remove sources and documentation (wildcards are expanded)
730 - rm -r ${source_files[@]} || die
731 - rm -rf .git
732 -
733 - if use !unknown-license; then
734 - # remove files in unknown_license
735 - rm "${unknown_license[@]}" || die
736 - fi
737 -
738 - if use !redistributable; then
739 - # remove files _not_ in the free_software or unknown_license lists
740 - # everything else is confirmed (or assumed) to be redistributable
741 - # based on upstream acceptance policy
742 - local IFS=$'\n'
743 - find ! -type d -printf "%P\n" \
744 - | grep -Fvx -e "${free_software[*]}" -e "${unknown_license[*]}" \
745 - | xargs -d '\n' rm || die
746 - IFS=$' \t\n'
747 - fi
748 -
749 - echo "# Remove files that shall not be installed from this list." > ${PN}.conf
750 - find * ! -type d ! -name ${PN}.conf >> ${PN}.conf
751 -
752 - if use savedconfig; then
753 - restore_config ${PN}.conf
754 -
755 - ebegin "Removing all files not listed in config"
756 - find ! -type d ! -name ${PN}.conf -printf "%P\n" \
757 - | grep -Fvx -f <(grep -v '^#' ${PN}.conf \
758 - || die "grep failed, empty config file?") \
759 - | xargs -d '\n' --no-run-if-empty rm
760 - eend $? || die
761 - fi
762 -
763 - # remove empty directories, bug #396073
764 - find -type d -empty -delete || die
765 -}
766 -
767 -src_install() {
768 - if use !savedconfig; then
769 - save_config ${PN}.conf
770 - fi
771 - rm ${PN}.conf || die
772 -
773 - if ! ( shopt -s failglob; : * ) 2>/dev/null; then
774 - eerror "No files to install. Check your USE flag settings"
775 - eerror "and the list of files in your saved configuration."
776 - die "Refusing to install an empty package"
777 - fi
778 -
779 - insinto /lib/firmware/
780 - doins -r *
781 -}
782 -
783 -pkg_preinst() {
784 - if use savedconfig; then
785 - ewarn "USE=savedconfig is active. You must handle file collisions manually."
786 - fi
787 -}
788 -
789 -pkg_postinst() {
790 - elog "If you are only interested in particular firmware files, edit the saved"
791 - elog "configfile and remove those that you do not want."
792 -
793 - local ver
794 - for ver in ${REPLACING_VERSIONS}; do
795 - if ver_test ${ver} -lt 20190514; then
796 - elog
797 - elog 'Starting with version 20190514, installation of many firmware'
798 - elog 'files is controlled by USE flags. Please review your USE flag'
799 - elog 'and package.license settings if you are missing some files.'
800 - break
801 - fi
802 - done
803 -}
804
805 diff --git a/sys-kernel/linux-firmware/linux-firmware-20190712.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190712.ebuild
806 deleted file mode 100644
807 index f395cd682de..00000000000
808 --- a/sys-kernel/linux-firmware/linux-firmware-20190712.ebuild
809 +++ /dev/null
810 @@ -1,301 +0,0 @@
811 -# Copyright 1999-2019 Gentoo Authors
812 -# Distributed under the terms of the GNU General Public License v2
813 -
814 -EAPI=7
815 -inherit savedconfig
816 -
817 -if [[ ${PV} == 99999999* ]]; then
818 - inherit git-r3
819 - EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
820 -else
821 - GIT_COMMIT="d52556e4592e64023157a83fb0f483661f23ac0e"
822 - SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
823 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 mips ppc ppc64 s390 sh sparc x86"
824 -fi
825 -
826 -DESCRIPTION="Linux firmware files"
827 -HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
828 -
829 -LICENSE="GPL-2 GPL-2+ GPL-3 BSD MIT || ( MPL-1.1 GPL-2 )
830 - redistributable? (
831 - linux-fw-redistributable ( BSD-2 BSD BSD-4 ISC MIT no-source-code ) )
832 - unknown-license? ( all-rights-reserved )"
833 -SLOT="0"
834 -IUSE="+redistributable savedconfig unknown-license"
835 -RESTRICT="binchecks strip
836 - unknown-license? ( bindist )"
837 -
838 -RDEPEND="!savedconfig? (
839 - redistributable? (
840 - !sys-firmware/alsa-firmware[alsa_cards_ca0132]
841 - !media-tv/cx18-firmware
842 - !<sys-firmware/ivtv-firmware-20080701-r1
843 - !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
844 - !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
845 - !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
846 - !net-dialup/ueagle-atm
847 - !net-dialup/ueagle4-atm
848 - !net-wireless/ar9271-firmware
849 - !net-wireless/i2400m-fw
850 - !net-wireless/libertas-firmware
851 - !sys-firmware/rt61-firmware
852 - !net-wireless/rt73-firmware
853 - !net-wireless/rt2860-firmware
854 - !net-wireless/rt2870-firmware
855 - !sys-block/qla-fc-firmware
856 - !sys-firmware/amd-ucode
857 - !sys-firmware/iwl1000-ucode
858 - !sys-firmware/iwl2000-ucode
859 - !sys-firmware/iwl2030-ucode
860 - !sys-firmware/iwl3945-ucode
861 - !sys-firmware/iwl4965-ucode
862 - !sys-firmware/iwl5000-ucode
863 - !sys-firmware/iwl5150-ucode
864 - !sys-firmware/iwl6000-ucode
865 - !sys-firmware/iwl6005-ucode
866 - !sys-firmware/iwl6030-ucode
867 - !sys-firmware/iwl6050-ucode
868 - !sys-firmware/iwl3160-ucode
869 - !sys-firmware/iwl7260-ucode
870 - !sys-firmware/iwl7265-ucode
871 - !sys-firmware/iwl3160-7260-bt-ucode
872 - !sys-firmware/radeon-ucode
873 - )
874 - unknown-license? (
875 - !sys-firmware/alsa-firmware[alsa_cards_korg1212]
876 - !sys-firmware/alsa-firmware[alsa_cards_maestro3]
877 - !sys-firmware/alsa-firmware[alsa_cards_sb16]
878 - !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
879 - )
880 - )"
881 -
882 -#add anything else that collides to this
883 -
884 -src_unpack() {
885 - if [[ ${PV} == 99999999* ]]; then
886 - git-r3_src_unpack
887 - else
888 - default
889 - # rename directory from git snapshot tarball
890 - mv ${PN}-*/ ${P} || die
891 - fi
892 -}
893 -
894 -src_prepare() {
895 - # source and documentation files, not to be installed
896 - local source_files=(
897 - README
898 - WHENCE
899 - "LICEN[CS]E*"
900 - "GPL*"
901 - configure
902 - Makefile
903 - check_whence.py
904 - atusb/ChangeLog
905 - av7110/Boot.S
906 - av7110/Makefile
907 - carl9170fw/
908 - cis/Makefile
909 - cis/src/
910 - dsp56k/bootstrap.asm
911 - dsp56k/concat-bootstrap.pl
912 - dsp56k/Makefile
913 - "isci/*.[ch]"
914 - isci/Makefile
915 - isci/README
916 - "keyspan_pda/*.S"
917 - keyspan_pda/Makefile
918 - usbdux/
919 - )
920 -
921 - # whitelist of images with a free software license
922 - local free_software=(
923 - # keyspan_pda (GPL-2+)
924 - keyspan_pda/keyspan_pda.fw
925 - keyspan_pda/xircom_pgs.fw
926 - # dsp56k (GPL-2+)
927 - dsp56k/bootstrap.bin
928 - # ath9k_htc (BSD GPL-2+ MIT)
929 - ath9k_htc/htc_7010-1.4.0.fw
930 - ath9k_htc/htc_9271-1.4.0.fw
931 - # pcnet_cs, 3c589_cs, 3c574_cs, serial_cs (dual GPL-2/MPL-1.1)
932 - cis/LA-PCM.cis
933 - cis/PCMLM28.cis
934 - cis/DP83903.cis
935 - cis/NE2K.cis
936 - cis/tamarack.cis
937 - cis/PE-200.cis
938 - cis/PE520.cis
939 - cis/3CXEM556.cis
940 - cis/3CCFEM556.cis
941 - cis/MT5634ZLX.cis
942 - cis/RS-COM-2P.cis
943 - cis/COMpad2.cis
944 - cis/COMpad4.cis
945 - # serial_cs (GPL-3)
946 - cis/SW_555_SER.cis
947 - cis/SW_7xx_SER.cis
948 - cis/SW_8xx_SER.cis
949 - # dvb-ttpci (GPL-2+)
950 - av7110/bootcode.bin
951 - # usbdux, usbduxfast, usbduxsigma (GPL-2+)
952 - usbdux_firmware.bin
953 - usbduxfast_firmware.bin
954 - usbduxsigma_firmware.bin
955 - # brcmfmac (GPL-2+)
956 - brcm/brcmfmac4330-sdio.Prowise-PT301.txt
957 - brcm/brcmfmac43340-sdio.meegopad-t08.txt
958 - brcm/brcmfmac43362-sdio.cubietech,cubietruck.txt
959 - brcm/brcmfmac43362-sdio.lemaker,bananapro.txt
960 - brcm/brcmfmac43430a0-sdio.jumper-ezpad-mini3.txt
961 - "brcm/brcmfmac43430a0-sdio.ONDA-V80 PLUS.txt"
962 - brcm/brcmfmac43430-sdio.AP6212.txt
963 - brcm/brcmfmac43430-sdio.Hampoo-D2D3_Vi8A1.txt
964 - brcm/brcmfmac43430-sdio.MUR1DX.txt
965 - brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt
966 - brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
967 - brcm/brcmfmac4356-pcie.gpd-win-pocket.txt
968 - # isci (GPL-2)
969 - isci/isci_firmware.bin
970 - # carl9170 (GPL-2+)
971 - carl9170-1.fw
972 - # atusb (GPL-2+)
973 - atusb/atusb-0.2.dfu
974 - atusb/atusb-0.3.dfu
975 - atusb/rzusb-0.3.bin
976 - # mlxsw_spectrum (dual BSD/GPL-2)
977 - mellanox/mlxsw_spectrum-13.1420.122.mfa2
978 - mellanox/mlxsw_spectrum-13.1530.152.mfa2
979 - mellanox/mlxsw_spectrum-13.1620.192.mfa2
980 - mellanox/mlxsw_spectrum-13.1702.6.mfa2
981 - mellanox/mlxsw_spectrum-13.1703.4.mfa2
982 - mellanox/mlxsw_spectrum-13.1910.622.mfa2
983 - mellanox/mlxsw_spectrum-13.2000.1122.mfa2
984 - )
985 -
986 - # blacklist of images with unknown license
987 - local unknown_license=(
988 - atmsar11.fw
989 - korg/k1212.dsp
990 - ess/maestro3_assp_kernel.fw
991 - ess/maestro3_assp_minisrc.fw
992 - yamaha/ds1_ctrl.fw
993 - yamaha/ds1_dsp.fw
994 - yamaha/ds1e_ctrl.fw
995 - tr_smctr.bin
996 - ttusb-budget/dspbootcode.bin
997 - emi62/bitstream.fw
998 - emi62/loader.fw
999 - emi62/midi.fw
1000 - emi62/spdif.fw
1001 - ti_3410.fw
1002 - ti_5052.fw
1003 - mts_mt9234mu.fw
1004 - mts_mt9234zba.fw
1005 - whiteheat.fw
1006 - whiteheat_loader.fw
1007 - intelliport2.bin
1008 - cpia2/stv0672_vp4.bin
1009 - vicam/firmware.fw
1010 - edgeport/boot.fw
1011 - edgeport/boot2.fw
1012 - edgeport/down.fw
1013 - edgeport/down2.fw
1014 - edgeport/down3.bin
1015 - sb16/mulaw_main.csp
1016 - sb16/alaw_main.csp
1017 - sb16/ima_adpcm_init.csp
1018 - sb16/ima_adpcm_playback.csp
1019 - sb16/ima_adpcm_capture.csp
1020 - sun/cassini.bin
1021 - acenic/tg1.bin
1022 - acenic/tg2.bin
1023 - adaptec/starfire_rx.bin
1024 - adaptec/starfire_tx.bin
1025 - yam/1200.bin
1026 - yam/9600.bin
1027 - 3com/3C359.bin
1028 - ositech/Xilinx7OD.bin
1029 - qlogic/isp1000.bin
1030 - myricom/lanai.bin
1031 - yamaha/yss225_registers.bin
1032 - lgs8g75.fw
1033 - )
1034 -
1035 - default
1036 -
1037 - # remove sources and documentation (wildcards are expanded)
1038 - rm -r ${source_files[@]} || die
1039 - rm -rf .git
1040 -
1041 - if use !unknown-license; then
1042 - # remove files in unknown_license
1043 - rm "${unknown_license[@]}" || die
1044 - fi
1045 -
1046 - if use !redistributable; then
1047 - # remove files _not_ in the free_software or unknown_license lists
1048 - # everything else is confirmed (or assumed) to be redistributable
1049 - # based on upstream acceptance policy
1050 - local IFS=$'\n'
1051 - find ! -type d -printf "%P\n" \
1052 - | grep -Fvx -e "${free_software[*]}" -e "${unknown_license[*]}" \
1053 - | xargs -d '\n' rm || die
1054 - IFS=$' \t\n'
1055 - fi
1056 -
1057 - echo "# Remove files that shall not be installed from this list." > ${PN}.conf
1058 - find * ! -type d ! -name ${PN}.conf >> ${PN}.conf
1059 -
1060 - if use savedconfig; then
1061 - restore_config ${PN}.conf
1062 -
1063 - ebegin "Removing all files not listed in config"
1064 - find ! -type d ! -name ${PN}.conf -printf "%P\n" \
1065 - | grep -Fvx -f <(grep -v '^#' ${PN}.conf \
1066 - || die "grep failed, empty config file?") \
1067 - | xargs -d '\n' --no-run-if-empty rm
1068 - eend $? || die
1069 - fi
1070 -
1071 - # remove empty directories, bug #396073
1072 - find -type d -empty -delete || die
1073 -}
1074 -
1075 -src_install() {
1076 - if use !savedconfig; then
1077 - save_config ${PN}.conf
1078 - fi
1079 - rm ${PN}.conf || die
1080 -
1081 - if ! ( shopt -s failglob; : * ) 2>/dev/null; then
1082 - eerror "No files to install. Check your USE flag settings"
1083 - eerror "and the list of files in your saved configuration."
1084 - die "Refusing to install an empty package"
1085 - fi
1086 -
1087 - insinto /lib/firmware/
1088 - doins -r *
1089 -}
1090 -
1091 -pkg_preinst() {
1092 - if use savedconfig; then
1093 - ewarn "USE=savedconfig is active. You must handle file collisions manually."
1094 - fi
1095 -}
1096 -
1097 -pkg_postinst() {
1098 - elog "If you are only interested in particular firmware files, edit the saved"
1099 - elog "configfile and remove those that you do not want."
1100 -
1101 - local ver
1102 - for ver in ${REPLACING_VERSIONS}; do
1103 - if ver_test ${ver} -lt 20190514; then
1104 - elog
1105 - elog 'Starting with version 20190514, installation of many firmware'
1106 - elog 'files is controlled by USE flags. Please review your USE flag'
1107 - elog 'and package.license settings if you are missing some files.'
1108 - break
1109 - fi
1110 - done
1111 -}
1112
1113 diff --git a/sys-kernel/linux-firmware/linux-firmware-20190717.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190717.ebuild
1114 deleted file mode 100644
1115 index e2002ef04f1..00000000000
1116 --- a/sys-kernel/linux-firmware/linux-firmware-20190717.ebuild
1117 +++ /dev/null
1118 @@ -1,301 +0,0 @@
1119 -# Copyright 1999-2019 Gentoo Authors
1120 -# Distributed under the terms of the GNU General Public License v2
1121 -
1122 -EAPI=7
1123 -inherit savedconfig
1124 -
1125 -if [[ ${PV} == 99999999* ]]; then
1126 - inherit git-r3
1127 - EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
1128 -else
1129 - GIT_COMMIT="bf13a71b18af229b4c900b321ef1f8443028ded8"
1130 - SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
1131 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 mips ppc ppc64 s390 sh sparc x86"
1132 -fi
1133 -
1134 -DESCRIPTION="Linux firmware files"
1135 -HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
1136 -
1137 -LICENSE="GPL-2 GPL-2+ GPL-3 BSD MIT || ( MPL-1.1 GPL-2 )
1138 - redistributable? (
1139 - linux-fw-redistributable ( BSD-2 BSD BSD-4 ISC MIT no-source-code ) )
1140 - unknown-license? ( all-rights-reserved )"
1141 -SLOT="0"
1142 -IUSE="+redistributable savedconfig unknown-license"
1143 -RESTRICT="binchecks strip
1144 - unknown-license? ( bindist )"
1145 -
1146 -RDEPEND="!savedconfig? (
1147 - redistributable? (
1148 - !sys-firmware/alsa-firmware[alsa_cards_ca0132]
1149 - !media-tv/cx18-firmware
1150 - !<sys-firmware/ivtv-firmware-20080701-r1
1151 - !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
1152 - !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
1153 - !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
1154 - !net-dialup/ueagle-atm
1155 - !net-dialup/ueagle4-atm
1156 - !net-wireless/ar9271-firmware
1157 - !net-wireless/i2400m-fw
1158 - !net-wireless/libertas-firmware
1159 - !sys-firmware/rt61-firmware
1160 - !net-wireless/rt73-firmware
1161 - !net-wireless/rt2860-firmware
1162 - !net-wireless/rt2870-firmware
1163 - !sys-block/qla-fc-firmware
1164 - !sys-firmware/amd-ucode
1165 - !sys-firmware/iwl1000-ucode
1166 - !sys-firmware/iwl2000-ucode
1167 - !sys-firmware/iwl2030-ucode
1168 - !sys-firmware/iwl3945-ucode
1169 - !sys-firmware/iwl4965-ucode
1170 - !sys-firmware/iwl5000-ucode
1171 - !sys-firmware/iwl5150-ucode
1172 - !sys-firmware/iwl6000-ucode
1173 - !sys-firmware/iwl6005-ucode
1174 - !sys-firmware/iwl6030-ucode
1175 - !sys-firmware/iwl6050-ucode
1176 - !sys-firmware/iwl3160-ucode
1177 - !sys-firmware/iwl7260-ucode
1178 - !sys-firmware/iwl7265-ucode
1179 - !sys-firmware/iwl3160-7260-bt-ucode
1180 - !sys-firmware/radeon-ucode
1181 - )
1182 - unknown-license? (
1183 - !sys-firmware/alsa-firmware[alsa_cards_korg1212]
1184 - !sys-firmware/alsa-firmware[alsa_cards_maestro3]
1185 - !sys-firmware/alsa-firmware[alsa_cards_sb16]
1186 - !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
1187 - )
1188 - )"
1189 -
1190 -#add anything else that collides to this
1191 -
1192 -src_unpack() {
1193 - if [[ ${PV} == 99999999* ]]; then
1194 - git-r3_src_unpack
1195 - else
1196 - default
1197 - # rename directory from git snapshot tarball
1198 - mv ${PN}-*/ ${P} || die
1199 - fi
1200 -}
1201 -
1202 -src_prepare() {
1203 - # source and documentation files, not to be installed
1204 - local source_files=(
1205 - README
1206 - WHENCE
1207 - "LICEN[CS]E*"
1208 - "GPL*"
1209 - configure
1210 - Makefile
1211 - check_whence.py
1212 - atusb/ChangeLog
1213 - av7110/Boot.S
1214 - av7110/Makefile
1215 - carl9170fw/
1216 - cis/Makefile
1217 - cis/src/
1218 - dsp56k/bootstrap.asm
1219 - dsp56k/concat-bootstrap.pl
1220 - dsp56k/Makefile
1221 - "isci/*.[ch]"
1222 - isci/Makefile
1223 - isci/README
1224 - "keyspan_pda/*.S"
1225 - keyspan_pda/Makefile
1226 - usbdux/
1227 - )
1228 -
1229 - # whitelist of images with a free software license
1230 - local free_software=(
1231 - # keyspan_pda (GPL-2+)
1232 - keyspan_pda/keyspan_pda.fw
1233 - keyspan_pda/xircom_pgs.fw
1234 - # dsp56k (GPL-2+)
1235 - dsp56k/bootstrap.bin
1236 - # ath9k_htc (BSD GPL-2+ MIT)
1237 - ath9k_htc/htc_7010-1.4.0.fw
1238 - ath9k_htc/htc_9271-1.4.0.fw
1239 - # pcnet_cs, 3c589_cs, 3c574_cs, serial_cs (dual GPL-2/MPL-1.1)
1240 - cis/LA-PCM.cis
1241 - cis/PCMLM28.cis
1242 - cis/DP83903.cis
1243 - cis/NE2K.cis
1244 - cis/tamarack.cis
1245 - cis/PE-200.cis
1246 - cis/PE520.cis
1247 - cis/3CXEM556.cis
1248 - cis/3CCFEM556.cis
1249 - cis/MT5634ZLX.cis
1250 - cis/RS-COM-2P.cis
1251 - cis/COMpad2.cis
1252 - cis/COMpad4.cis
1253 - # serial_cs (GPL-3)
1254 - cis/SW_555_SER.cis
1255 - cis/SW_7xx_SER.cis
1256 - cis/SW_8xx_SER.cis
1257 - # dvb-ttpci (GPL-2+)
1258 - av7110/bootcode.bin
1259 - # usbdux, usbduxfast, usbduxsigma (GPL-2+)
1260 - usbdux_firmware.bin
1261 - usbduxfast_firmware.bin
1262 - usbduxsigma_firmware.bin
1263 - # brcmfmac (GPL-2+)
1264 - brcm/brcmfmac4330-sdio.Prowise-PT301.txt
1265 - brcm/brcmfmac43340-sdio.meegopad-t08.txt
1266 - brcm/brcmfmac43362-sdio.cubietech,cubietruck.txt
1267 - brcm/brcmfmac43362-sdio.lemaker,bananapro.txt
1268 - brcm/brcmfmac43430a0-sdio.jumper-ezpad-mini3.txt
1269 - "brcm/brcmfmac43430a0-sdio.ONDA-V80 PLUS.txt"
1270 - brcm/brcmfmac43430-sdio.AP6212.txt
1271 - brcm/brcmfmac43430-sdio.Hampoo-D2D3_Vi8A1.txt
1272 - brcm/brcmfmac43430-sdio.MUR1DX.txt
1273 - brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt
1274 - brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
1275 - brcm/brcmfmac4356-pcie.gpd-win-pocket.txt
1276 - # isci (GPL-2)
1277 - isci/isci_firmware.bin
1278 - # carl9170 (GPL-2+)
1279 - carl9170-1.fw
1280 - # atusb (GPL-2+)
1281 - atusb/atusb-0.2.dfu
1282 - atusb/atusb-0.3.dfu
1283 - atusb/rzusb-0.3.bin
1284 - # mlxsw_spectrum (dual BSD/GPL-2)
1285 - mellanox/mlxsw_spectrum-13.1420.122.mfa2
1286 - mellanox/mlxsw_spectrum-13.1530.152.mfa2
1287 - mellanox/mlxsw_spectrum-13.1620.192.mfa2
1288 - mellanox/mlxsw_spectrum-13.1702.6.mfa2
1289 - mellanox/mlxsw_spectrum-13.1703.4.mfa2
1290 - mellanox/mlxsw_spectrum-13.1910.622.mfa2
1291 - mellanox/mlxsw_spectrum-13.2000.1122.mfa2
1292 - )
1293 -
1294 - # blacklist of images with unknown license
1295 - local unknown_license=(
1296 - atmsar11.fw
1297 - korg/k1212.dsp
1298 - ess/maestro3_assp_kernel.fw
1299 - ess/maestro3_assp_minisrc.fw
1300 - yamaha/ds1_ctrl.fw
1301 - yamaha/ds1_dsp.fw
1302 - yamaha/ds1e_ctrl.fw
1303 - tr_smctr.bin
1304 - ttusb-budget/dspbootcode.bin
1305 - emi62/bitstream.fw
1306 - emi62/loader.fw
1307 - emi62/midi.fw
1308 - emi62/spdif.fw
1309 - ti_3410.fw
1310 - ti_5052.fw
1311 - mts_mt9234mu.fw
1312 - mts_mt9234zba.fw
1313 - whiteheat.fw
1314 - whiteheat_loader.fw
1315 - intelliport2.bin
1316 - cpia2/stv0672_vp4.bin
1317 - vicam/firmware.fw
1318 - edgeport/boot.fw
1319 - edgeport/boot2.fw
1320 - edgeport/down.fw
1321 - edgeport/down2.fw
1322 - edgeport/down3.bin
1323 - sb16/mulaw_main.csp
1324 - sb16/alaw_main.csp
1325 - sb16/ima_adpcm_init.csp
1326 - sb16/ima_adpcm_playback.csp
1327 - sb16/ima_adpcm_capture.csp
1328 - sun/cassini.bin
1329 - acenic/tg1.bin
1330 - acenic/tg2.bin
1331 - adaptec/starfire_rx.bin
1332 - adaptec/starfire_tx.bin
1333 - yam/1200.bin
1334 - yam/9600.bin
1335 - 3com/3C359.bin
1336 - ositech/Xilinx7OD.bin
1337 - qlogic/isp1000.bin
1338 - myricom/lanai.bin
1339 - yamaha/yss225_registers.bin
1340 - lgs8g75.fw
1341 - )
1342 -
1343 - default
1344 -
1345 - # remove sources and documentation (wildcards are expanded)
1346 - rm -r ${source_files[@]} || die
1347 - rm -rf .git
1348 -
1349 - if use !unknown-license; then
1350 - # remove files in unknown_license
1351 - rm "${unknown_license[@]}" || die
1352 - fi
1353 -
1354 - if use !redistributable; then
1355 - # remove files _not_ in the free_software or unknown_license lists
1356 - # everything else is confirmed (or assumed) to be redistributable
1357 - # based on upstream acceptance policy
1358 - local IFS=$'\n'
1359 - find ! -type d -printf "%P\n" \
1360 - | grep -Fvx -e "${free_software[*]}" -e "${unknown_license[*]}" \
1361 - | xargs -d '\n' rm || die
1362 - IFS=$' \t\n'
1363 - fi
1364 -
1365 - echo "# Remove files that shall not be installed from this list." > ${PN}.conf
1366 - find * ! -type d ! -name ${PN}.conf >> ${PN}.conf
1367 -
1368 - if use savedconfig; then
1369 - restore_config ${PN}.conf
1370 -
1371 - ebegin "Removing all files not listed in config"
1372 - find ! -type d ! -name ${PN}.conf -printf "%P\n" \
1373 - | grep -Fvx -f <(grep -v '^#' ${PN}.conf \
1374 - || die "grep failed, empty config file?") \
1375 - | xargs -d '\n' --no-run-if-empty rm
1376 - eend $? || die
1377 - fi
1378 -
1379 - # remove empty directories, bug #396073
1380 - find -type d -empty -delete || die
1381 -}
1382 -
1383 -src_install() {
1384 - if use !savedconfig; then
1385 - save_config ${PN}.conf
1386 - fi
1387 - rm ${PN}.conf || die
1388 -
1389 - if ! ( shopt -s failglob; : * ) 2>/dev/null; then
1390 - eerror "No files to install. Check your USE flag settings"
1391 - eerror "and the list of files in your saved configuration."
1392 - die "Refusing to install an empty package"
1393 - fi
1394 -
1395 - insinto /lib/firmware/
1396 - doins -r *
1397 -}
1398 -
1399 -pkg_preinst() {
1400 - if use savedconfig; then
1401 - ewarn "USE=savedconfig is active. You must handle file collisions manually."
1402 - fi
1403 -}
1404 -
1405 -pkg_postinst() {
1406 - elog "If you are only interested in particular firmware files, edit the saved"
1407 - elog "configfile and remove those that you do not want."
1408 -
1409 - local ver
1410 - for ver in ${REPLACING_VERSIONS}; do
1411 - if ver_test ${ver} -lt 20190514; then
1412 - elog
1413 - elog 'Starting with version 20190514, installation of many firmware'
1414 - elog 'files is controlled by USE flags. Please review your USE flag'
1415 - elog 'and package.license settings if you are missing some files.'
1416 - break
1417 - fi
1418 - done
1419 -}
1420
1421 diff --git a/sys-kernel/linux-firmware/linux-firmware-20190726-r2.ebuild b/sys-kernel/linux-firmware/linux-firmware-20190726-r2.ebuild
1422 deleted file mode 100644
1423 index 83a5df63b99..00000000000
1424 --- a/sys-kernel/linux-firmware/linux-firmware-20190726-r2.ebuild
1425 +++ /dev/null
1426 @@ -1,354 +0,0 @@
1427 -# Copyright 1999-2019 Gentoo Authors
1428 -# Distributed under the terms of the GNU General Public License v2
1429 -
1430 -EAPI=7
1431 -inherit mount-boot savedconfig
1432 -
1433 -if [[ ${PV} == 99999999* ]]; then
1434 - inherit git-r3
1435 - EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
1436 -else
1437 - GIT_COMMIT="dff98c6c57383fe343407bcb7b6e775e0b87274f"
1438 - SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
1439 - KEYWORDS="alpha amd64 arm arm64 hppa ia64 mips ppc ppc64 s390 sh sparc x86"
1440 -fi
1441 -
1442 -DESCRIPTION="Linux firmware files"
1443 -HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git"
1444 -
1445 -LICENSE="GPL-2 GPL-2+ GPL-3 BSD MIT || ( MPL-1.1 GPL-2 )
1446 - redistributable? (
1447 - linux-fw-redistributable ( BSD-2 BSD BSD-4 ISC MIT no-source-code ) )
1448 - unknown-license? ( all-rights-reserved )"
1449 -SLOT="0"
1450 -IUSE="initramfs +redistributable savedconfig unknown-license"
1451 -RESTRICT="binchecks strip
1452 - unknown-license? ( bindist )"
1453 -
1454 -BDEPEND="initramfs? ( app-arch/cpio )"
1455 -
1456 -#add anything else that collides to this
1457 -RDEPEND="!savedconfig? (
1458 - redistributable? (
1459 - !sys-firmware/alsa-firmware[alsa_cards_ca0132]
1460 - !media-tv/cx18-firmware
1461 - !<sys-firmware/ivtv-firmware-20080701-r1
1462 - !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx]
1463 - !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885]
1464 - !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700]
1465 - !net-dialup/ueagle-atm
1466 - !net-dialup/ueagle4-atm
1467 - !net-wireless/ar9271-firmware
1468 - !net-wireless/i2400m-fw
1469 - !net-wireless/libertas-firmware
1470 - !sys-firmware/rt61-firmware
1471 - !net-wireless/rt73-firmware
1472 - !net-wireless/rt2860-firmware
1473 - !net-wireless/rt2870-firmware
1474 - !sys-block/qla-fc-firmware
1475 - !sys-firmware/amd-ucode
1476 - !sys-firmware/iwl1000-ucode
1477 - !sys-firmware/iwl2000-ucode
1478 - !sys-firmware/iwl2030-ucode
1479 - !sys-firmware/iwl3945-ucode
1480 - !sys-firmware/iwl4965-ucode
1481 - !sys-firmware/iwl5000-ucode
1482 - !sys-firmware/iwl5150-ucode
1483 - !sys-firmware/iwl6000-ucode
1484 - !sys-firmware/iwl6005-ucode
1485 - !sys-firmware/iwl6030-ucode
1486 - !sys-firmware/iwl6050-ucode
1487 - !sys-firmware/iwl3160-ucode
1488 - !sys-firmware/iwl7260-ucode
1489 - !sys-firmware/iwl7265-ucode
1490 - !sys-firmware/iwl3160-7260-bt-ucode
1491 - !sys-firmware/radeon-ucode
1492 - )
1493 - unknown-license? (
1494 - !sys-firmware/alsa-firmware[alsa_cards_korg1212]
1495 - !sys-firmware/alsa-firmware[alsa_cards_maestro3]
1496 - !sys-firmware/alsa-firmware[alsa_cards_sb16]
1497 - !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
1498 - )
1499 - )"
1500 -
1501 -pkg_pretend() {
1502 - use initramfs && mount-boot_pkg_pretend
1503 -}
1504 -
1505 -src_unpack() {
1506 - if [[ ${PV} == 99999999* ]]; then
1507 - git-r3_src_unpack
1508 - else
1509 - default
1510 - # rename directory from git snapshot tarball
1511 - mv ${PN}-*/ ${P} || die
1512 - fi
1513 -}
1514 -
1515 -src_prepare() {
1516 - # source and documentation files, not to be installed
1517 - local source_files=(
1518 - README
1519 - WHENCE
1520 - "LICEN[CS]E*"
1521 - "GPL*"
1522 - configure
1523 - Makefile
1524 - check_whence.py
1525 - atusb/ChangeLog
1526 - av7110/Boot.S
1527 - av7110/Makefile
1528 - carl9170fw/
1529 - cis/Makefile
1530 - cis/src/
1531 - dsp56k/bootstrap.asm
1532 - dsp56k/concat-bootstrap.pl
1533 - dsp56k/Makefile
1534 - "isci/*.[ch]"
1535 - isci/Makefile
1536 - isci/README
1537 - "keyspan_pda/*.S"
1538 - keyspan_pda/Makefile
1539 - usbdux/
1540 - )
1541 -
1542 - # whitelist of images with a free software license
1543 - local free_software=(
1544 - # keyspan_pda (GPL-2+)
1545 - keyspan_pda/keyspan_pda.fw
1546 - keyspan_pda/xircom_pgs.fw
1547 - # dsp56k (GPL-2+)
1548 - dsp56k/bootstrap.bin
1549 - # ath9k_htc (BSD GPL-2+ MIT)
1550 - ath9k_htc/htc_7010-1.4.0.fw
1551 - ath9k_htc/htc_9271-1.4.0.fw
1552 - # pcnet_cs, 3c589_cs, 3c574_cs, serial_cs (dual GPL-2/MPL-1.1)
1553 - cis/LA-PCM.cis
1554 - cis/PCMLM28.cis
1555 - cis/DP83903.cis
1556 - cis/NE2K.cis
1557 - cis/tamarack.cis
1558 - cis/PE-200.cis
1559 - cis/PE520.cis
1560 - cis/3CXEM556.cis
1561 - cis/3CCFEM556.cis
1562 - cis/MT5634ZLX.cis
1563 - cis/RS-COM-2P.cis
1564 - cis/COMpad2.cis
1565 - cis/COMpad4.cis
1566 - # serial_cs (GPL-3)
1567 - cis/SW_555_SER.cis
1568 - cis/SW_7xx_SER.cis
1569 - cis/SW_8xx_SER.cis
1570 - # dvb-ttpci (GPL-2+)
1571 - av7110/bootcode.bin
1572 - # usbdux, usbduxfast, usbduxsigma (GPL-2+)
1573 - usbdux_firmware.bin
1574 - usbduxfast_firmware.bin
1575 - usbduxsigma_firmware.bin
1576 - # brcmfmac (GPL-2+)
1577 - brcm/brcmfmac4330-sdio.Prowise-PT301.txt
1578 - brcm/brcmfmac43340-sdio.meegopad-t08.txt
1579 - brcm/brcmfmac43362-sdio.cubietech,cubietruck.txt
1580 - brcm/brcmfmac43362-sdio.lemaker,bananapro.txt
1581 - brcm/brcmfmac43430a0-sdio.jumper-ezpad-mini3.txt
1582 - "brcm/brcmfmac43430a0-sdio.ONDA-V80 PLUS.txt"
1583 - brcm/brcmfmac43430-sdio.AP6212.txt
1584 - brcm/brcmfmac43430-sdio.Hampoo-D2D3_Vi8A1.txt
1585 - brcm/brcmfmac43430-sdio.MUR1DX.txt
1586 - brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt
1587 - brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
1588 - brcm/brcmfmac4356-pcie.gpd-win-pocket.txt
1589 - # isci (GPL-2)
1590 - isci/isci_firmware.bin
1591 - # carl9170 (GPL-2+)
1592 - carl9170-1.fw
1593 - # atusb (GPL-2+)
1594 - atusb/atusb-0.2.dfu
1595 - atusb/atusb-0.3.dfu
1596 - atusb/rzusb-0.3.bin
1597 - # mlxsw_spectrum (dual BSD/GPL-2)
1598 - mellanox/mlxsw_spectrum-13.1420.122.mfa2
1599 - mellanox/mlxsw_spectrum-13.1530.152.mfa2
1600 - mellanox/mlxsw_spectrum-13.1620.192.mfa2
1601 - mellanox/mlxsw_spectrum-13.1702.6.mfa2
1602 - mellanox/mlxsw_spectrum-13.1703.4.mfa2
1603 - mellanox/mlxsw_spectrum-13.1910.622.mfa2
1604 - mellanox/mlxsw_spectrum-13.2000.1122.mfa2
1605 - )
1606 -
1607 - # blacklist of images with unknown license
1608 - local unknown_license=(
1609 - atmsar11.fw
1610 - korg/k1212.dsp
1611 - ess/maestro3_assp_kernel.fw
1612 - ess/maestro3_assp_minisrc.fw
1613 - yamaha/ds1_ctrl.fw
1614 - yamaha/ds1_dsp.fw
1615 - yamaha/ds1e_ctrl.fw
1616 - tr_smctr.bin
1617 - ttusb-budget/dspbootcode.bin
1618 - emi62/bitstream.fw
1619 - emi62/loader.fw
1620 - emi62/midi.fw
1621 - emi62/spdif.fw
1622 - ti_3410.fw
1623 - ti_5052.fw
1624 - mts_mt9234mu.fw
1625 - mts_mt9234zba.fw
1626 - whiteheat.fw
1627 - whiteheat_loader.fw
1628 - intelliport2.bin
1629 - cpia2/stv0672_vp4.bin
1630 - vicam/firmware.fw
1631 - edgeport/boot.fw
1632 - edgeport/boot2.fw
1633 - edgeport/down.fw
1634 - edgeport/down2.fw
1635 - edgeport/down3.bin
1636 - sb16/mulaw_main.csp
1637 - sb16/alaw_main.csp
1638 - sb16/ima_adpcm_init.csp
1639 - sb16/ima_adpcm_playback.csp
1640 - sb16/ima_adpcm_capture.csp
1641 - sun/cassini.bin
1642 - acenic/tg1.bin
1643 - acenic/tg2.bin
1644 - adaptec/starfire_rx.bin
1645 - adaptec/starfire_tx.bin
1646 - yam/1200.bin
1647 - yam/9600.bin
1648 - 3com/3C359.bin
1649 - ositech/Xilinx7OD.bin
1650 - qlogic/isp1000.bin
1651 - myricom/lanai.bin
1652 - yamaha/yss225_registers.bin
1653 - lgs8g75.fw
1654 - )
1655 -
1656 - default
1657 -
1658 - # remove sources and documentation (wildcards are expanded)
1659 - rm -r ${source_files[@]} || die
1660 - rm -rf .git
1661 -
1662 - if use !unknown-license; then
1663 - # remove files in unknown_license
1664 - rm "${unknown_license[@]}" || die
1665 - fi
1666 -
1667 - if use !redistributable; then
1668 - # remove files _not_ in the free_software or unknown_license lists
1669 - # everything else is confirmed (or assumed) to be redistributable
1670 - # based on upstream acceptance policy
1671 - local IFS=$'\n'
1672 - find ! -type d -printf "%P\n" \
1673 - | grep -Fvx -e "${free_software[*]}" -e "${unknown_license[*]}" \
1674 - | xargs -d '\n' rm || die
1675 - IFS=$' \t\n'
1676 - fi
1677 -
1678 - if use initramfs; then
1679 - if [[ -d "${S}/amd-ucode" ]]; then
1680 - local UCODETMP="${T}/ucode_tmp"
1681 - local UCODEDIR="${UCODETMP}/kernel/x86/microcode"
1682 - mkdir -p "${UCODEDIR}" || die
1683 - echo 1 > "${UCODETMP}/early_cpio"
1684 -
1685 - local amd_ucode_file="${UCODEDIR}/AuthenticAMD.bin"
1686 - cat "${S}"/amd-ucode/*.bin > "${amd_ucode_file}" || die "Failed to concat amd cpu ucode"
1687 -
1688 - if [[ ! -s "${amd_ucode_file}" ]]; then
1689 - die "Sanity check failed: '${amd_ucode_file}' is empty!"
1690 - fi
1691 -
1692 - pushd "${UCODETMP}" &>/dev/null || die
1693 - find . -print0 | cpio --quiet --null -o -H newc -R 0:0 > "${S}"/amd-uc.img
1694 - popd &>/dev/null || die
1695 - if [[ ! -s "${S}/amd-uc.img" ]]; then
1696 - die "Failed to create '${S}/amd-uc.img'!"
1697 - fi
1698 - else
1699 - # If this will ever happen something has changed which
1700 - # must be reviewed
1701 - die "'${S}/amd-ucode' not found!"
1702 - fi
1703 - fi
1704 -
1705 - echo "# Remove files that shall not be installed from this list." > ${PN}.conf
1706 - find * ! -type d ! \( -name ${PN}.conf -o -name amd-uc.img \) >> ${PN}.conf
1707 -
1708 - if use savedconfig; then
1709 - restore_config ${PN}.conf
1710 -
1711 - ebegin "Removing all files not listed in config"
1712 - find ! -type d ! \( -name ${PN}.conf -o -name amd-uc.img \) -printf "%P\n" \
1713 - | grep -Fvx -f <(grep -v '^#' ${PN}.conf \
1714 - || die "grep failed, empty config file?") \
1715 - | xargs -d '\n' --no-run-if-empty rm
1716 - eend $? || die
1717 - fi
1718 -
1719 - # remove empty directories, bug #396073
1720 - find -type d -empty -delete || die
1721 -}
1722 -
1723 -src_install() {
1724 - if use !savedconfig; then
1725 - save_config ${PN}.conf
1726 - fi
1727 - rm ${PN}.conf || die
1728 -
1729 - if use initramfs ; then
1730 - mkdir "${ED}/boot" || die
1731 - mv "${S}"/amd-uc.img "${ED}/boot" || die
1732 - fi
1733 -
1734 - if ! ( shopt -s failglob; : * ) 2>/dev/null; then
1735 - eerror "No files to install. Check your USE flag settings"
1736 - eerror "and the list of files in your saved configuration."
1737 - die "Refusing to install an empty package"
1738 - fi
1739 -
1740 - insinto /lib/firmware/
1741 - doins -r *
1742 -}
1743 -
1744 -pkg_preinst() {
1745 - if use savedconfig; then
1746 - ewarn "USE=savedconfig is active. You must handle file collisions manually."
1747 - fi
1748 -
1749 - # Make sure /boot is available if needed.
1750 - use initramfs && mount-boot_pkg_preinst
1751 -}
1752 -
1753 -pkg_postinst() {
1754 - elog "If you are only interested in particular firmware files, edit the saved"
1755 - elog "configfile and remove those that you do not want."
1756 -
1757 - local ver
1758 - for ver in ${REPLACING_VERSIONS}; do
1759 - if ver_test ${ver} -lt 20190514; then
1760 - elog
1761 - elog 'Starting with version 20190514, installation of many firmware'
1762 - elog 'files is controlled by USE flags. Please review your USE flag'
1763 - elog 'and package.license settings if you are missing some files.'
1764 - break
1765 - fi
1766 - done
1767 -
1768 - # Don't forget to umount /boot if it was previously mounted by us.
1769 - use initramfs && mount-boot_pkg_postinst
1770 -}
1771 -
1772 -pkg_prerm() {
1773 - # Make sure /boot is mounted so that we can remove /boot/amd-uc.img!
1774 - use initramfs && mount-boot_pkg_prerm
1775 -}
1776 -
1777 -pkg_postrm() {
1778 - # Don't forget to umount /boot if it was previously mounted by us.
1779 - use initramfs && mount-boot_pkg_postrm
1780 -}