summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gmp
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2014-08-21 14:35:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-23 23:01:57 +0100
commitdfb55758d21145621546ac2ae49f4892f974f246 (patch)
treef7d3f7d1caf13ae6edd39fff23b497c69b241363 /meta/recipes-support/gmp
parentc8910783b58548543f4459998abeee76972fc02e (diff)
downloadpoky-dfb55758d21145621546ac2ae49f4892f974f246.tar.gz
gmp: ppc64 build issue
tmp-gcd_1.s: Assembler messages: | tmp-gcd_1.s:94: Error: unsupported relocation against BMOD_1_TO_MOD_1_THRESHOLD | make[2]: *** [gcd_1.lo] Error 1 V2: fixed PN name (From OE-Core rev: add84a15023d6c277340d6ab4810c605fab01e00) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gmp')
-rw-r--r--meta/recipes-support/gmp/gmp/gmp-6.0.0-ppc64.patch26
-rw-r--r--meta/recipes-support/gmp/gmp_6.0.0.bb1
2 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-support/gmp/gmp/gmp-6.0.0-ppc64.patch b/meta/recipes-support/gmp/gmp/gmp-6.0.0-ppc64.patch
new file mode 100644
index 0000000000..1113b41ecd
--- /dev/null
+++ b/meta/recipes-support/gmp/gmp/gmp-6.0.0-ppc64.patch
@@ -0,0 +1,26 @@
1
2Signed-off-by: Armin Kuster <akuster808@gmail.com>
3
4This patch with pulled from gmp.
5https://gmplib.org/repo/gmp/rev/4a6d258b467f
6Upstream-Status: Backport
7
8# HG changeset patch
9# User Torbjorn Granlund <tege@gmplib.org>
10# Date 1395835068 -3600
11# Node ID 4a6d258b467f661da0894cc60ecd060f2e3c67c7
12# Parent 301ce2788826a2d4d2725bd5cf01e998638db37a
13Provide default for BMOD_1_TO_MOD_1_THRESHOLD.
14
15diff -r 301ce2788826 -r 4a6d258b467f mpn/powerpc64/mode64/gcd_1.asm
16--- a/mpn/powerpc64/mode64/gcd_1.asm Tue Mar 25 15:34:52 2014 +0100
17+++ b/mpn/powerpc64/mode64/gcd_1.asm Wed Mar 26 12:57:48 2014 +0100
18@@ -43,6 +43,9 @@
19 define(`n', `r4')
20 define(`v0', `r5')
21
22+ifdef(`BMOD_1_TO_MOD_1_THRESHOLD',,
23+ `define(`BMOD_1_TO_MOD_1_THRESHOLD',30)')
24+
25 EXTERN_FUNC(mpn_mod_1)
26 EXTERN_FUNC(mpn_modexact_1c_odd)
diff --git a/meta/recipes-support/gmp/gmp_6.0.0.bb b/meta/recipes-support/gmp/gmp_6.0.0.bb
index 19e5f4dd19..6218491142 100644
--- a/meta/recipes-support/gmp/gmp_6.0.0.bb
+++ b/meta/recipes-support/gmp/gmp_6.0.0.bb
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
7" 7"
8SRC_URI_append = " file://use-includedir.patch \ 8SRC_URI_append = " file://use-includedir.patch \
9 file://append_user_provided_flags.patch \ 9 file://append_user_provided_flags.patch \
10 file://gmp-6.0.0-ppc64.patch \
10" 11"
11 12
12SRC_URI[md5sum] = "b7ff2d88cae7f8085bd5006096eed470" 13SRC_URI[md5sum] = "b7ff2d88cae7f8085bd5006096eed470"