!3 Add support for riscv

From: @riscv-spare
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
This commit is contained in:
openeuler-ci-bot 2020-11-20 15:10:59 +08:00 committed by Gitee
commit 84fce19e40
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From 53c01b783b8e3223ff589a794742e02647a5de98 Mon Sep 17 00:00:00 2001
From: yangyanchao <yangyanchao6@huawei.com>
Date: Wed, 28 Oct 2020 17:02:42 +0800
Subject: [PATCH] huawei-support-riscv
---
webrtc/typedefs.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/webrtc/typedefs.h b/webrtc/typedefs.h
index d875490..bbd904e 100644
--- a/webrtc/typedefs.h
+++ b/webrtc/typedefs.h
@@ -44,6 +44,13 @@
#elif defined(__MIPSEL__)
#define WEBRTC_ARCH_32_BITS
#define WEBRTC_ARCH_LITTLE_ENDIAN
+#elif defined(__riscv)
+#define WEBRTC_ARCH_LITTLE_ENDIAN
+#if __riscv_xlen == 64
+#define WEBRTC_ARCH_64_BITS
+#else
+#define WEBRTC_ARCH_32_BTIS
+#endif
#elif defined(__pnacl__)
#define WEBRTC_ARCH_32_BITS
#define WEBRTC_ARCH_LITTLE_ENDIAN
--
1.8.3.1

View File

@ -1,10 +1,11 @@
Name: webrtc-audio-processing
Version: 0.3.1
Release: 3
Release: 4
Summary: Real-Time Communication Library for Web Browsers
License: BSD and MIT
URL: https://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/
Source0: https://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.xz
Patch: huawei-support-riscv.patch
BuildRequires: autoconf automake libtool gcc gcc-c++
@ -61,6 +62,9 @@ autoreconf -vif
%doc NEWS
%changelog
* Mon Nov 9 2020 yangyanchao <yangyanchao6@huawei.com> - 0.3.1-4
- Supports the riscv
* Fri Jan 10 2020 zhangrui <zhangrui182@huawei.com> - 0.3.1-3
- Remove unnecessary patches