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