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:28:21 +0100 |
commit | d488d78db0b60433b54e0aec45624970309567b6 (patch) | |
tree | e4b13b816369f6aa0ae06a22586854c890e02268 /meta/recipes-devtools | |
parent | 9d2d1ae5a91f1a28dca708dd3b6f6bd90ff233f5 (diff) | |
download | poky-d488d78db0b60433b54e0aec45624970309567b6.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.
(From OE-Core rev: 9ef23b0273a87bd19dcc9c21cc1c53b1f8480668)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm/0001-Disable-__sync_add_and_fetch_8-on-nios2.patch | 30 | ||||
-rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.4+cvs.bb | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.4.16.bb | 1 |
3 files changed, 32 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 @@ | |||
1 | From 06967a50f20095f5ca30b8214f4c98ba0f5262bf Mon Sep 17 00:00:00 2001 | ||
2 | From: Marek Vasut <marex@denx.de> | ||
3 | Date: Sun, 3 Apr 2016 06:55:25 +0200 | ||
4 | Subject: [PATCH] Disable __sync_add_and_fetch_8 on nios2 | ||
5 | |||
6 | The NIOS2 softcore does not implement the __sync_add_and_fetch_8, | ||
7 | so disable it accordingly. | ||
8 | |||
9 | Signed-off-by: Marek Vasut <marex@denx.de> | ||
10 | Upstream-Status: Submitted | ||
11 | --- | ||
12 | rpmio/bson.h | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/rpmio/bson.h b/rpmio/bson.h | ||
16 | index 57023f1..60c7d02 100644 | ||
17 | --- a/rpmio/bson.h | ||
18 | +++ b/rpmio/bson.h | ||
19 | @@ -880,7 +880,7 @@ BSON_END_DECLS | ||
20 | BSON_BEGIN_DECLS | ||
21 | |||
22 | /* Some architectures do not support __sync_add_and_fetch_8 */ | ||
23 | -#if (__mips == 32) || (defined(__PPC__) && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)) | ||
24 | +#if (__mips == 32) || (__nios2__) || (defined(__PPC__) && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8)) | ||
25 | # define __BSON_NEED_ATOMIC_64 1 | ||
26 | #endif | ||
27 | |||
28 | -- | ||
29 | 2.8.0.rc3 | ||
30 | |||
diff --git a/meta/recipes-devtools/rpm/rpm_5.4+cvs.bb b/meta/recipes-devtools/rpm/rpm_5.4+cvs.bb index c6c21b86aa..0991f6d52a 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4+cvs.bb +++ b/meta/recipes-devtools/rpm/rpm_5.4+cvs.bb | |||
@@ -110,6 +110,7 @@ SRC_URI += " \ | |||
110 | file://rpm-python-tagname.patch \ | 110 | file://rpm-python-tagname.patch \ |
111 | file://rpm-python-AddErase.patch \ | 111 | file://rpm-python-AddErase.patch \ |
112 | file://rpm-rpmpgp-popt.patch \ | 112 | file://rpm-rpmpgp-popt.patch \ |
113 | file://0001-Disable-__sync_add_and_fetch_8-on-nios2.patch \ | ||
113 | " | 114 | " |
114 | 115 | ||
115 | # OE specific changes | 116 | # OE specific changes |
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.16.bb b/meta/recipes-devtools/rpm/rpm_5.4.16.bb index 9e2229a082..cbdca88eaa 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.16.bb +++ b/meta/recipes-devtools/rpm/rpm_5.4.16.bb | |||
@@ -115,6 +115,7 @@ SRC_URI += " \ | |||
115 | file://rpm-rpmpgp-popt.patch \ | 115 | file://rpm-rpmpgp-popt.patch \ |
116 | file://rpm-fix-lua-tests-compilation-failure.patch \ | 116 | file://rpm-fix-lua-tests-compilation-failure.patch \ |
117 | file://rpmqv.c-check-_gpg_passphrase-before-ask-for-input.patch \ | 117 | file://rpmqv.c-check-_gpg_passphrase-before-ask-for-input.patch \ |
118 | file://0001-Disable-__sync_add_and_fetch_8-on-nios2.patch \ | ||
118 | " | 119 | " |
119 | 120 | ||
120 | # OE specific changes | 121 | # OE specific changes |