From patchwork Thu Sep 21 17:42:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 113922 Delivered-To: patch@linaro.org Received: by 10.80.163.150 with SMTP id s22csp2143266edb; Thu, 21 Sep 2017 10:42:29 -0700 (PDT) X-Received: by 10.99.186.81 with SMTP id l17mr6440818pgu.170.1506015748906; Thu, 21 Sep 2017 10:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506015748; cv=none; d=google.com; s=arc-20160816; b=s2vHB87obDKW4kYsUP7pnVEdIYboGZqqmT3EZso6+slKaasM8LEZXhtZSfkzU9S+O1 EFoO829abkgoBmNqQ1KL0ZBF3eoKw73GO5ICfXgedU+HK/1p2JQ++mjIAP0MyewPoO+E or4HVFkKP3bN4leiiWgpw9sJKD4YkksjHE+TzSw5IK7Q3QiG01+ojAFqMPJuqkNxrjrN fFi6WjVVjUqr2vuP+lQ7PjYYGkTYF93DF74neaQWO6JRE24yZDgiiA0kzxekiTMhGmtZ SSMTHVvcqRupaBU7KxAyjKP77NMcxJ3GzoGpuR89VuB1H/2Ad9aAyl4Gtx7X75UBdTH5 Gurw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=Z8YxfgzzHSDAEgurL8K6wlzuWKNAHpyyoxxHYDR95r8=; b=kqsxYVtpOV+erbLWhnbnlwTOSqRjO5ZLTgBLVT7HP0tP74nmjkS3+5dM9J0fVNsmYx Yx+MeHxtnntwF2fAdXBUd7pgYP5XovVlkmP5A12iK9ZysK2SequYNHCRYV8XfyMj2Kh7 mw5sUuPCcpX8L+78ohio2+ywJDM2XIcivxOvclHS65oSM6ZbPDfPvbBS5HpuoHprZ/5c iqf8Uzw/MNGph0Qfbd8tqN21oQp7XL2Ttm3U/0gsVTI/1excS5W5TuXCk5R9jTJ6rmhM mPcDH1s8c0Z43cnwPmZdasnnlH+vLb+hElo7QpXb1zqpwwg8ag2ESaTznSIJIi8/8tMA ytMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=FiKRbQ8e; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE 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 u19si1356736plj.135.2017.09.21.10.42.28; Thu, 21 Sep 2017 10:42:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-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=FiKRbQ8e; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id EB0B978289; Thu, 21 Sep 2017 17:42:22 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg0-f43.google.com (mail-pg0-f43.google.com [74.125.83.43]) by mail.openembedded.org (Postfix) with ESMTP id 7CB8860685 for ; Thu, 21 Sep 2017 17:42:22 +0000 (UTC) Received: by mail-pg0-f43.google.com with SMTP id b11so3885127pgn.12 for ; Thu, 21 Sep 2017 10:42:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=VV4AY9nWJLU25Mo58+E6tQdSvMmPCRDATk0SB4sbCAQ=; b=FiKRbQ8e69O3bT+eus/+k5Cxsw7hvqegaJOAzwN/X1y0izUZ7M/BvbtjpF36fONDI8 Yxua6oBOe7j8W3uBjz407pW9wZSryWxvbFNxIurZKjgUAGk2oib9uBYzTjL3u33f+7Ax s10uGwo11DjPiJ7q4Bdg11vDQrYKtMQOQRks8Ww+CUGkSaTpWz1zoxjvdS5CO+uK+JVR X5P+HKqOHOGtdu6epZ9VYveyUBdIBQIO2yy3W1rF4QNWvSSxJGvIVewNV0P9pBdUSFci NqeP0Cu0N3Vlh+gFeEmLmE4H/D30y8wLyzn4rEfCuVLh6zKTwXLzciVqwC04/LLrt6d4 6b9A== 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; bh=VV4AY9nWJLU25Mo58+E6tQdSvMmPCRDATk0SB4sbCAQ=; b=ev0nh0L5r4WL6ttF6N2hbPXM7pHArcNOjyJIw2AIX0dNFiUF+aQTdSjuZ+4wvjcNuB HJjzalFgXSJJ3cwKJmoVi1/weSDIkhqt9nLVjLK8c9jBStAi+5AnhDR1N5YV2ogKyG3W tSOqr9YDt0Z0CrK5Ydam/OwTOrMii9Ur3QcxoTN7tfQmBzysNh6vfNACJCQYo+VhKoag WKhcuPCfjmFeViLSwSBjdJzG62BjgoVsuEK/J60QCbEXj260rzeuhYSVNahzBYcj1KYj msbxbkioM7ZXs+wQ/Gp9Y9GJjKwkHu/4jQ0cC6lQluMyD5PlSkIZ1hBZYQhEPs7qrtaR lFcA== X-Gm-Message-State: AHPjjUhF/2TBUmMsJx/9oWU+tNjb7QIasZONkS/3EYzK/WtLclSJHkOk WpOn/mBY/+CMUxLxFuxm/dYZAA== X-Google-Smtp-Source: AOwi7QAwZNpgfumodjjOyEnvwbyPmyMAKNdxaTKhR1q6vAWhfAsI6KjVWAm/9aLQewJ++pS9CUlQyw== X-Received: by 10.84.132.2 with SMTP id 2mr6277155ple.381.1506015743693; Thu, 21 Sep 2017 10:42:23 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::e57f]) by smtp.gmail.com with ESMTPSA id u20sm3241745pfh.171.2017.09.21.10.42.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Sep 2017 10:42:23 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 21 Sep 2017 10:42:15 -0700 Message-Id: <20170921174216.33386-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.14.1 Subject: [OE-core] [PATCH 1/2] gstreamer1.0-libav: Fix build on mips X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...a.c-Fix-build-by-Including-libavcodec-hev.patch | 33 ++++++++++++++++++++++ .../gstreamer/gstreamer1.0-libav_1.12.2.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/0001-hevcpred_msa.c-Fix-build-by-Including-libavcodec-hev.patch -- 2.14.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/0001-hevcpred_msa.c-Fix-build-by-Including-libavcodec-hev.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/0001-hevcpred_msa.c-Fix-build-by-Including-libavcodec-hev.patch new file mode 100644 index 0000000000..afbfc84db5 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav/0001-hevcpred_msa.c-Fix-build-by-Including-libavcodec-hev.patch @@ -0,0 +1,33 @@ +From b5226c096a0b7049874858e94a59d43e10ba3fd2 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 21 Sep 2017 10:22:56 -0700 +Subject: [PATCH] hevcpred_msa.c: Fix build by Including libavcodec/hevcdec.h + +src/libavcodec/mips/hevcpred_msa.c:1913:32: error: unknown type name 'HEVCContext'; did you mean 'HEVCPredContext'? + void ff_intra_pred_8_16x16_msa(HEVCContext *s, int x0, int y0, int c_idx) + ^~~~~~~~~~~ + HEVCPredContext + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + + gst-libs/ext/libav/libavcodec/mips/hevcpred_msa.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gst-libs/ext/libav/libavcodec/mips/hevcpred_msa.c b/gst-libs/ext/libav/libavcodec/mips/hevcpred_msa.c +index 6a3b281..963c64c 100644 +--- a/gst-libs/ext/libav/libavcodec/mips/hevcpred_msa.c ++++ b/gst-libs/ext/libav/libavcodec/mips/hevcpred_msa.c +@@ -18,7 +18,7 @@ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +-#include "libavcodec/hevc.h" ++#include "libavcodec/hevcdec.h" + #include "libavutil/mips/generic_macros_msa.h" + #include "hevcpred_mips.h" + +-- +2.14.1 + diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.12.2.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.12.2.bb index 6c5f779ebf..3b5bbd1507 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.12.2.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.12.2.bb @@ -13,6 +13,7 @@ SRC_URI = "http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-${PV}.tar.xz file://workaround-to-build-gst-libav-for-i586-with-gcc.patch \ file://mips64_cpu_detection.patch \ file://0001-configure-check-for-armv7ve-variant.patch \ + file://0001-hevcpred_msa.c-Fix-build-by-Including-libavcodec-hev.patch \ " SRC_URI[md5sum] = "8788aecc032a287227b4bd239d1b998a" SRC_URI[sha256sum] = "5bb735b9bb218b652ae4071ea6f6be8eaae55e9d3233aec2f36b882a27542db3" From patchwork Thu Sep 21 17:42:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 113923 Delivered-To: patch@linaro.org Received: by 10.80.163.150 with SMTP id s22csp2143556edb; Thu, 21 Sep 2017 10:42:46 -0700 (PDT) X-Received: by 10.99.126.23 with SMTP id z23mr6439998pgc.156.1506015766797; Thu, 21 Sep 2017 10:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506015766; cv=none; d=google.com; s=arc-20160816; b=onQPD5xyM2ZvRmhyElqY1Ae7qGcOuBpIN0moa7hlG5M1BiYIfUDe/uYwvNaJL400Uo aSbIoGd61RxPSGi7H9alfVp6JDLEb4WKkyRynLXKk0zREe0XmNbCEDsqZNwYOQ37SCDQ BH97QEut7SGGwkFU8CYMSzF37XeIVII6rvBg4cGXyFfJ5AWs7uw8H0CYjuLITo1oxkRp 54SFdhi4asAp5RyFvD9AkFFtczeMTAU05IKAQvq3fEw6TvsNSWYPqv+nbFUWiDMeKEf9 +qCMHWz5dbds1Qvj7VXNz2xmQT6B24TfSXwRiNKPNpCoFH1biSVGUcM1m4GbkDBeCHsY 8o1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=ObrMuExmZTphZ3aLPQzfRajV6J5F0MizWmZIZnPa2g4=; b=xjJsjYUtQLENETqZGrWomvI+hmXq40J50t0/XPFvrOQIJMnndB30JHdbx4CvClhGON 3UuiLCWrZCBZgU7vd1iSu2Kmroc9KrVnn0h2ELItPLWIx68cvMfe2vPVhIaSbbhJQRMz nlfDcKbpq+hb2D62fZTrYgjlmt010EVarmuWFTR0RBdtv/GeXx1j60GshcASXCyOOPuD B61PmIjKs4R/1wyyPUjJpJsIHHowe527HbnCBdeIq4FZ+xm0u/5AITaBCgoPJCmaQDWy mAbYJdSeuDi9kRFcZG3/VzZwJAHNvoDNNiQ/lsYdZomb1Two0W/vTBdnTEa4ZVsCW4OW kg7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=VSkPEqqv; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE 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 g16si1330655pli.684.2017.09.21.10.42.46; Thu, 21 Sep 2017 10:42:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-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=VSkPEqqv; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 37493782DD; Thu, 21 Sep 2017 17:42:44 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by mail.openembedded.org (Postfix) with ESMTP id B5EDA782D1 for ; Thu, 21 Sep 2017 17:42:23 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id m30so3784830pgn.5 for ; Thu, 21 Sep 2017 10:42:25 -0700 (PDT) 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; bh=7Y8TQpQeHEuSDPV1ggSiPhMI2EHgmXPGA3/2gFt32nU=; b=VSkPEqqvzjaUMY+bRIL5eE2l4jruo32oLe1Yd0TuxFWRO5RbDQoXF4ioj80MoKW1mF 81J3nKBRnSqU07nJo0GF1ZrKL2GQDwSKJs1AryUidTjTILr+FFxcyYnbB7kGJ2OKgTxt rKltxF5M7niO9enbObYKl2MbfsximvYbt+Rwck+blefBCAsbU0fqg6lU8cGxvUGZJ8VX y3+L7IWLYfb+EIWyoqVHDii4pJgnhlV0ukgKQt5+pHNa9t3LgZSrkTi114ZMEOw8zSFn 8idJD+QMnx+xVmiv4w623+c2zZxrs/YsbyMWPaXhKVabDWcuI8wbZXQYpQgs0WIbBsBr FH9w== 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; bh=7Y8TQpQeHEuSDPV1ggSiPhMI2EHgmXPGA3/2gFt32nU=; b=Hhzdx6z+mYt80L6SD25DwxAXS1XJccfQBC9ojUoCeXuSmpqsiDogIpXLcA/qMhRvoW vBvzKCW1q1HO0TzsiRyg+PBhHEj7MYhDKr7ijRvMTW0x5cZwK3chpeykou/FXjA3iqVS U6LdwCVlKmde7W/KTBR4+uboOwAi+tk8nxFIKOAZ5DdtI28XtD3IvsUXDMQ1yZv041KA N2tw8Jksa6qGdifSS1vZPml2BM9+kNKlrtzHRLcAp6TWHtjzwii+6VBhV1UV811DbumQ K6yeBb6sdB5tXPC3Ra1hEr4pKthQ0vbpwIIO3iVOL9V5WcDUk/0vsOmx/jmf9QSwVWAG h3FA== X-Gm-Message-State: AHPjjUgcwJgaSkwZYfeCGhWGQasQgDBlUkbNTf4Kp3HuiWPDVSrTtRpE SJPARN52Oe9GZJdz5uw0oQjNXA== X-Google-Smtp-Source: AOwi7QC1pievFkSnLURohrkg0zKyoOycr7J4QnCSbAof7ajbuEXJ2o+dIsR6XrdgH0fYsUiYNkUacg== X-Received: by 10.159.218.7 with SMTP id v7mr6448566plp.322.1506015744759; Thu, 21 Sep 2017 10:42:24 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::e57f]) by smtp.gmail.com with ESMTPSA id u20sm3241745pfh.171.2017.09.21.10.42.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Sep 2017 10:42:23 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 21 Sep 2017 10:42:16 -0700 Message-Id: <20170921174216.33386-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170921174216.33386-1-raj.khem@gmail.com> References: <20170921174216.33386-1-raj.khem@gmail.com> Subject: [OE-core] [PATCH 2/2] go: Remove mips32r2 from march to get cgo working X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org on mips, cgo used mips32r1 and that conflicts with mips32r2 lets remove it for now and work go upstream to make it work for golang as well Fixes | # runtime/cgo | cc1: error: '-mips32r2' conflicts with the other architecture options, which specify a mips32 processor Fixes [YOCTO #12108] Signed-off-by: Khem Raj --- meta/recipes-devtools/go/go-common.inc | 4 ++++ meta/recipes-devtools/go/go_1.9.bb | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) -- 2.14.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/go/go-common.inc b/meta/recipes-devtools/go/go-common.inc index ce1eb86812..41f661bc4e 100644 --- a/meta/recipes-devtools/go/go-common.inc +++ b/meta/recipes-devtools/go/go-common.inc @@ -20,3 +20,7 @@ B = "${S}" INHIBIT_PACKAGE_DEBUG_SPLIT = "1" SSTATE_SCAN_CMD = "true" + +TUNE_CCARGS_remove = "-march=mips32r2" +SECURITY_CFLAGS = "${SECURITY_NOPIE_CFLAGS}" +SECURITY_LDFLAGS = "" diff --git a/meta/recipes-devtools/go/go_1.9.bb b/meta/recipes-devtools/go/go_1.9.bb index 08ab793f86..c67e2cb050 100644 --- a/meta/recipes-devtools/go/go_1.9.bb +++ b/meta/recipes-devtools/go/go_1.9.bb @@ -1,4 +1,2 @@ require go-${PV}.inc require go-target.inc -TUNE_CCARGS_remove = "-march=mips32r2" -SECURITY_PIE_CFLAGS_remove = "-fPIE -pie"