From patchwork Sat Jul 1 20:15:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106835 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp3857817qge; Sat, 1 Jul 2017 13:15:34 -0700 (PDT) X-Received: by 10.98.15.220 with SMTP id 89mr2110376pfp.203.1498940134356; Sat, 01 Jul 2017 13:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498940134; cv=none; d=google.com; s=arc-20160816; b=h2UCl4VLGA4s0L26nwEXtQDSskavHTV4V/EXDm2zz1UuOdBL6wwSNeFRZD1/KMFqzG 6pwPwqTaNcK4CoLW6kLShNiZbsiBBsUWi2oMT3KiGnRTcQgHor8IZQduDCh0888DXRtF isF40Ng9+sDuaO0LvJv0GdS4p3Agn8wScK4EfDmOuXut/j7mZ19BcvtbmoQrkwDN43im ry0nu3JlvJ4/aflV7hS5keXeUyYPmyn3e+Ls9ckrQvsbOYBirbU2G/QdIz5BaZDAMVnw lQDjzwJwzheTSAipwBp2iRSPQYj8AvvSdyoPGNkDJ/x/OnPjBibBOwI+UmuLVuElrq48 J0OA== 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=UU5UTLoJbVVEU7S/CVwEaAds4SpmmVNcvOgmbVGAO6U=; b=LBG2ne9sC5nNQE8gUggI+n4jDW0aGUSxLMjkaznrGK3yYGqHSS0nehOEmGuy/+CwRa 7vTBr/gu/hNtrvEoGD3UFDypkcKj9/j/4PYY2q2Wy/XbTGQLgfkqpW60XjR4xmjq2fXJ hxxnF16jXk9iZwSolHovUS6v1D6UNMH7p1fa1HvKx/m2u2oezn4YGMdW//ciG+fOxrnR KfNCd+AZHkPd5ZOtKCkdZfy1+p8B0SJKQ41ZmLVr3OdixiBx3gEtdWKkfPD2f0hjzccj LFaxUhDluRjnG3PvSRLUiEDZ2EsNorGm/wc/rByw5tfAyRs+oOXGocSOyz3nwt9hw8yU wfuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=qiC5zLuJ; 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=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 q2si8220879pge.420.2017.07.01.13.15.34; Sat, 01 Jul 2017 13:15:34 -0700 (PDT) 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.b=qiC5zLuJ; 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=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 0FB5078280; Sat, 1 Jul 2017 20:15:26 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by mail.openembedded.org (Postfix) with ESMTP id CFA2C71ADA for ; Sat, 1 Jul 2017 20:15:23 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id j186so18904390pge.1 for ; Sat, 01 Jul 2017 13:15: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; bh=NXRPuSDYGRnCaZ7r97+0ykwTeT82ILsp3q5QE0ukSgw=; b=qiC5zLuJTxF3+AQhCO0+A5PpwxTDJuv5/6qys0Mi4XU/O/zWhfJmD9o6zqYslyJoDV JmK0KSQB/VciZx5qEzXk1RkWNCY3N5eGOvjuSHU2UXywpK6ytwRmEtwdOR3cdSlfl3Xl P/2SG/FAXTHT4d9dteGs9cBc1J9uz1xfIgQgVg26JYUtLV0YIcguQavhKJJnBrYBTAF9 CLG4qNGYmIYsMBci0yUDTve9WuX32oI/gDiV92o3fV55qY5a7U+mYpI4LqY/+Uwdbalj LBc900tBe4A/hesC+38UBeM4l0F6bNc2BqtaEtJaANxze41Jj7gqAmsFAwWq8iant+KU NIbQ== 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=NXRPuSDYGRnCaZ7r97+0ykwTeT82ILsp3q5QE0ukSgw=; b=eSF5dkCCmkaxBj2YfYfPz/mzC7j1pTCFZ11qdZFr+UE2BtMvCf9KpoOIfqliMN8v3u /ZSblHc5ldrjcEtBIGX/1n/KA/lvMhO+S8TROgDk2lnNSjF6mt9cYKoXjzkVyTLLjr8b a6HXdlet14m7jilJygxtdLWHAyVPSPYD6W6BH0ZEu0s1N7vMemElajOinqOWHbLLMXNJ D7EYNmTWK8QXc73zs986tyDnpaO5RZJmKrQuGfZYF2cOSRhzP4ptMl7Lt1ii//mfopTR tk0Uc5LTWctJLUmtSPaghn/oxo40gEuXEvlVdynQmdywvhoHhsEUjDXVpw2ozi6ko6Ir l5gA== X-Gm-Message-State: AIVw113l/mJgjJQimFj8CIm5OFzeI03G/lPhHeCJw02uxHvCYuuNpdWs 4Vff+sKLKXy9aGau X-Received: by 10.101.85.14 with SMTP id f14mr2206019pgr.112.1498940124665; Sat, 01 Jul 2017 13:15:24 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id g5sm20020227pgc.42.2017.07.01.13.15.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Jul 2017 13:15:23 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 1 Jul 2017 13:15:14 -0700 Message-Id: <20170701201515.24835-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 Subject: [oe] [meta-oe][PATCH 1/2] libtorrent: Link in 64bit atomics for ppc 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...efine-64bit-atomic-helpers-for-ppc-32-bit.patch | 30 ++++++++++++++++++++++ .../libtorrent/libtorrent_git.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-Define-64bit-atomic-helpers-for-ppc-32-bit.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-Define-64bit-atomic-helpers-for-ppc-32-bit.patch b/meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-Define-64bit-atomic-helpers-for-ppc-32-bit.patch new file mode 100644 index 000000000..4d0979710 --- /dev/null +++ b/meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-Define-64bit-atomic-helpers-for-ppc-32-bit.patch @@ -0,0 +1,30 @@ +From c9859a38a58996b8767a30e14febc03845f66f95 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 1 Jul 2017 13:10:53 -0700 +Subject: [PATCH] Define 64bit atomic helpers for ppc 32-bit + +Signed-off-by: Khem Raj +--- + src/atomic64.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/atomic64.c b/src/atomic64.c +index f841b39b..35c7c9d8 100644 +--- a/src/atomic64.c ++++ b/src/atomic64.c +@@ -18,10 +18,10 @@ + #include + + /* +- * only need these on MIPS, since it lacks hardware 64-bit atomics, ++ * only need these on MIPS & PPC32, since it lacks hardware 64-bit atomics, + * unlike x86 and ARM. + */ +-#if defined(__mips__) || defined(__mipsel__) ++#if defined(__mips__) || defined(__mipsel__) || defined(__powerpc__) + + static void __spin_lock(volatile int *lock) { + while (__sync_lock_test_and_set(lock, 1)) +-- +2.13.2 + diff --git a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb index 0febebd93..92e65289a 100644 --- a/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb +++ b/meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb @@ -9,6 +9,7 @@ DEPENDS = "zlib libsigc++-2.0 openssl cppunit" SRC_URI = "git://github.com/rakshasa/libtorrent \ file://don-t-run-code-while-configuring-package.patch \ file://0001-implement-64bit-atomic-for-mips.patch \ + file://0001-Define-64bit-atomic-helpers-for-ppc-32-bit.patch \ " SRCREV = "c167c5a9e0bcf0df23ae5efd91396aae0e37eb87" From patchwork Sat Jul 1 20:15: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: 106836 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp3858369qge; Sat, 1 Jul 2017 13:16:10 -0700 (PDT) X-Received: by 10.99.152.18 with SMTP id q18mr2186895pgd.91.1498940170655; Sat, 01 Jul 2017 13:16:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498940170; cv=none; d=google.com; s=arc-20160816; b=X7ms3UNmaRFNGRLQ1XIyeab889r18fVCiEnnG/VSmmplZtPCSZt4dmdzNbslJ6r8Pa npIiGj3fAM+jSaZ0mXvQrJlGMX2mvwPdrfZbPbbvx5Zq0fd7GlZPyb2mVbUJuEihENlM kyKX0Th9VY8VS3b2R04bEghXjlNc3Cwmi9jMq/oE0vuiIBnvwDqcpCxbDiZ1JjvhKidB whS///cATE3PHEC8NWMe35yaZLr7j+evbXvQ/73aoQdY36t0nBvvHem5/w/JVA/0TxI9 bst2g7RYcSoMc1VID7ehYCjJ2fA2tsO1tv7+OTCfiq6SZ0TAop3Lv89tg1J8Sl9YJA6m ttSw== 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=qIDw8Fb5WT5LRCcRCw/JEM5UCa4GMvgZwZbXC2YyaHU=; b=F22WOPuhAajD/D4FxwuyhnRHOrRPhR3GDRcHhG9stC7TselSm0b400Gf95R2d9KC3N ipVW2kzSIkQaPKlQ0FwB4P/0iKc/PBg4vM66kwft4CX+gnhW/rcvS2Y2BEJDljE7qgmv FnKgggf+kSwLWb5uWpFitKcQLSWCjafassJbR7Ma8kfscyppwhkuNVwuiCKkSnisYC78 vlrq4YfnHOmi2Yz0c6vzSYf1JCRtjJUnRygbeurF7wMIFvjWa6eqrhkL4M/pfbRcR8aT 6MLgJFagUwq0tYh65I2UP6+ZTzhC60jHK756Sg5l3UH1dZ82S9beHtsSWZWIABvibejD Qbzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=MxmsUP/I; 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=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 g1si9421085plk.577.2017.07.01.13.16.10; Sat, 01 Jul 2017 13:16:10 -0700 (PDT) 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.b=MxmsUP/I; 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=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 1B4F578292; Sat, 1 Jul 2017 20:16:07 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f181.google.com (mail-pf0-f181.google.com [209.85.192.181]) by mail.openembedded.org (Postfix) with ESMTP id 1D43571ADA for ; Sat, 1 Jul 2017 20:15:24 +0000 (UTC) Received: by mail-pf0-f181.google.com with SMTP id s66so82221140pfs.1 for ; Sat, 01 Jul 2017 13:15:26 -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=wZXmoQu3G36SREpHzivBnNCegftlbqcj4Bmuxku2IEg=; b=MxmsUP/IGQ769KjfiOShW2FIpwM7t2Wkkx75BUXxhfILpcoGPbdrKoDusV9LQSkY6z meqkQ9/xECxiWdBzVNsd7Lk84BoWuVfwdVzbaQ/f9phK+KqqpGPvtooLUcSoC0Fttwi8 bTse2it02C7p4el22ST4eMUen4VSjdw6Bp2KbJ+Jh41nqB915KfRbRyPfePTKcjpxfbe rAnyezOv/LxbEL493PTOB+1Ckaz7pVApsM1u82ZYHhkgUy34TsSQ18pw/ZeEHtZIt5yp ZcYEdy074SiW7vEkSnuCPBM0+7jekSuewtXctH0jzfBBf4kwfz9V+27otZx8usFGVGjS zaBQ== 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=wZXmoQu3G36SREpHzivBnNCegftlbqcj4Bmuxku2IEg=; b=S40b8f73fdRGd1DfKAC4BnuwWzcGWs/4lX1VBJtKi+WUljg3fmeQfBXIvHYiFc2108 kcxdBOgjlVwgGw+iJBLEgamJFMB6i3bdyMozBTnURx+vpy4FPj0ZK8M6jtIo/bs4d9pw A/FUxLprYBSTEN0/YoMxK4jgkqlcW58ewLWQbo7pVffpazNOsfvNf8bpcgKlPJ46rLz2 7tO4q7b9VZX//xJLRIIM3TZ5xr1GjRN4vlZC8OtqF/vmce/QTTI86D8YVCVE9ozlGcVA ddgrCZINUajoSKF/CoP79lHFKrvxSintd8UnAZniOTp6DVA/4OPfGfjUBPe2xRj7yrs4 5oGg== X-Gm-Message-State: AIVw1101ZwSDNYlAdg4SvZkAkHCGySBCg3WXdSdJ8OpOu72s55O1LJQj 62Yi8cYBjWClRkp+ X-Received: by 10.84.170.67 with SMTP id i61mr2280657plb.114.1498940126046; Sat, 01 Jul 2017 13:15:26 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::3df3]) by smtp.gmail.com with ESMTPSA id g5sm20020227pgc.42.2017.07.01.13.15.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Jul 2017 13:15:25 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 1 Jul 2017 13:15:15 -0700 Message-Id: <20170701201515.24835-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170701201515.24835-1-raj.khem@gmail.com> References: <20170701201515.24835-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 2/2] librcf: Define byteorder for powerpc machines 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../librcf/0001-Check-for-__powerpc__-define.patch | 28 ++++++++++++++++++++++ meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb | 3 ++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/librcf/librcf/0001-Check-for-__powerpc__-define.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-devtools/librcf/librcf/0001-Check-for-__powerpc__-define.patch b/meta-oe/recipes-devtools/librcf/librcf/0001-Check-for-__powerpc__-define.patch new file mode 100644 index 000000000..d91accf1d --- /dev/null +++ b/meta-oe/recipes-devtools/librcf/librcf/0001-Check-for-__powerpc__-define.patch @@ -0,0 +1,28 @@ +From ac7316679e30f7013604b19aa0949a0744e91d2f Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 1 Jul 2017 13:06:30 -0700 +Subject: [PATCH] Check for __powerpc__ define + +Also check for gcc's internal define for ppc platform + +Signed-off-by: Khem Raj +--- + src/RCF/ByteOrdering.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/RCF/ByteOrdering.cpp b/src/RCF/ByteOrdering.cpp +index 278ca80..9f9c446 100755 +--- a/src/RCF/ByteOrdering.cpp ++++ b/src/RCF/ByteOrdering.cpp +@@ -36,7 +36,7 @@ namespace RCF { + + const ByteOrder MachineByteOrder = BigEndian; + +-#elif defined( __ppc__ ) ++#elif defined( __ppc__ ) || defined( __powerpc__ ) + + const ByteOrder MachineByteOrder = BigEndian; + +-- +2.13.2 + diff --git a/meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb b/meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb index 1287eb014..dee74277c 100644 --- a/meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb +++ b/meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb @@ -15,7 +15,8 @@ SRC_URI = "http://www.deltavsoft.com/downloads/RCF-${PV}.tar.gz \ file://aarch64-support.patch \ file://0001-ClientStub.hpp-fix-a-clang-compiling-issue.patch \ file://mips-support.patch \ - " + file://0001-Check-for-__powerpc__-define.patch \ + " SRC_URI[md5sum] = "7ecb3c73f7eb66dba8790b659374f690" SRC_URI[sha256sum] = "bbfcc88de502c39604878c395f516b03fff4eac63eb4f7f44c07d433839712dd"