summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-firmware/sof-firmware/sof-firmware-1.4.2.ebuild')
-rw-r--r--sys-firmware/sof-firmware/sof-firmware-1.4.2.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/sys-firmware/sof-firmware/sof-firmware-1.4.2.ebuild b/sys-firmware/sof-firmware/sof-firmware-1.4.2.ebuild
new file mode 100644
index 00000000000..fc321654b92
--- /dev/null
+++ b/sys-firmware/sof-firmware/sof-firmware-1.4.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Sound Open Firmware (SOF) binary files"
+
+HOMEPAGE="https://www.sofproject.org"
+
+MY_FILELIST=(
+ sof-apl-v${PV}.ldc
+ sof-apl-v${PV}.ri
+ sof-bdw.ldc
+ sof-bdw.ri
+ sof-byt.ldc
+ sof-byt.ri
+ sof-cht.ldc
+ sof-cht.ri
+ sof-cnl-v${PV}.ldc
+ sof-cnl-v${PV}.ri
+ sof-icl-v${PV}.ldc
+ sof-icl-v${PV}.ri
+ sof-imx8.ldc
+ sof-imx8.ri
+)
+MY_SRC_URI_BASE="https://github.com/thesofproject/sof/releases/download/v${PV}"
+
+for my_file in "${MY_FILELIST[@]}" ; do
+ SRC_URI+="${MY_SRC_URI_BASE}/${my_file} -> ${P}-${my_file} "
+done
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+S=${WORKDIR}
+
+src_unpack() {
+ :
+}
+
+src_install() {
+ insinto /lib/firmware
+ for my_name in ${A} ; do
+ newins "${DISTDIR}/${my_name}" "${my_name#${P}-}"
+ done
+}