Add sw64 architecture

Signed-off-by: wzx <wuzx1226@qq.com>
(cherry picked from commit 997de354eef4282495244b8dbcb118458f064bac)
This commit is contained in:
wzx 2022-11-14 11:20:41 +08:00 committed by openeuler-sync-bot
parent e5f001c541
commit 64e0ca0030
2 changed files with 17 additions and 1 deletions

12
alsa-lib-1.2.5.1-sw.patch Executable file
View File

@ -0,0 +1,12 @@
diff -Naur alsa-lib-1.2.5.1.org/include/alsa-symbols.h alsa-lib-1.2.5.1.sw/include/alsa-symbols.h
--- alsa-lib-1.2.5.1.org/include/alsa-symbols.h 2020-10-19 09:45:13.000000000 +0000
+++ alsa-lib-1.2.5.1.sw/include/alsa-symbols.h 2021-11-13 15:59:28.040000000 +0000
@@ -43,7 +43,7 @@
default_symbol_version(real, name, version)
#else
#define use_symbol_version(real, name, version) /* nothing */
-#if defined(__alpha__) || defined(__mips__)
+#if defined(__alpha__) || defined(__sw_64__) || defined(__mips__)
#define use_default_symbol_version(real, name, version) \
__asm__ (".weak " ASM_NAME(#name)); \
__asm__ (ASM_NAME(#name) " = " ASM_NAME(#real))

View File

@ -2,7 +2,7 @@
%define version_alsa_tplg 1.2.5.1 %define version_alsa_tplg 1.2.5.1
Name: alsa-lib Name: alsa-lib
Version: 1.2.5.1 Version: 1.2.5.1
Release: 2 Release: 3
Summary: the user space library that developers compile ALSA applications against Summary: the user space library that developers compile ALSA applications against
License: LGPLv2+ License: LGPLv2+
@ -11,6 +11,7 @@ Source0: https://www.alsa-project.org/files/pub/lib/%{name}-%{version}.tar.bz2
Source1: ftp://ftp.alsa-project.org/pub/lib/alsa-ucm-conf-%{version_alsa_ucm}.tar.bz2 Source1: ftp://ftp.alsa-project.org/pub/lib/alsa-ucm-conf-%{version_alsa_ucm}.tar.bz2
Source2: ftp://ftp.alsa-project.org/pub/lib/alsa-topology-conf-%{version_alsa_tplg}.tar.bz2 Source2: ftp://ftp.alsa-project.org/pub/lib/alsa-topology-conf-%{version_alsa_tplg}.tar.bz2
Source10: asound.conf Source10: asound.conf
Patch1: alsa-lib-1.2.5.1-sw.patch
Source40: alsa-ucm-conf.patch Source40: alsa-ucm-conf.patch
BuildRequires: autoconf, automake, libtool, doxygen BuildRequires: autoconf, automake, libtool, doxygen
@ -122,6 +123,9 @@ tar xvjf %{SOURCE2} -C %{buildroot}/%{_datadir}/alsa --strip-components=1 "*/top
%{_datadir}/alsa/topology %{_datadir}/alsa/topology
%changelog %changelog
* Mon Nov 14 2022 wuzx<wuzx1226@qq.com> - 1.2.5.1-3
- Add sw64 architecture
* Tue Oct 25 2022 lijianglin <lijianglin2@huawei.com> - 1.2.5.1-2 * Tue Oct 25 2022 lijianglin <lijianglin2@huawei.com> - 1.2.5.1-2
- rebuild package - rebuild package