From patchwork Wed Mar 6 05:45:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 159727 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp5783903jad; Tue, 5 Mar 2019 21:47:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxNeVlIz20ykdWu6VwrzwjYKdPQWVjnJLb27C/7x29vHCtgcNYaUkuY5hOCNBUjHe3TpIxV X-Received: by 2002:a63:80c7:: with SMTP id j190mr4587673pgd.357.1551851221038; Tue, 05 Mar 2019 21:47:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551851221; cv=none; d=google.com; s=arc-20160816; b=kzBSxEBVujXgeQ32BLFXQXqoqg7Ex6Y0VOoRFTZp0CP0wSmqRgcG9oIPy3HbJn8Ov4 rTe78/zIKbo9oBpY21rIHcUXpcJizkAnE1YTL+cCFs5A630OdK8QBJ3KjgqJpadUyJz2 bkZyOEZT/S8wyyF5SOv8zlkZganrS2voJrTLF0g7HVN7ABf1dPve9G7ewy3HxPKrZl9f IIQKzk+e7hYa+Nb2lOmFeZcroqY5NdS5aY6vpU/V4oi3XZpWh4xb4nRO4cYe7K49t+oT v5RIUlQPCHyzRFOzbAnNU1ZcJnclqXVHbI3q2H6c2tZST9sgx9EzKDKYAUFqg3GXRXZz QxKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=+b/85hGJYfgbytJnYVSOQqPoFbhrM7GjK1t4p568H7w=; b=eAIKNwXO0kFzCemDCAUnZuHSCyEdzU3BqOEaAJcm7gXlkIXH/C4VNQ0dtS53Iflt6w 6XqeOsXf2sjXKusMsbtc2mvcyEUPPLnVfWHKATb71lvIZGDlqENBd7w8PjBNBqYbgIyy 8yeJ2jm1a5ZkXdfug4JTqpBsOZ9lHMeVbW616GlwWKxszUYVNm7G3RX+mCSokdYUf+FA V2bbfZ2wAGUlkzTVVFtCK37innPH7bBtR1XA0gbPCxJnE6CjFyoRqNZJB/ZXR4EaWCFW T0Jk8pUj3YQEZkyaSmIw1OKoUUeT/yQUhJYbN4Z3nZbdVttDR6cYtOVNiyGkoMztwKoC nGDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="T/bHY8Hj"; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id y3si627531plt.68.2019.03.05.21.47.00; Tue, 05 Mar 2019 21:47:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="T/bHY8Hj"; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 254B87CD30; Wed, 6 Mar 2019 05:46:16 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mail.openembedded.org (Postfix) with ESMTP id D36357C61E for ; Wed, 6 Mar 2019 05:46:00 +0000 (UTC) Received: by mail-pg1-f178.google.com with SMTP id r124so7438986pgr.3 for ; Tue, 05 Mar 2019 21:46:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vEYoDWpdqa6zfbEJJrN78P6BuI74q/5vwlkSkMxiw0o=; b=T/bHY8HjzgVhfkq5T7LPOJ4ZJGTgJcyHjGBw3IsGtQhsqn97/yOMYd4ndpPP13dy+j XFIXRvUxGcGy2pzrj4qIo32XgChO1jWiWiO0MQZeFKcp7z60pmd2Jk8S3xMvSVRHOJRX dErWpnpMOMhgeNNrGcERp9OTR1hBA7qsvbAX37MaX1B63glwCuUQZKgeyY0k+QGkjzMr 6bJketB+NqW7NaxKWJDsXMWf3Zsfxm75SZwhOl5BnJfuo5MzENM0TQbqCDGjwjorG2OO +QYie8AmxZANhWVSIaIFIEJ2s+NQXHFiP/cA8J/S5SUiSwwLwx/+4JE044Ju2klJmrFd /1Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vEYoDWpdqa6zfbEJJrN78P6BuI74q/5vwlkSkMxiw0o=; b=SwSj9SmOOur9anGGNcoLSLtZwb5GgBqp/0rKc+mFi46se4T9zZwuohsrEKuWY4OWXb SUuiqdgkR2yaVE+dwQQt3xngEKgQO+5stbrxut7FvGD1UywNae81WsR7EZ95lBj8jPqe cntHjoP5c9eSZlqlIyKTUoW66ncnJXhxoh8vB+rVhaJ2tzJSRLvhcDf4xhC6KKEBIwJ4 Ab8Ew3t1KS0n1XVmJ6EUG7wknMYlXKVF/Pa/qIf/p7w6hHwohsRWw4hr4nXPKUgnO4Fe 5kt5gNw6se+oOl6rqjgbFq68f4T/T49peXUrgRr34vk4g6E9pXHeBJlGcP8OIwBoupzz lQPQ== X-Gm-Message-State: APjAAAXZX/rBkHZmL9SmyukAlQCdSntdKT52D1O+68ATC9m7ifQjip0Y 65YZ2WlR466UAaj79OvJzbGg/rMZ X-Received: by 2002:a63:8743:: with SMTP id i64mr4755617pge.69.1551851161622; Tue, 05 Mar 2019 21:46:01 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::3401]) by smtp.gmail.com with ESMTPSA id m24sm1001144pgv.1.2019.03.05.21.46.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Mar 2019 21:46:00 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 5 Mar 2019 21:45:45 -0800 Message-Id: <20190306054548.16430-9-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190306054548.16430-1-raj.khem@gmail.com> References: <20190306054548.16430-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-multimedia][PATCH 09/12] webrtc-audio-processing: Add support for risc-v X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../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 -- 2.21.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel 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 +--- 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"