diff options
Diffstat (limited to 'meta-openembedded/meta-multimedia/recipes-multimedia/webrtc-audio-processing')
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-openembedded/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing/riscv_support.patch b/meta-openembedded/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing/riscv_support.patch new file mode 100644 index 000000000..576b9860a --- /dev/null +++ b/meta-openembedded/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-openembedded/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing_0.3.bb b/meta-openembedded/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing_0.3.bb index 2b0f7c684..dbba2f488 100644 --- a/meta-openembedded/meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing_0.3.bb +++ b/meta-openembedded/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" |