libtorrent: Link in 64bit atomics for ppc
PATCH 1/2 libtorrent: Link in 64bit atomics for ppc
Signed-off-by Khem Raj <[email protected]>
--- ...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
meta-oe/recipes-connectivity/libtorrent/libtorrent/0001-Define-64bit-atomic-helpers-for-ppc-32-bit.patch new file +30 -0
@@ -0,0 +1,30 @@ +From c9859a38a58996b8767a30e14febc03845f66f95 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 1 Jul 2017 13:10:53 -0700 +Subject: [PATCH] Define 64bit atomic helpers for ppc 32-bit + +Signed-off-by: Khem Raj <[email protected]> +--- + 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 <stdbool.h> + + /* +- * 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 +
meta-oe/recipes-connectivity/libtorrent/libtorrent_git.bb +1 -0
@@ -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"
Signature · 1 line
2.13.2
PATCH 2/2 librcf: Define byteorder for powerpc machines
Signed-off-by Khem Raj <[email protected]>
--- .../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
meta-oe/recipes-devtools/librcf/librcf/0001-Check-for-__powerpc__-define.patch new file +28 -0
@@ -0,0 +1,28 @@ +From ac7316679e30f7013604b19aa0949a0744e91d2f Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +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 <[email protected]> +--- + 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 +
meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb +2 -1
@@ -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"
Signature · 1 line
2.13.2