remove x86_64 only prebuilt binaries [release 1.8-2mamba;Fri Jun 25 2021]
This commit is contained in:
parent
20a5986430
commit
3dc5998f4b
@ -1,62 +1,91 @@
|
|||||||
#%global sof_commit 72a04d57d04c2df6e9dbf4eba0a98f40c252ee0b
|
#%global sof_commit 72a04d57d04c2df6e9dbf4eba0a98f40c252ee0b
|
||||||
Name: alsa-sof-firmware
|
Name: alsa-sof-firmware
|
||||||
Version: 1.6.1
|
Version: 1.8
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Firmware and topology files for Sound Open Firmware project
|
Summary: Firmware and topology files for Sound Open Firmware project
|
||||||
Group: System/Kernel and Hardware
|
Group: System/Kernel and Hardware
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: https://github.com/thesofproject/sof-bin
|
URL: https://github.com/thesofproject/sof-bin
|
||||||
Source: https://github.com/thesofproject/sof-bin.git/stable-v%{version}/sof-bin-%{version}.tar.bz2
|
Source: https://github.com/thesofproject/sof-bin.git/v%{version}/sof-bin-%{version}.tar.bz2
|
||||||
|
Source1: https://github.com/thesofproject/sof.git/v%{version}/sof-%{version}.tar.bz2
|
||||||
License: BSD
|
License: BSD
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: libalsa-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Firmware and topology files for Sound Open Firmware project.
|
Firmware and topology files for Sound Open Firmware project.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n sof-bin-%{version}
|
%setup -q -n sof-bin-%{version} -a1
|
||||||
|
|
||||||
## add missing symlink
|
## add missing symlink
|
||||||
#ln -s v1.4.2/intel-signed/sof-cnl-v1.4.2.ri lib/firmware/intel/sof/sof-cml.ri
|
#ln -s v1.4.2/intel-signed/sof-cnl-v1.4.2.ri lib/firmware/intel/sof/sof-cml.ri
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%ifarch x86_64 aarch64
|
||||||
|
cd sof-%{version}/tools
|
||||||
|
%cmake -d build
|
||||||
|
|
||||||
|
%make
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
install -d -m0755 %{buildroot}/lib/firmware
|
install -d -m0755 %{buildroot}/lib/firmware/intel
|
||||||
|
install -d -m0755 %{buildroot}/%{_bindir}
|
||||||
|
|
||||||
SOF_VERSION=v%{version} ROOT=%{buildroot} ./go.sh
|
FW_DEST=%{buildroot}/lib/firmware/intel TOOLS_DEST=%{buildroot}%{_bindir} ./install.sh v%{version}.x/v%{version}
|
||||||
|
|
||||||
## remove debug files
|
# Remove prebuilt binaries
|
||||||
#find -P . -name "*.ldc" -exec rm -f {} \;
|
rm -f %{buildroot}%{_bindir}/*
|
||||||
|
|
||||||
|
# Workaround for update from previous version where sof is a directory but now it is a symlink
|
||||||
|
rm -f %{buildroot}/lib/firmware/intel/sof
|
||||||
|
|
||||||
|
%ifarch x86_64 aarch64
|
||||||
|
%makeinstall -C sof-%{version}/tools/build
|
||||||
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
# script to replace sof direcotory with symlink
|
||||||
|
%posttrans
|
||||||
|
[ -L /lib/firmware/intel/sof ] || ln -s sof-tplg-v%{version} /lib/firmware/intel/sof
|
||||||
|
:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir /lib/firmware/intel/sof
|
%ifarch x86_64 aarch64
|
||||||
/lib/firmware/intel/sof/sof-*.ri
|
%{_bindir}/sof-ctl
|
||||||
|
%{_bindir}/sof-logger
|
||||||
|
%{_bindir}/sof-probes
|
||||||
|
%endif
|
||||||
|
#/lib/firmware/intel/sof
|
||||||
/lib/firmware/intel/sof-tplg
|
/lib/firmware/intel/sof-tplg
|
||||||
%dir /lib/firmware/intel/sof-tplg-v%{version}
|
%dir /lib/firmware/intel/sof-tplg-v%{version}
|
||||||
/lib/firmware/intel/sof-tplg-v%{version}/sof-*.tplg
|
/lib/firmware/intel/sof-tplg-v%{version}/sof-*.tplg
|
||||||
%dir /lib/firmware/intel/sof/community
|
%dir /lib/firmware/intel/sof-v%{version}
|
||||||
/lib/firmware/intel/sof/community/sof-*.ri
|
%dir /lib/firmware/intel/sof-v%{version}/community
|
||||||
%dir /lib/firmware/intel/sof/v%{version}/intel-signed
|
/lib/firmware/intel/sof-v%{version}/community/sof-*.ri
|
||||||
/lib/firmware/intel/sof/v%{version}/intel-signed/sof-*.ri
|
%dir /lib/firmware/intel/sof-v%{version}/intel-signed
|
||||||
%dir /lib/firmware/intel/sof/v%{version}/public-signed
|
/lib/firmware/intel/sof-v%{version}/intel-signed/*.ri
|
||||||
/lib/firmware/intel/sof/v%{version}/public-signed/sof-*.ri
|
/lib/firmware/intel/sof-v%{version}/sof-*.ldc
|
||||||
%dir /lib/firmware/intel/sof/v%{version}
|
/lib/firmware/intel/sof-v%{version}/sof-*.ri
|
||||||
/lib/firmware/intel/sof/v%{version}/sof-*.ldc
|
|
||||||
/lib/firmware/intel/sof/v%{version}/sof-*.ri
|
|
||||||
%doc LICENCE.Intel
|
%doc LICENCE.Intel
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8-2mamba
|
||||||
|
- remove x86_64 only prebuilt binaries
|
||||||
|
|
||||||
|
* Wed Jun 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8-1mamba
|
||||||
|
- update to 1.8
|
||||||
|
|
||||||
* Thu Feb 04 2021 Automatic Build System <autodist@mambasoft.it> 1.6.1-1mamba
|
* Thu Feb 04 2021 Automatic Build System <autodist@mambasoft.it> 1.6.1-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user