Gentoo Archives: gentoo-commits

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