1 |
commit: c1deb34e8f97f91111c8244c73ad93a5cca5b6b5 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 16 12:15:48 2018 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 16 12:15:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1deb34e |
7 |
|
8 |
sys-kernel/linux-firmware: Update snapshot |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
sys-kernel/linux-firmware/Manifest | 1 + |
13 |
.../linux-firmware/linux-firmware-20180213.ebuild | 119 +++++++++++++++++++++ |
14 |
2 files changed, 120 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/linux-firmware/Manifest b/sys-kernel/linux-firmware/Manifest |
17 |
index f6dbba85536..69508ebb303 100644 |
18 |
--- a/sys-kernel/linux-firmware/Manifest |
19 |
+++ b/sys-kernel/linux-firmware/Manifest |
20 |
@@ -1,4 +1,5 @@ |
21 |
DIST linux-firmware-20170314.tar.gz 96072698 BLAKE2B bf650b91a696d88272361c1845d0d7856e90c6d6e1d008a3d5f40bb9beb43a6047f2280d7e4fabeff25a2518c63086a331f1e1af59c458d6bec451efc4415ad2 SHA512 1e3a40d42ccd5260afd66161727e45af1de80129093f83f547f20502fce075927952629bfda4ec5b53a6f279daca0304fb462e7c6aa566bfe2b9b687688b6460 |
22 |
DIST linux-firmware-20180103.tar.gz 138263360 BLAKE2B b7af0f94bf7111a1f4a10c7403f43dbfe837912ccf3afd4bcc362e483bcf15e02df76a37b112b2545c67bfbb2df031890dead100552e402ffc4727041409d891 SHA512 ed95205c075b47a2f30d9c96181ca0047de017abb1b5904f7c504a0afb8ea673c179980eb92d5690dd1a5cfb29815f224f384b4dcc472f80ddc90af3b2cbd4ce |
23 |
DIST linux-firmware-20180119.tar.gz 138505266 BLAKE2B d97f8d674b73f487cc90d4ad1f82c45967953bb5fd5241b7f552908efe39a3fe5890ab02b4826df9269bc7abd3dabd2ccf81542af11c97ae50335dc97c70b4ff SHA512 4378d6f9a80cc6c5f6b387b321794bb2a1c7931aebc90d134858ce59d83428d684ff22587efd234e9b30e6d71f672f9e04a92fa0b2c21605912e5ec72252be12 |
24 |
+DIST linux-firmware-20180213.tar.gz 140041732 BLAKE2B 8f8b382233c0d7ad3c1e82169880ed9ab8a00f3372e27f79a0c43bcf8493740dd6c496559a4b28d531878ea32b88ad0e68480ed487f23fa70b2d7c4534ef96b0 SHA512 d4c4e72cf55111cd1914d6f82def864f951c31f7d90031a14c0420ab4d36421c49df788f24ef0c3677b32ae10a1d7920a0d1a4fa983a8f1106715f94fd7977ed |
25 |
DIST microcode_amd_fam17h.tar.gz 2204 BLAKE2B 20f3b006587f49fced335fd38711da2384a1f5cd0b93a483d7022d8aa211dc855427a637583dd2eae9f108120f2fda4b80db081d48d3332da906de8e10b94464 SHA512 d3b52797a5968f8da76d39322780e61d04bab5d810b0b07d64e469fcd67998e4191b0e0a9ab7e4c27189941369ef1b2850bbbb1458fd9bbeb958c98f6e378510 |
26 |
|
27 |
diff --git a/sys-kernel/linux-firmware/linux-firmware-20180213.ebuild b/sys-kernel/linux-firmware/linux-firmware-20180213.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..2f5f28f6e0b |
30 |
--- /dev/null |
31 |
+++ b/sys-kernel/linux-firmware/linux-firmware-20180213.ebuild |
32 |
@@ -0,0 +1,119 @@ |
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 |
+ KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86" |
44 |
+else |
45 |
+ GIT_COMMIT="6d5131107f2ba67a13f469ac770a55f101ba654d" |
46 |
+ SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> ${P}.tar.gz |
47 |
+ mirror://gentoo/microcode_amd_fam17h.tar.gz |
48 |
+ https://dev.gentoo.org/~whissi/dist/${PN}/microcode_amd_fam17h.tar.gz" |
49 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
50 |
+fi |
51 |
+ |
52 |
+DESCRIPTION="Linux firmware files" |
53 |
+HOMEPAGE="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git" |
54 |
+ |
55 |
+LICENSE="linux-firmware ( BSD ISC MIT no-source-code ) GPL-2 GPL-2+ freedist" |
56 |
+SLOT="0" |
57 |
+IUSE="savedconfig" |
58 |
+ |
59 |
+DEPEND="" |
60 |
+RDEPEND="!savedconfig? ( |
61 |
+ !sys-firmware/alsa-firmware[alsa_cards_ca0132] |
62 |
+ !sys-firmware/alsa-firmware[alsa_cards_korg1212] |
63 |
+ !sys-firmware/alsa-firmware[alsa_cards_maestro3] |
64 |
+ !sys-firmware/alsa-firmware[alsa_cards_sb16] |
65 |
+ !sys-firmware/alsa-firmware[alsa_cards_ymfpci] |
66 |
+ !media-tv/cx18-firmware |
67 |
+ !<sys-firmware/ivtv-firmware-20080701-r1 |
68 |
+ !media-tv/linuxtv-dvb-firmware[dvb_cards_cx231xx] |
69 |
+ !media-tv/linuxtv-dvb-firmware[dvb_cards_cx23885] |
70 |
+ !media-tv/linuxtv-dvb-firmware[dvb_cards_usb-dib0700] |
71 |
+ !net-dialup/ueagle-atm |
72 |
+ !net-dialup/ueagle4-atm |
73 |
+ !net-wireless/ar9271-firmware |
74 |
+ !net-wireless/i2400m-fw |
75 |
+ !net-wireless/libertas-firmware |
76 |
+ !sys-firmware/rt61-firmware |
77 |
+ !net-wireless/rt73-firmware |
78 |
+ !net-wireless/rt2860-firmware |
79 |
+ !net-wireless/rt2870-firmware |
80 |
+ !sys-block/qla-fc-firmware |
81 |
+ !sys-firmware/amd-ucode |
82 |
+ !sys-firmware/iwl1000-ucode |
83 |
+ !sys-firmware/iwl2000-ucode |
84 |
+ !sys-firmware/iwl2030-ucode |
85 |
+ !sys-firmware/iwl3945-ucode |
86 |
+ !sys-firmware/iwl4965-ucode |
87 |
+ !sys-firmware/iwl5000-ucode |
88 |
+ !sys-firmware/iwl5150-ucode |
89 |
+ !sys-firmware/iwl6000-ucode |
90 |
+ !sys-firmware/iwl6005-ucode |
91 |
+ !sys-firmware/iwl6030-ucode |
92 |
+ !sys-firmware/iwl6050-ucode |
93 |
+ !sys-firmware/iwl3160-ucode |
94 |
+ !sys-firmware/iwl7260-ucode |
95 |
+ !sys-firmware/iwl7265-ucode |
96 |
+ !sys-firmware/iwl3160-7260-bt-ucode |
97 |
+ !sys-firmware/radeon-ucode |
98 |
+ )" |
99 |
+#add anything else that collides to this |
100 |
+ |
101 |
+QA_PREBUILT="lib/firmware/*" |
102 |
+ |
103 |
+src_unpack() { |
104 |
+ if [[ ${PV} == 99999999* ]]; then |
105 |
+ git-r3_src_unpack |
106 |
+ else |
107 |
+ default |
108 |
+ # rename directory from git snapshot tarball |
109 |
+ mv ${PN}-*/ ${P} || die |
110 |
+ fi |
111 |
+} |
112 |
+ |
113 |
+src_prepare() { |
114 |
+ default |
115 |
+ |
116 |
+ mv "${WORKDIR}"/microcode_amd_fam17h.bin "${S}"/amd-ucode || die |
117 |
+ |
118 |
+ echo "# Remove files that shall not be installed from this list." > ${PN}.conf |
119 |
+ find * \( \! -type d -and \! -name ${PN}.conf \) >> ${PN}.conf |
120 |
+ |
121 |
+ if use savedconfig; then |
122 |
+ restore_config ${PN}.conf |
123 |
+ ebegin "Removing all files not listed in config" |
124 |
+ find * \( \! -type d -and \! -name ${PN}.conf \) \ |
125 |
+ | sort ${PN}.conf ${PN}.conf - \ |
126 |
+ | uniq -u | xargs -r rm |
127 |
+ eend $? || die |
128 |
+ # remove empty directories, bug #396073 |
129 |
+ find -type d -empty -delete || die |
130 |
+ fi |
131 |
+} |
132 |
+ |
133 |
+src_install() { |
134 |
+ if use !savedconfig; then |
135 |
+ save_config ${PN}.conf |
136 |
+ fi |
137 |
+ rm ${PN}.conf || die |
138 |
+ insinto /lib/firmware/ |
139 |
+ doins -r * |
140 |
+} |
141 |
+ |
142 |
+pkg_preinst() { |
143 |
+ if use savedconfig; then |
144 |
+ ewarn "USE=savedconfig is active. You must handle file collisions manually." |
145 |
+ fi |
146 |
+} |
147 |
+ |
148 |
+pkg_postinst() { |
149 |
+ elog "If you are only interested in particular firmware files, edit the saved" |
150 |
+ elog "configfile and remove those that you do not want." |
151 |
+} |