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"