1 |
commit: 38d497575d13da1cf94f195e84bf2a2d1a03aa06 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 29 04:39:09 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 29 04:40:24 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38d49757 |
7 |
|
8 |
sys-firmware/sof-firmware: add 2.1.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/836728 |
11 |
Closes: https://bugs.gentoo.org/829734 |
12 |
Closes: https://bugs.gentoo.org/833083 |
13 |
Thanks-to: Brian Evans <grknight <AT> gentoo.org> |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
sys-firmware/sof-firmware/Manifest | 1 + |
17 |
.../sof-firmware/sof-firmware-2.1.1.ebuild | 30 ++++++++++++++++++++++ |
18 |
2 files changed, 31 insertions(+) |
19 |
|
20 |
diff --git a/sys-firmware/sof-firmware/Manifest b/sys-firmware/sof-firmware/Manifest |
21 |
index 0fe746d0485a..d2d338af6da6 100644 |
22 |
--- a/sys-firmware/sof-firmware/Manifest |
23 |
+++ b/sys-firmware/sof-firmware/Manifest |
24 |
@@ -1,3 +1,4 @@ |
25 |
DIST sof-firmware-1.6.1.tar.gz 3033953 BLAKE2B 0c33bd9a5d17c3b889219bf926d3619e3e448ff6b16e39b4caffe19e87c98d1227b303ebe80d185f93480ead29f37de39093f3e76f275df7836d3250ae47c566 SHA512 71acd34662ffd4d93f6111dfd046ed358184fdf24d0e118da43770aeee45bd15105b688bc5a569f2cb7941724ec822d2cfbab8a08e9caee1a77aa5763ac7b48e |
26 |
DIST sof-firmware-1.9.3.tar.gz 3710193 BLAKE2B d52fe0660c73c8e76fb60c492abe19f9e64b3064441880b84488193aa66710e49ef022c7cd1b8ece69d010aa5e416fbf4307a9c92d823525dbdc734194b0a98f SHA512 0c04bf47ecf65d3352b730e79968cb020211c274f64a3cc21e4c5e49c5a9706ab4d541aaea931e72c1bcc67fcde6387bc6bf952a33691aaab06e6b93aa73a024 |
27 |
DIST sof-firmware-1.9.tar.gz 3470302 BLAKE2B 597467915a658beda5611177c550b51a15720dfde23f1a55ea91217e7e809ff5c6417c6cc449e5d4a1732ffc03f9f817407951410646c9431ec189e8b141f60e SHA512 aee733381edb2150f2132c296e9151b1d6a71246e204b15c2394587c528286f730ceaf02002e1e58ccea0deba5e4ae81cb7a03efb858ac954633b0cfaec81a22 |
28 |
+DIST sof-firmware-2.1.1.tar.gz 4056718 BLAKE2B 0246f6240504d3e8b609b402c41ffe6ed9b8350b6a31c6567851069354e5de5b4ca6d803e78fdde77cdaba7be87c8a8923b2d0fdd0544fd3b28d1e332cd59b63 SHA512 77e9562f67014d78b213fe428edef6a08dcc058a9a762da09a486c002c3aa0b907ea7c8ba6d4f88f5ddab5e564de06df9f2ed77206341a0fe2e1aaab1d9740ce |
29 |
|
30 |
diff --git a/sys-firmware/sof-firmware/sof-firmware-2.1.1.ebuild b/sys-firmware/sof-firmware/sof-firmware-2.1.1.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..fd66eee7a67b |
33 |
--- /dev/null |
34 |
+++ b/sys-firmware/sof-firmware/sof-firmware-2.1.1.ebuild |
35 |
@@ -0,0 +1,30 @@ |
36 |
+# Copyright 1999-2022 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=8 |
40 |
+ |
41 |
+DESCRIPTION="Sound Open Firmware (SOF) binary files" |
42 |
+HOMEPAGE="https://www.sofproject.org https://github.com/thesofproject/sof https://github.com/thesofproject/sof-bin" |
43 |
+SRC_URI="https://github.com/thesofproject/sof-bin/releases/download/v${PV}/sof-bin-v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+S="${WORKDIR}"/sof-bin-v${PV} |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64" |
49 |
+ |
50 |
+QA_PREBUILT="usr/bin/sof-ctl |
51 |
+ usr/bin/sof-logger |
52 |
+ usr/bin/sof-probes" |
53 |
+ |
54 |
+src_install() { |
55 |
+ dodir /lib/firmware/intel |
56 |
+ dodir /usr/bin |
57 |
+ FW_DEST="${D}/lib/firmware/intel" TOOLS_DEST="${D}/usr/bin" "${S}/install.sh" v${PV} || die |
58 |
+} |
59 |
+ |
60 |
+pkg_preinst() { |
61 |
+ local sofpath="${EROOT}/lib/firmware/intel/sof" |
62 |
+ if [[ ! -L "${sofpath}" ]] ; then |
63 |
+ rm -r "${sofpath}" || die |
64 |
+ fi |
65 |
+} |