summaryrefslogtreecommitdiff
blob: fc321654b92da7a79af3abbc9b954634a38c552d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
}