sof-firmware: use provided install script

Previous versions of this package manually linked firmware files.
This caused some firmwares to slip by unlinked.

As a consequence, the following errors were encountered on boot
with a Tiger Lake processor.

```
[   11.829580] sof-audio-pci 0000:00:1f.3: error: request firmware intel/sof/sof-tgl.ri failed err: -2
[   11.829709] sof-audio-pci 0000:00:1f.3: error: failed to load DSP firmware -2
[   11.830177] sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -2
```
This commit is contained in:
Adrian Göransson 2021-01-14 10:13:40 +01:00 committed by Érico Nogueira Rolim
parent 5cbd574c1b
commit f0faeda0a1

View file

@ -1,7 +1,7 @@
# Template file for 'sof-firmware'
pkgname=sof-firmware
version=1.6.1
revision=1
revision=2
archs="i686* x86_64*"
wrksrc="sof-bin-${version}"
depends="alsa-ucm-conf"
@ -13,27 +13,11 @@ distfiles="https://github.com/thesofproject/sof-bin/archive/v${version}.tar.gz"
checksum=587b320030bc84de1aacba5d86d89ba1a4f67201baf8b9b61bb885af60643bfb
do_install() {
local intel_path="lib/firmware/intel"
for f in ${intel_path}/sof/v${version}/*.{ldc,ri}; do
vinstall ${f} 0644 /usr/${intel_path}/sof
done
for f in ${intel_path}/sof/v${version}/intel-signed/*; do
vinstall ${f} 0644 /usr/${intel_path}/sof/intel-signed
done
for f in ${intel_path}/sof/v${version}/public-signed/*; do
vinstall ${f} 0644 /usr/${intel_path}/sof/public-signed
done
for arc in {bdw,byt,cht}; do
ln -s sof-${arc}-v${version}.ri ${DESTDIR}/usr/${intel_path}/sof/sof-${arc}.ri
done
for arc in {apl,cnl,icl}; do
ln -s intel-signed/sof-${arc}-v${version}.ri ${DESTDIR}/usr/${intel_path}/sof/sof-${arc}.ri
done
ln -s intel-signed/sof-apl-v${version}.ri ${DESTDIR}/usr/${intel_path}/sof/sof-glk.ri
ln -s intel-signed/sof-cnl-v${version}.ri ${DESTDIR}/usr/${intel_path}/sof/sof-cfl.ri
ln -s intel-signed/sof-cnl-v${version}.ri ${DESTDIR}/usr/${intel_path}/sof/sof-cml.ri
for f in ${intel_path}/sof-tplg-v${version}/*; do
vinstall ${f} 0644 /usr/${intel_path}/sof-tplg
done
vlicense LICENCE.NXP
export ROOT="${DESTDIR}/usr"
export SOF_VERSION="v${version}"
vmkdir usr/lib/firmware/intel
./go.sh
}