1 |
commit: cd9f6e64893bdb97dbba59ee82bd5861229ad43b |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 28 22:04:03 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 28 22:07:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd9f6e64 |
7 |
|
8 |
sys-kernel/linux-firmware: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
sys-kernel/linux-firmware/Manifest | 1 - |
14 |
.../linux-firmware/linux-firmware-20200413.ebuild | 356 --------------------- |
15 |
2 files changed, 357 deletions(-) |
16 |
|
17 |
diff --git a/sys-kernel/linux-firmware/Manifest b/sys-kernel/linux-firmware/Manifest |
18 |
index 59bf9c24809..0cf07e32462 100644 |
19 |
--- a/sys-kernel/linux-firmware/Manifest |
20 |
+++ b/sys-kernel/linux-firmware/Manifest |
21 |
@@ -4,5 +4,4 @@ DIST linux-firmware-20191022.tar.gz 198935619 BLAKE2B 94d90a8e85af7104f08c398d3d |
22 |
DIST linux-firmware-20191215.tar.gz 203746264 BLAKE2B cd756ac1b1bde9706cd8321133da2e4e620a3236614427ae9836fc5e98fbc62e79060e6cf50717b41391fba9d56e16140f722ffcc5764e4b81ad2e798d1b41ec SHA512 75eb78ef642cc48dc3d8d2cdd7e5312b82ee3c9ebd6ead40a02fdc1d4329c5a9226237fa0ec8e617fc358cc12144dacf4ef6c1441fe444974c1506ef21ea70a0 |
23 |
DIST linux-firmware-20200122.tar.gz 219807963 BLAKE2B 976cf7f8da61213a1210348cffdda8cae1b3f3a2d46aac05fe331fdff37e954620c2768f8941e0d4b6fff8c7b69d68b86516c9df9b9cf96538a4463b0957d1a2 SHA512 23500cc99d31597fe691341404cbe9375f7995783b4bf055a53a67ace380bdf9db1c247f12ae7e63ac02e4078e5089aa33e5cc6c2622b26dfaab4a65bfab1db3 |
24 |
DIST linux-firmware-20200316.tar.gz 221745284 BLAKE2B 6ab4944927420dd8c50d3a97beb32aff22917ab13b283c3358de9f5331479c2a4353dde68a221ac221e9ff5202e46cdaaab9b65cd0431a3984877ab44e2bd0ab SHA512 2fb16fcc474753902ab0236cbb116cdd5de10080d5ad5fc19a015ad3881a203c42beeccf5745e18346fc028a5c743d3d6439f0a04b86b2e0abf9f32aa5f55bad |
25 |
-DIST linux-firmware-20200413.tar.gz 223234435 BLAKE2B ad701dc9321a9ae3c26aab09b8154639ae1287b5660e2e746387c98054ba477e401b3ecdb36488fd08d4109f8b241ae959edbe14f37c542e5c1fc60397e9dcd5 SHA512 2a3d55495335aa875851ff284f0a0d12d248fb62c7d881a3eff2f189a465c32d59e3a2501727b062f06eb3dfba64cf69fb9e46a1646da7ef40dc40e5e5562578 |
26 |
DIST linux-firmware-20200421.tar.gz 223307272 BLAKE2B 0f598acd7e88b4dbe275509a6cd7709ee8f6dddf79b262be3967b0ec19f4b51e1deb7bd4be8b392af42a7dcf31e978126b3390b2748ee71fd0172318d5252ccf SHA512 3f8ec2150f9895381e71cb0d0d403694784c4a50f164da59d338dbb37bb643150bed2c6de4729d37f25989b8e799475a53319882c05a06d3eadcc4c349082162 |
27 |
|
28 |
diff --git a/sys-kernel/linux-firmware/linux-firmware-20200413.ebuild b/sys-kernel/linux-firmware/linux-firmware-20200413.ebuild |
29 |
deleted file mode 100644 |
30 |
index d1bfd2533a7..00000000000 |
31 |
--- a/sys-kernel/linux-firmware/linux-firmware-20200413.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,356 +0,0 @@ |
34 |
-# Copyright 1999-2020 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=7 |
38 |
-inherit mount-boot savedconfig |
39 |
- |
40 |
-if [[ ${PV} == 99999999* ]]; then |
41 |
- inherit git-r3 |
42 |
- EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git" |
43 |
-else |
44 |
- GIT_COMMIT="64dba0fedb22eae32f76dcd4534b3f416db178de" |
45 |
- SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
46 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
47 |
-fi |
48 |
- |
49 |
-DESCRIPTION="Linux firmware files" |
50 |
-HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git" |
51 |
- |
52 |
-LICENSE="GPL-2 GPL-2+ GPL-3 BSD MIT || ( MPL-1.1 GPL-2 ) |
53 |
- redistributable? ( |
54 |
- linux-fw-redistributable ( BSD-2 BSD BSD-4 ISC MIT no-source-code ) ) |
55 |
- unknown-license? ( all-rights-reserved )" |
56 |
-SLOT="0" |
57 |
-IUSE="initramfs +redistributable savedconfig unknown-license" |
58 |
-RESTRICT="binchecks strip |
59 |
- unknown-license? ( bindist )" |
60 |
- |
61 |
-REQUIRED_USE="initramfs? ( redistributable )" |
62 |
- |
63 |
-BDEPEND="initramfs? ( app-arch/cpio )" |
64 |
- |
65 |
-#add anything else that collides to this |
66 |
-RDEPEND="!savedconfig? ( |
67 |
- redistributable? ( |
68 |
- !sys-firmware/alsa-firmware[alsa_cards_ca0132] |
69 |
- !media-tv/cx18-firmware |
70 |
- !<sys-firmware/ivtv-firmware-20080701-r1 |
71 |
- !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx] |
72 |
- !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885] |
73 |
- !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700] |
74 |
- !net-dialup/ueagle-atm |
75 |
- !net-dialup/ueagle4-atm |
76 |
- !net-wireless/ar9271-firmware |
77 |
- !net-wireless/i2400m-fw |
78 |
- !net-wireless/libertas-firmware |
79 |
- !sys-firmware/rt61-firmware |
80 |
- !net-wireless/rt73-firmware |
81 |
- !net-wireless/rt2860-firmware |
82 |
- !net-wireless/rt2870-firmware |
83 |
- !sys-block/qla-fc-firmware |
84 |
- !sys-firmware/amd-ucode |
85 |
- !sys-firmware/iwl1000-ucode |
86 |
- !sys-firmware/iwl2000-ucode |
87 |
- !sys-firmware/iwl2030-ucode |
88 |
- !sys-firmware/iwl3945-ucode |
89 |
- !sys-firmware/iwl4965-ucode |
90 |
- !sys-firmware/iwl5000-ucode |
91 |
- !sys-firmware/iwl5150-ucode |
92 |
- !sys-firmware/iwl6000-ucode |
93 |
- !sys-firmware/iwl6005-ucode |
94 |
- !sys-firmware/iwl6030-ucode |
95 |
- !sys-firmware/iwl6050-ucode |
96 |
- !sys-firmware/iwl3160-ucode |
97 |
- !sys-firmware/iwl7260-ucode |
98 |
- !sys-firmware/iwl7265-ucode |
99 |
- !sys-firmware/iwl3160-7260-bt-ucode |
100 |
- !sys-firmware/radeon-ucode |
101 |
- ) |
102 |
- unknown-license? ( |
103 |
- !sys-firmware/alsa-firmware[alsa_cards_korg1212] |
104 |
- !sys-firmware/alsa-firmware[alsa_cards_maestro3] |
105 |
- !sys-firmware/alsa-firmware[alsa_cards_sb16] |
106 |
- !sys-firmware/alsa-firmware[alsa_cards_ymfpci] |
107 |
- ) |
108 |
- )" |
109 |
- |
110 |
-pkg_pretend() { |
111 |
- use initramfs && mount-boot_pkg_pretend |
112 |
-} |
113 |
- |
114 |
-src_unpack() { |
115 |
- if [[ ${PV} == 99999999* ]]; then |
116 |
- git-r3_src_unpack |
117 |
- else |
118 |
- default |
119 |
- # rename directory from git snapshot tarball |
120 |
- if [[ ${#GIT_COMMIT} -gt 8 ]]; then |
121 |
- mv ${PN}-*/ ${P} || die |
122 |
- fi |
123 |
- fi |
124 |
-} |
125 |
- |
126 |
-src_prepare() { |
127 |
- # source and documentation files, not to be installed |
128 |
- local source_files=( |
129 |
- README |
130 |
- WHENCE |
131 |
- "LICEN[CS]E*" |
132 |
- "GPL*" |
133 |
- configure |
134 |
- Makefile |
135 |
- check_whence.py |
136 |
- atusb/ChangeLog |
137 |
- av7110/Boot.S |
138 |
- av7110/Makefile |
139 |
- carl9170fw/ |
140 |
- cis/Makefile |
141 |
- cis/src/ |
142 |
- dsp56k/bootstrap.asm |
143 |
- dsp56k/concat-bootstrap.pl |
144 |
- dsp56k/Makefile |
145 |
- "isci/*.[ch]" |
146 |
- isci/Makefile |
147 |
- isci/README |
148 |
- "keyspan_pda/*.S" |
149 |
- keyspan_pda/Makefile |
150 |
- usbdux/ |
151 |
- ) |
152 |
- |
153 |
- # whitelist of images with a free software license |
154 |
- local free_software=( |
155 |
- # keyspan_pda (GPL-2+) |
156 |
- keyspan_pda/keyspan_pda.fw |
157 |
- keyspan_pda/xircom_pgs.fw |
158 |
- # dsp56k (GPL-2+) |
159 |
- dsp56k/bootstrap.bin |
160 |
- # ath9k_htc (BSD GPL-2+ MIT) |
161 |
- ath9k_htc/htc_7010-1.4.0.fw |
162 |
- ath9k_htc/htc_9271-1.4.0.fw |
163 |
- # pcnet_cs, 3c589_cs, 3c574_cs, serial_cs (dual GPL-2/MPL-1.1) |
164 |
- cis/LA-PCM.cis |
165 |
- cis/PCMLM28.cis |
166 |
- cis/DP83903.cis |
167 |
- cis/NE2K.cis |
168 |
- cis/tamarack.cis |
169 |
- cis/PE-200.cis |
170 |
- cis/PE520.cis |
171 |
- cis/3CXEM556.cis |
172 |
- cis/3CCFEM556.cis |
173 |
- cis/MT5634ZLX.cis |
174 |
- cis/RS-COM-2P.cis |
175 |
- cis/COMpad2.cis |
176 |
- cis/COMpad4.cis |
177 |
- # serial_cs (GPL-3) |
178 |
- cis/SW_555_SER.cis |
179 |
- cis/SW_7xx_SER.cis |
180 |
- cis/SW_8xx_SER.cis |
181 |
- # dvb-ttpci (GPL-2+) |
182 |
- av7110/bootcode.bin |
183 |
- # usbdux, usbduxfast, usbduxsigma (GPL-2+) |
184 |
- usbdux_firmware.bin |
185 |
- usbduxfast_firmware.bin |
186 |
- usbduxsigma_firmware.bin |
187 |
- # brcmfmac (GPL-2+) |
188 |
- brcm/brcmfmac4330-sdio.Prowise-PT301.txt |
189 |
- brcm/brcmfmac43340-sdio.meegopad-t08.txt |
190 |
- brcm/brcmfmac43362-sdio.cubietech,cubietruck.txt |
191 |
- brcm/brcmfmac43362-sdio.lemaker,bananapro.txt |
192 |
- brcm/brcmfmac43430a0-sdio.jumper-ezpad-mini3.txt |
193 |
- "brcm/brcmfmac43430a0-sdio.ONDA-V80 PLUS.txt" |
194 |
- brcm/brcmfmac43430-sdio.AP6212.txt |
195 |
- brcm/brcmfmac43430-sdio.Hampoo-D2D3_Vi8A1.txt |
196 |
- brcm/brcmfmac43430-sdio.MUR1DX.txt |
197 |
- brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt |
198 |
- brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt |
199 |
- brcm/brcmfmac4356-pcie.gpd-win-pocket.txt |
200 |
- # isci (GPL-2) |
201 |
- isci/isci_firmware.bin |
202 |
- # carl9170 (GPL-2+) |
203 |
- carl9170-1.fw |
204 |
- # atusb (GPL-2+) |
205 |
- atusb/atusb-0.2.dfu |
206 |
- atusb/atusb-0.3.dfu |
207 |
- atusb/rzusb-0.3.bin |
208 |
- # mlxsw_spectrum (dual BSD/GPL-2) |
209 |
- mellanox/mlxsw_spectrum-13.1420.122.mfa2 |
210 |
- mellanox/mlxsw_spectrum-13.1530.152.mfa2 |
211 |
- mellanox/mlxsw_spectrum-13.1620.192.mfa2 |
212 |
- mellanox/mlxsw_spectrum-13.1702.6.mfa2 |
213 |
- mellanox/mlxsw_spectrum-13.1703.4.mfa2 |
214 |
- mellanox/mlxsw_spectrum-13.1910.622.mfa2 |
215 |
- mellanox/mlxsw_spectrum-13.2000.1122.mfa2 |
216 |
- ) |
217 |
- |
218 |
- # blacklist of images with unknown license |
219 |
- local unknown_license=( |
220 |
- atmsar11.fw |
221 |
- korg/k1212.dsp |
222 |
- ess/maestro3_assp_kernel.fw |
223 |
- ess/maestro3_assp_minisrc.fw |
224 |
- yamaha/ds1_ctrl.fw |
225 |
- yamaha/ds1_dsp.fw |
226 |
- yamaha/ds1e_ctrl.fw |
227 |
- tr_smctr.bin |
228 |
- ttusb-budget/dspbootcode.bin |
229 |
- emi62/bitstream.fw |
230 |
- emi62/loader.fw |
231 |
- emi62/midi.fw |
232 |
- emi62/spdif.fw |
233 |
- ti_3410.fw |
234 |
- ti_5052.fw |
235 |
- mts_mt9234mu.fw |
236 |
- mts_mt9234zba.fw |
237 |
- whiteheat.fw |
238 |
- whiteheat_loader.fw |
239 |
- intelliport2.bin |
240 |
- cpia2/stv0672_vp4.bin |
241 |
- vicam/firmware.fw |
242 |
- edgeport/boot.fw |
243 |
- edgeport/boot2.fw |
244 |
- edgeport/down.fw |
245 |
- edgeport/down2.fw |
246 |
- edgeport/down3.bin |
247 |
- sb16/mulaw_main.csp |
248 |
- sb16/alaw_main.csp |
249 |
- sb16/ima_adpcm_init.csp |
250 |
- sb16/ima_adpcm_playback.csp |
251 |
- sb16/ima_adpcm_capture.csp |
252 |
- sun/cassini.bin |
253 |
- acenic/tg1.bin |
254 |
- acenic/tg2.bin |
255 |
- adaptec/starfire_rx.bin |
256 |
- adaptec/starfire_tx.bin |
257 |
- yam/1200.bin |
258 |
- yam/9600.bin |
259 |
- 3com/3C359.bin |
260 |
- ositech/Xilinx7OD.bin |
261 |
- qlogic/isp1000.bin |
262 |
- myricom/lanai.bin |
263 |
- yamaha/yss225_registers.bin |
264 |
- lgs8g75.fw |
265 |
- ) |
266 |
- |
267 |
- default |
268 |
- |
269 |
- # remove sources and documentation (wildcards are expanded) |
270 |
- rm -r ${source_files[@]} || die |
271 |
- rm -rf .git |
272 |
- |
273 |
- if use !unknown-license; then |
274 |
- # remove files in unknown_license |
275 |
- rm "${unknown_license[@]}" || die |
276 |
- fi |
277 |
- |
278 |
- if use !redistributable; then |
279 |
- # remove files _not_ in the free_software or unknown_license lists |
280 |
- # everything else is confirmed (or assumed) to be redistributable |
281 |
- # based on upstream acceptance policy |
282 |
- local IFS=$'\n' |
283 |
- find ! -type d -printf "%P\n" \ |
284 |
- | grep -Fvx -e "${free_software[*]}" -e "${unknown_license[*]}" \ |
285 |
- | xargs -d '\n' rm || die |
286 |
- IFS=$' \t\n' |
287 |
- fi |
288 |
- |
289 |
- if use initramfs; then |
290 |
- if [[ -d "${S}/amd-ucode" ]]; then |
291 |
- local UCODETMP="${T}/ucode_tmp" |
292 |
- local UCODEDIR="${UCODETMP}/kernel/x86/microcode" |
293 |
- mkdir -p "${UCODEDIR}" || die |
294 |
- echo 1 > "${UCODETMP}/early_cpio" |
295 |
- |
296 |
- local amd_ucode_file="${UCODEDIR}/AuthenticAMD.bin" |
297 |
- cat "${S}"/amd-ucode/*.bin > "${amd_ucode_file}" || die "Failed to concat amd cpu ucode" |
298 |
- |
299 |
- if [[ ! -s "${amd_ucode_file}" ]]; then |
300 |
- die "Sanity check failed: '${amd_ucode_file}' is empty!" |
301 |
- fi |
302 |
- |
303 |
- pushd "${UCODETMP}" &>/dev/null || die |
304 |
- find . -print0 | cpio --quiet --null -o -H newc -R 0:0 > "${S}"/amd-uc.img |
305 |
- popd &>/dev/null || die |
306 |
- if [[ ! -s "${S}/amd-uc.img" ]]; then |
307 |
- die "Failed to create '${S}/amd-uc.img'!" |
308 |
- fi |
309 |
- else |
310 |
- # If this will ever happen something has changed which |
311 |
- # must be reviewed |
312 |
- die "'${S}/amd-ucode' not found!" |
313 |
- fi |
314 |
- fi |
315 |
- |
316 |
- echo "# Remove files that shall not be installed from this list." > ${PN}.conf |
317 |
- find * ! -type d ! \( -name ${PN}.conf -o -name amd-uc.img \) >> ${PN}.conf |
318 |
- |
319 |
- if use savedconfig; then |
320 |
- restore_config ${PN}.conf |
321 |
- |
322 |
- ebegin "Removing all files not listed in config" |
323 |
- find ! -type d ! \( -name ${PN}.conf -o -name amd-uc.img \) -printf "%P\n" \ |
324 |
- | grep -Fvx -f <(grep -v '^#' ${PN}.conf \ |
325 |
- || die "grep failed, empty config file?") \ |
326 |
- | xargs -d '\n' --no-run-if-empty rm |
327 |
- eend $? || die |
328 |
- fi |
329 |
- |
330 |
- # remove empty directories, bug #396073 |
331 |
- find -type d -empty -delete || die |
332 |
-} |
333 |
- |
334 |
-src_install() { |
335 |
- save_config ${PN}.conf |
336 |
- rm ${PN}.conf || die |
337 |
- |
338 |
- if use initramfs ; then |
339 |
- mkdir "${ED}/boot" || die |
340 |
- mv "${S}"/amd-uc.img "${ED}/boot" || die |
341 |
- fi |
342 |
- |
343 |
- if ! ( shopt -s failglob; : * ) 2>/dev/null; then |
344 |
- eerror "No files to install. Check your USE flag settings" |
345 |
- eerror "and the list of files in your saved configuration." |
346 |
- die "Refusing to install an empty package" |
347 |
- fi |
348 |
- |
349 |
- insinto /lib/firmware/ |
350 |
- doins -r * |
351 |
-} |
352 |
- |
353 |
-pkg_preinst() { |
354 |
- if use savedconfig; then |
355 |
- ewarn "USE=savedconfig is active. You must handle file collisions manually." |
356 |
- fi |
357 |
- |
358 |
- # Make sure /boot is available if needed. |
359 |
- use initramfs && mount-boot_pkg_preinst |
360 |
-} |
361 |
- |
362 |
-pkg_postinst() { |
363 |
- elog "If you are only interested in particular firmware files, edit the saved" |
364 |
- elog "configfile and remove those that you do not want." |
365 |
- |
366 |
- local ver |
367 |
- for ver in ${REPLACING_VERSIONS}; do |
368 |
- if ver_test ${ver} -lt 20190514; then |
369 |
- elog |
370 |
- elog 'Starting with version 20190514, installation of many firmware' |
371 |
- elog 'files is controlled by USE flags. Please review your USE flag' |
372 |
- elog 'and package.license settings if you are missing some files.' |
373 |
- break |
374 |
- fi |
375 |
- done |
376 |
- |
377 |
- # Don't forget to umount /boot if it was previously mounted by us. |
378 |
- use initramfs && mount-boot_pkg_postinst |
379 |
-} |
380 |
- |
381 |
-pkg_prerm() { |
382 |
- # Make sure /boot is mounted so that we can remove /boot/amd-uc.img! |
383 |
- use initramfs && mount-boot_pkg_prerm |
384 |
-} |
385 |
- |
386 |
-pkg_postrm() { |
387 |
- # Don't forget to umount /boot if it was previously mounted by us. |
388 |
- use initramfs && mount-boot_pkg_postrm |
389 |
-} |