All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-multimedia][PATCH 09/12] webrtc-audio-processing: Add support for risc-v
Date: Tue,  5 Mar 2019 21:45:45 -0800	[thread overview]
Message-ID: <20190306054548.16430-9-raj.khem@gmail.com> (raw)
In-Reply-To: <20190306054548.16430-1-raj.khem@gmail.com>

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../riscv_support.patch                       | 33 +++++++++++++++++++
 .../webrtc-audio-processing_0.3.bb            |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing/riscv_support.patch

diff --git a/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing/riscv_support.patch b/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing/riscv_support.patch
new file mode 100644
index 0000000000..576b9860a8
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing/riscv_support.patch
@@ -0,0 +1,33 @@
+Add support for RISC-V
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- a/webrtc/base/basictypes.h
++++ b/webrtc/base/basictypes.h
+@@ -29,6 +29,10 @@
+ #define CPU_ARM 1
+ #endif
+ 
++#if defined(__riscv) || defined(_M_RISCV)
++#define CPU_RISCV 1
++#endif
++
+ #if defined(CPU_X86) && defined(CPU_ARM)
+ #error CPU_X86 and CPU_ARM both defined.
+ #endif
+--- a/webrtc/typedefs.h
++++ b/webrtc/typedefs.h
+@@ -56,6 +56,13 @@
+ #elif defined(__powerpc__)
+ #define WEBRTC_ARCH_32_BITS
+ #define WEBRTC_ARCH_BIG_ENDIAN
++#elif defined(__riscv)
++#if __riscv_xlen == 64
++# define WEBRTC_ARCH_64_BITS
++#else
++# define WEBRTC_ARCH_32_BITS
++#endif
++#define WEBRTC_ARCH_LITTLE_ENDIAN
+ #elif defined(__pnacl__)
+ #define WEBRTC_ARCH_32_BITS
+ #define WEBRTC_ARCH_LITTLE_ENDIAN
diff --git a/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing_0.3.bb b/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing_0.3.bb
index 2b0f7c6840..dbba2f488c 100644
--- a/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing_0.3.bb
+++ b/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing_0.3.bb
@@ -19,6 +19,7 @@ SRC_URI = "http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/${
            file://0004-typedefs.h-add-support-for-64-bit-and-big-endian-MIP.patch \
            file://0005-typedefs.h-add-support-for-PowerPC.patch \
            file://0006-common_audio-implement-endianness-conversion-in-wav-.patch \
+           file://riscv_support.patch \
 "
 
 SRC_URI[md5sum] = "336ae032f608e65808ac577cde0ab72c"
-- 
2.21.0



  parent reply	other threads:[~2019-03-06  5:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-06  5:45 [meta-oe][PATCH 01/12] poco: Backport riscv support patch Khem Raj
2019-03-06  5:45 ` [meta-multimedia][PATCH 02/12] liboil: Fix build on risc-v Khem Raj
2019-03-06  5:45 ` [meta-oe][PATCH 03/12] msgpack-c: Upgrade to 3.1.1 Khem Raj
2019-03-06  5:45 ` [meta-python][PATCH 04/12] python-greenlet: Upgrade to 0.4.15 Khem Raj
2019-03-06  5:45 ` [meta-python][PATCH 05/12] python-grpcio: Upgrade to 1.19.0 Khem Raj
2019-03-06  5:45 ` [meta-networking][PATCH 06/12] inetutils: Fix build on RISC-V Khem Raj
2019-03-07 17:23   ` Adrian Bunk
2019-03-07 17:25     ` Khem Raj
2019-03-07 20:48       ` Tom Rini
2019-03-07 20:53         ` Khem Raj
2019-03-07 21:01           ` Tom Rini
2019-03-06  5:45 ` [meta-oe][PATCH 07/12] nmap: " Khem Raj
2019-03-06  5:45 ` [meta-webserver][PATCH 08/12] netdata: Link with libpthread Khem Raj
2019-03-06  5:45 ` Khem Raj [this message]
2019-03-06  5:45 ` [meta-oe][PATCH 10/12] openocd: Fix build for risc-v Khem Raj
2019-03-06  5:45 ` [meta-oe][PATCH 11/12] rabbitmq-c: Upgrade to 0.9.0 Khem Raj
2019-03-06  5:45 ` [meta-oe][PATCH 12/12] libmxml: Upgrade to 3.0 release Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190306054548.16430-9-raj.khem@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.