|
|
fd8d81 |
# This is a firmware package, so binaries (which are not run on the host)
|
|
|
fd8d81 |
# in the end package are expected.
|
|
|
fd8d81 |
%define _binaries_in_noarch_packages_terminate_build 0
|
|
|
fd8d81 |
%global _firmwarepath /usr/lib/firmware
|
|
|
fd8d81 |
|
|
|
c49da1 |
%global sof_ver 1.9.3
|
|
|
91c056 |
#global sof_ver_pre rc2
|
|
|
91c056 |
%global sof_ver_rel %{?sof_ver_pre:.%{sof_ver_pre}}
|
|
|
91c056 |
%global sof_ver_pkg v%{sof_ver}%{?sof_ver_pre:-%{sof_ver_pre}}
|
|
|
fd8d81 |
|
|
|
91c056 |
%global tplg_version 1.2.4
|
|
|
fd8d81 |
|
|
|
fd8d81 |
Summary: Firmware and topology files for Sound Open Firmware project
|
|
|
fd8d81 |
Name: alsa-sof-firmware
|
|
|
91c056 |
Version: %{sof_ver}
|
|
|
91c056 |
Release: 1%{?sof_ver_rel}%{?dist}
|
|
|
fd8d81 |
# See later in the spec for a breakdown of licensing
|
|
|
fd8d81 |
License: BSD
|
|
|
fd8d81 |
URL: https://github.com/thesofproject/sof-bin
|
|
|
91c056 |
Source: https://github.com/thesofproject/sof-bin/releases/download/%{sof_ver_pkg}/sof-bin-%{sof_ver_pkg}.tar.gz
|
|
|
91c056 |
BuildRequires: alsa-topology >= %{tplg_version}
|
|
|
91c056 |
BuildRequires: alsa-topology-utils >= %{tplg_version}
|
|
|
fd8d81 |
|
|
|
fd8d81 |
# noarch, since the package is firmware
|
|
|
fd8d81 |
BuildArch: noarch
|
|
|
fd8d81 |
|
|
|
fd8d81 |
%description
|
|
|
fd8d81 |
This package contains the firmware binaries for the Sound Open Firmware project.
|
|
|
fd8d81 |
|
|
|
fd8d81 |
%package debug
|
|
|
fd8d81 |
Requires: alsa-sof-firmware
|
|
|
fd8d81 |
Summary: Debug files for Sound Open Firmware project
|
|
|
fd8d81 |
License: BSD
|
|
|
fd8d81 |
|
|
|
fd8d81 |
%description debug
|
|
|
fd8d81 |
This package contains the debug files for the Sound Open Firmware project.
|
|
|
fd8d81 |
|
|
|
fd8d81 |
%prep
|
|
|
91c056 |
%autosetup -n sof-bin-%{sof_ver_pkg}
|
|
|
fd8d81 |
|
|
|
91c056 |
mkdir -p firmware/intel/sof
|
|
|
fd8d81 |
|
|
|
fd8d81 |
# we have the version in the package name
|
|
|
91c056 |
mv sof-%{sof_ver_pkg}/* firmware/intel/sof
|
|
|
fd8d81 |
|
|
|
fd8d81 |
# move topology files
|
|
|
91c056 |
mv sof-tplg-%{sof_ver_pkg} firmware/intel/sof-tplg
|
|
|
fd8d81 |
|
|
|
fd8d81 |
# remove NXP firmware files
|
|
|
91c056 |
rm LICENCE.NXP
|
|
|
91c056 |
rm -rf firmware/intel/sof-tplg/sof-imx8*
|
|
|
fd8d81 |
|
|
|
c49da1 |
# remove Mediatek firmware files
|
|
|
c49da1 |
rm -rf firmware/intel/sof-tplg/sof-mt8*
|
|
|
c49da1 |
|
|
|
fd8d81 |
%build
|
|
|
91c056 |
# SST topology files (not SOF related, but it's a Intel hw support
|
|
|
91c056 |
# and this package seems a good place to distribute them
|
|
|
91c056 |
alsatplg -c /usr/share/alsa/topology/hda-dsp/skl_hda_dsp_generic-tplg.conf \
|
|
|
91c056 |
-o firmware/skl_hda_dsp_generic-tplg.bin
|
|
|
fd8d81 |
|
|
|
fd8d81 |
%install
|
|
|
fd8d81 |
mkdir -p %{buildroot}%{_firmwarepath}
|
|
|
91c056 |
cp -ra firmware/* %{buildroot}%{_firmwarepath}
|
|
|
fd8d81 |
|
|
|
fd8d81 |
# gather files and directories
|
|
|
fd8d81 |
FILEDIR=$(pwd)
|
|
|
fd8d81 |
pushd %{buildroot}/%{_firmwarepath}
|
|
|
fd8d81 |
find -P . -name "*.ri" | sed -e '/^.$/d' > $FILEDIR/alsa-sof-firmware.files
|
|
|
fd8d81 |
#find -P . -name "*.tplg" | sed -e '/^.$/d' >> $FILEDIR/alsa-sof-firmware.files
|
|
|
fd8d81 |
find -P . -name "*.ldc" | sed -e '/^.$/d' > $FILEDIR/alsa-sof-firmware.debug-files
|
|
|
fd8d81 |
find -P . -type d | sed -e '/^.$/d' > $FILEDIR/alsa-sof-firmware.dirs
|
|
|
fd8d81 |
popd
|
|
|
fd8d81 |
sed -i -e 's:^./::' alsa-sof-firmware.{files,debug-files,dirs}
|
|
|
fd8d81 |
sed -i -e 's!^!/usr/lib/firmware/!' alsa-sof-firmware.{files,debug-files,dirs}
|
|
|
fd8d81 |
sed -e 's/^/%%dir /' alsa-sof-firmware.dirs >> alsa-sof-firmware.files
|
|
|
fd8d81 |
cat alsa-sof-firmware.files
|
|
|
fd8d81 |
|
|
|
fd8d81 |
%files -f alsa-sof-firmware.files
|
|
|
fd8d81 |
%license LICENCE*
|
|
|
fd8d81 |
%doc README*
|
|
|
fd8d81 |
%dir %{_firmwarepath}
|
|
|
fd8d81 |
|
|
|
fd8d81 |
# Licence: 3-clause BSD
|
|
|
91c056 |
%{_firmwarepath}/*.bin
|
|
|
91c056 |
|
|
|
91c056 |
# Licence: 3-clause BSD
|
|
|
fd8d81 |
# .. for files with suffix .tplg
|
|
|
fd8d81 |
%{_firmwarepath}/intel/sof-tplg
|
|
|
fd8d81 |
|
|
|
fd8d81 |
# Licence: SOF (3-clause BSD plus others)
|
|
|
fd8d81 |
# .. for files with suffix .ri
|
|
|
fd8d81 |
|
|
|
fd8d81 |
%files debug -f alsa-sof-firmware.debug-files
|
|
|
fd8d81 |
|
|
|
fd8d81 |
%changelog
|
|
|
c49da1 |
* Thu Dec 16 2021 Jaroslav Kysela <perex@perex.cz> - 1.9.3-1
|
|
|
c49da1 |
- Update to v1.9.3
|
|
|
c49da1 |
|
|
|
c49da1 |
* Tue Nov 23 2021 Jaroslav Kysela <perex@perex.cz> - 1.9.2-1
|
|
|
c49da1 |
- Update to v1.9.2
|
|
|
c49da1 |
|
|
|
c49da1 |
* Tue Oct 26 2021 Jaroslav Kysela <perex@perex.cz> - 1.9-1
|
|
|
c49da1 |
- Update to v1.9
|
|
|
c49da1 |
|
|
|
91c056 |
* Thu Jul 22 2021 Jaroslav Kysela <perex@perex.cz> - 1.8-1
|
|
|
91c056 |
- Update to v1.8
|
|
|
91c056 |
- Add SST Skylake HDA topology binary
|
|
|
fc86ae |
|
|
|
fc86ae |
* Sun Jan 3 2021 Jaroslav Kysela <perex@perex.cz> - 1.6.1-1
|
|
|
fc86ae |
- Update to v1.6.1
|
|
|
fc86ae |
|
|
|
fc86ae |
* Thu Dec 10 2020 Jaroslav Kysela <perex@perex.cz> - 1.6-2
|
|
|
fc86ae |
- Update to v1.6 (Dec 9)
|
|
|
fc86ae |
|
|
|
fc86ae |
* Wed Nov 11 2020 Jaroslav Kysela <perex@perex.cz> - 1.6-1
|
|
|
fc86ae |
- Update to v1.6 (Oct 13)
|
|
|
fc86ae |
|
|
|
fd8d81 |
* Mon Jun 8 2020 Jaroslav Kysela <perex@perex.cz> - 1.5-2
|
|
|
fd8d81 |
- Update to v1.5
|
|
|
fd8d81 |
|
|
|
fd8d81 |
* Tue Apr 21 2020 Jaroslav Kysela <perex@perex.cz> - 1.4.2-2
|
|
|
fd8d81 |
- Initial version (Open Sound Firmware v1.4.2)
|