Blame SPECS/alsa-sof-firmware.spec

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
9e18c5
%global sof_ver 2.2.4
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
9e18c5
%global with_sof_addon 0
9e18c5
%global sof_ver_addon 0
94fee1
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}
9e18c5
Release:        2%{?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
94fee1
%if 0%{?with_sof_addon}
94fee1
Source2:        https://github.com/thesofproject/sof-bin/releases/download/v%{sof_ver_addon}/sof-tplg-v%{sof_ver_addon}.tar.gz
94fee1
%endif
9e18c5
Source10:       skl_hda_dsp_generic-tplg.bin
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
94fee1
%if 0%{?with_sof_addon}
94fee1
tar xvzf %{SOURCE2}
94fee1
mv sof-tplg-v%{sof_ver_addon}/*.tplg firmware/intel/sof-tplg
94fee1
%endif
da6886
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
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
9e18c5
cp %{SOURCE10} firmware/skl_hda_dsp_generic-tplg.bin
9e18c5
9e18c5
%build
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
9e18c5
* Mon Jan  9 2023 Jaroslav Kysela <perex@perex.cz> - 2.2.4-2
9e18c5
- Update to v2.2.4
9e18c5
9e18c5
* Wed Dec  7 2022 Jaroslav Kysela <perex@perex.cz> - 2.2.3-1
9e18c5
- Update to v2.2.3
9e18c5
9e18c5
* Thu Sep 29 2022 Jaroslav Kysela <perex@perex.cz> - 2.2.2-1
9e18c5
- Update to v2.2.2
9e18c5
94fee1
* Mon Jun 20 2022 Jaroslav Kysela <perex@perex.cz> - 2.1.1-1
94fee1
- Update to v2.1.1 + v2.1.1a (topology)
94fee1
94fee1
* Wed May 11 2022 Jaroslav Kysela <perex@perex.cz> - 1.9.3-3
da6886
- Add sof-adl-rt711-l2-rt1316-l01.tplg topology file
da6886
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)