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: Tue, 28 Aug 2018 16:11:46
Message-Id: 1535472688.ba02d9d68897b09c7f64450e4d74d887a477a999.whissi@gentoo
1 commit: ba02d9d68897b09c7f64450e4d74d887a477a999
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 28 16:11:28 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 28 16:11:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba02d9d6
7
8 sys-kernel/linux-firmware: update snapshot
9
10 Package-Manager: Portage-2.3.48, Repoman-2.3.10
11
12 sys-kernel/linux-firmware/Manifest | 1 +
13 .../linux-firmware/linux-firmware-20180825.ebuild | 114 +++++++++++++++++++++
14 2 files changed, 115 insertions(+)
15
16 diff --git a/sys-kernel/linux-firmware/Manifest b/sys-kernel/linux-firmware/Manifest
17 index 0aa989f1f6e..590066203f5 100644
18 --- a/sys-kernel/linux-firmware/Manifest
19 +++ b/sys-kernel/linux-firmware/Manifest
20 @@ -2,4 +2,5 @@ DIST linux-firmware-20180103.tar.gz 138263360 BLAKE2B b7af0f94bf7111a1f4a10c7403
21 DIST linux-firmware-20180606.tar.gz 152670671 BLAKE2B 7c4fb07451c1c459bd0bf8bec15e3bff41bdb64166decfd7776650c85f0b373c97dfa23330ebb7ddd4bc144bffb57751f3a94bb4a352e5f8ef1dd0b8a3679c81 SHA512 4eb02e11beffde5bf8daff45af78304881e01eb51004ff0758bfff3a4a4cb59f6a2e081b7a3c3e07734a29954f09fa6277f920c2bdab6aeb608065936861c650
22 DIST linux-firmware-20180717.tar.gz 155038756 BLAKE2B be94a60c95b23ad14008ed2c1d6eb1e126ef4b959bb9375b9d6c7374d16de0b503c434c00975cb9be74cc8d191db826ec58312a1405c558eb476807dfcf247cd SHA512 e885b31d01c7aa7864742dc3f2b67888aa93166390d5572ae56d191656991876e4aea1e412e452f4caa6ee031d0ab10c26f615f639cfde6f15bdea47a9819816
23 DIST linux-firmware-20180730.tar.gz 156004891 BLAKE2B 38472066f4af965f5d3186d719b324e65874d4c25cec335fa522555e29d9a67d7cd22594977cb8800f10915da122cfe9906e0e64675c3733b9659c2338eaee69 SHA512 dc1a5b118b7f4f7760115ba45ab6c836661f5b1d68f4daad294c88f9f7448a0e42ee0de5be27cca418acf57c2d214ca166b6e7ab6711f8a68b6c8c3e68c2812e
24 +DIST linux-firmware-20180825.tar.gz 156618714 BLAKE2B 1bf44c456a87dce2e0622c8ef80bacae9d1aa76efacbb1519718be4a2c3e36a72b8baced8dc17953515052be923b85a8368179dfad591fbc7402521bce564e20 SHA512 583623fedf18a987a20cb6f5337146131a7b17a95ee79cb4b35199b6ecf42af039b824623235501685db18839c0d7e9e81cd79ed47fb993b4e72346bf9159021
25 DIST microcode_amd_fam17h.tar.gz 2204 BLAKE2B 20f3b006587f49fced335fd38711da2384a1f5cd0b93a483d7022d8aa211dc855427a637583dd2eae9f108120f2fda4b80db081d48d3332da906de8e10b94464 SHA512 d3b52797a5968f8da76d39322780e61d04bab5d810b0b07d64e469fcd67998e4191b0e0a9ab7e4c27189941369ef1b2850bbbb1458fd9bbeb958c98f6e378510
26
27 diff --git a/sys-kernel/linux-firmware/linux-firmware-20180825.ebuild b/sys-kernel/linux-firmware/linux-firmware-20180825.ebuild
28 new file mode 100644
29 index 00000000000..520053a9db0
30 --- /dev/null
31 +++ b/sys-kernel/linux-firmware/linux-firmware-20180825.ebuild
32 @@ -0,0 +1,114 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="6"
37 +inherit savedconfig
38 +
39 +if [[ ${PV} == 99999999* ]]; then
40 + inherit git-r3
41 + SRC_URI=""
42 + EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/firmware/${PN}.git"
43 +else
44 + GIT_COMMIT="fea76a04f25fd0a217c0d566ff5ff8f23ad3e648"
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 ~sh ~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="linux-firmware ( BSD ISC MIT no-source-code ) GPL-2 GPL-2+ freedist"
53 +SLOT="0"
54 +IUSE="savedconfig"
55 +
56 +DEPEND=""
57 +RDEPEND="!savedconfig? (
58 + !sys-firmware/alsa-firmware[alsa_cards_ca0132]
59 + !sys-firmware/alsa-firmware[alsa_cards_korg1212]
60 + !sys-firmware/alsa-firmware[alsa_cards_maestro3]
61 + !sys-firmware/alsa-firmware[alsa_cards_sb16]
62 + !sys-firmware/alsa-firmware[alsa_cards_ymfpci]
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 +#add anything else that collides to this
97 +
98 +RESTRICT="binchecks strip"
99 +
100 +src_unpack() {
101 + if [[ ${PV} == 99999999* ]]; then
102 + git-r3_src_unpack
103 + else
104 + default
105 + # rename directory from git snapshot tarball
106 + mv ${PN}-*/ ${P} || die
107 + fi
108 +}
109 +
110 +src_prepare() {
111 + default
112 +
113 + echo "# Remove files that shall not be installed from this list." > ${PN}.conf
114 + find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf
115 +
116 + if use savedconfig; then
117 + restore_config ${PN}.conf
118 + ebegin "Removing all files not listed in config"
119 + find * \( \! -type d -and \! -name ${PN}.conf \) \
120 + | sort ${PN}.conf ${PN}.conf - \
121 + | uniq -u | xargs -r rm
122 + eend $? || die
123 + # remove empty directories, bug #396073
124 + find -type d -empty -delete || die
125 + fi
126 +}
127 +
128 +src_install() {
129 + if use !savedconfig; then
130 + save_config ${PN}.conf
131 + fi
132 + rm ${PN}.conf || die
133 + insinto /lib/firmware/
134 + doins -r *
135 +}
136 +
137 +pkg_preinst() {
138 + if use savedconfig; then
139 + ewarn "USE=savedconfig is active. You must handle file collisions manually."
140 + fi
141 +}
142 +
143 +pkg_postinst() {
144 + elog "If you are only interested in particular firmware files, edit the saved"
145 + elog "configfile and remove those that you do not want."
146 +}