diff options
author | Marek Vasut <marex@denx.de> | 2016-04-15 12:20:15 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-18 16:27:45 +0100 |
commit | 9ef23b0273a87bd19dcc9c21cc1c53b1f8480668 (patch) | |
tree | 4d31db9e5bf38e476786a02cd45ffadd4c4414ec /meta/recipes-devtools/rpm/rpm/0001-Disable-__sync_add_and_fetch_8-on-nios2.patch | |
parent | 42ed25f693a4898f517c9ffc7920e5d994ac692d (diff) | |
download | openembedded-core-contrib-9ef23b0273a87bd19dcc9c21cc1c53b1f8480668.tar.gz |
rpm: Disable __sync_add_and_fetch_8 on nios2
The NIOS2 softcore does not implement the __sync_add_and_fetch_8,
so disable it accordingly.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Ross Burton <ross.burton@intel.com>
Cc: Thomas Chou <thomas@wytron.com.tw>
Cc: Walter Goossens <waltergoossens@home.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm/0001-Disable-__sync_add_and_fetch_8-on-nios2.patch')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm/0001-Disable-__sync_add_and_fetch_8-on-nios2.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/0001-Disable-__sync_add_and_fetch_8-on-nios2.patch b/meta/recipes-devtools/rpm/rpm/0001-Disable-__sync_add_and_fetch_8-on-nios2.patch new file mode 100644 index 0000000000..e9b73b8bfc --- /dev/null +++ b/meta/recipes-devtools/rpm/rpm/0001-Disable-__sync_add_and_fetch_8-on-nios2.patch @@ -0,0 +1,30 @@ +From 06967a50f20095f5ca30b8214f4c98ba0f5262bf Mon Sep 17 00:00:00 2001 +From: Marek Vasut <marex@denx.de> +Date: Sun, 3 Apr 2016 06:55:25 +0200 +Subject: [PATCH] Disable __sync_add_and_fetch_8 on nios2 + +The NIOS2 softcore does not implement the __sync_add_and_fetch_8, +so disable it accordingly. + +Signed-off-by: Marek Vasut <marex@denx.de> +Upstream-Status: Submitted +--- + rpmio/bson.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/rpmio/bson.h b/rpmio/bson.h +index 57023f1..60c7d02 100644 +--- a/rpmio/bson.h ++++ b/rpmio/bson.h +@@ -880,7 +880,7 @@ BSON_END_DECLS + BSON_BEGIN_DECLS + + /* Some architectures do not support __sync_add_and_fetch_8 */ +-#if (__mips == 32) || (defined(__PPC__) && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)) ++#if (__mips == 32) || (__nios2__) || (defined(__PPC__) && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)) + # define __BSON_NEED_ATOMIC_64 1 + #endif + +-- +2.8.0.rc3 + |