summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gmp
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:31:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:31:53 +0000
commit8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch)
treeefdc32587159d0050a69009bdf2330a531727d95 /meta/recipes-support/gmp
parentd412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff)
downloadpoky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz
The poky repository master branch is no longer being updated.
You can either: a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs b) use the new bitbake-setup You can find information about either approach in our documentation: https://docs.yoctoproject.org/ Note that "poky" the distro setting is still available in meta-yocto as before and we continue to use and maintain that. Long live Poky! Some further information on the background of this change can be found in: https://lists.openembedded.org/g/openembedded-architecture/message/2179 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gmp')
-rw-r--r--meta/recipes-support/gmp/gmp.inc12
-rw-r--r--meta/recipes-support/gmp/gmp/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch61
-rw-r--r--meta/recipes-support/gmp/gmp/0001-Complete-function-prototype-in-acinclude.m4-for-C23-.patch25
-rw-r--r--meta/recipes-support/gmp/gmp/0001-acinclude.m4-Add-parameter-names-in-prototype-for-g.patch50
-rw-r--r--meta/recipes-support/gmp/gmp/0001-confiure.ac-Believe-the-cflags-from-environment.patch49
-rw-r--r--meta/recipes-support/gmp/gmp/use-includedir.patch18
-rw-r--r--meta/recipes-support/gmp/gmp_6.3.0.bb53
7 files changed, 0 insertions, 268 deletions
diff --git a/meta/recipes-support/gmp/gmp.inc b/meta/recipes-support/gmp/gmp.inc
deleted file mode 100644
index 1872226616..0000000000
--- a/meta/recipes-support/gmp/gmp.inc
+++ /dev/null
@@ -1,12 +0,0 @@
1SUMMARY = "GNU multiprecision arithmetic library"
2DESCRIPTION = "GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers"
3HOMEPAGE = "http://gmplib.org/"
4SECTION = "devel"
5
6inherit autotools texinfo multilib_header
7
8PACKAGECONFIG ??= ""
9PACKAGECONFIG[readline] = "--with-readline=yes,--with-readline=no,readline"
10
11ARM_INSTRUCTION_SET:armv4 = "arm"
12ARM_INSTRUCTION_SET:armv5 = "arm"
diff --git a/meta/recipes-support/gmp/gmp/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch b/meta/recipes-support/gmp/gmp/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch
deleted file mode 100644
index 325ffe491f..0000000000
--- a/meta/recipes-support/gmp/gmp/0001-Append-the-user-provided-flags-to-the-auto-detected-.patch
+++ /dev/null
@@ -1,61 +0,0 @@
1From d3b9fc523fc11260ced890c35bc5c9e6391c8656 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 14 Dec 2015 14:19:49 +0200
4Subject: [PATCH] Append the user provided flags to the auto-detected ones.
5
6Upstream-Status: Inappropriate
7Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
8Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
9---
10 configure.ac | 14 ++++++++++----
11 1 file changed, 10 insertions(+), 4 deletions(-)
12
13diff --git a/configure.ac b/configure.ac
14index 9cedfeb..87caee5 100644
15--- a/configure.ac
16+++ b/configure.ac
17@@ -1921,8 +1921,12 @@ cclist=$cclist
18 EOF
19
20
21-test_CFLAGS=${CFLAGS+set}
22-test_CPPFLAGS=${CPPFLAGS+set}
23+test_CFLAGS=
24+test_CPPFLAGS=
25+
26+user_CFLAGS=$CFLAGS
27+user_CPPFLAGS=$CPPFLAGS
28+user_CXXFLAGS=$CXXFLAGS
29
30 for abi in $abilist; do
31 abi_last="$abi"
32@@ -2353,7 +2357,7 @@ AC_SUBST(CCAS)
33 # The C++ compiler, if desired.
34 want_cxx=no
35 if test $enable_cxx != no; then
36- test_CXXFLAGS=${CXXFLAGS+set}
37+ test_CXXFLAGS=
38 AC_PROG_CXX
39
40 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AC_FD_CC
41@@ -2381,7 +2385,7 @@ if test $enable_cxx != no; then
42 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
43 #
44 for cxxflags_choice in $cxxflags_list; do
45- eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
46+ eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice $user_CXXFLAGS\"
47 GMP_PROG_CXX_WORKS($CXX $CPPFLAGS $CXXFLAGS,
48 [want_cxx=yes
49 break])
50@@ -2477,6 +2481,8 @@ if test "$enable_assembly" = "no"; then
51 # done
52 fi
53
54+CFLAGS="$CFLAGS $user_CFLAGS"
55+CPPFLAGS="$CPPFLAGS $user_CPPFLAGS"
56
57 cat >&AC_FD_CC <<EOF
58 Decided:
59--
602.6.2
61
diff --git a/meta/recipes-support/gmp/gmp/0001-Complete-function-prototype-in-acinclude.m4-for-C23-.patch b/meta/recipes-support/gmp/gmp/0001-Complete-function-prototype-in-acinclude.m4-for-C23-.patch
deleted file mode 100644
index ee199a8373..0000000000
--- a/meta/recipes-support/gmp/gmp/0001-Complete-function-prototype-in-acinclude.m4-for-C23-.patch
+++ /dev/null
@@ -1,25 +0,0 @@
1From 51a657c827422d2bc284d752dfbcfd2b1311a5bf Mon Sep 17 00:00:00 2001
2From: Marc Glisse <marc.glisse@inria.fr>
3Date: Wed, 29 Jan 2025 22:38:02 +0100
4Subject: [PATCH] Complete function prototype in acinclude.m4 for C23
5 compatibility
6
7Upstream-Status: Backport [https://gmplib.org/repo/gmp/rev/8e7bb4ae7a18]
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 acinclude.m4 | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/acinclude.m4 b/acinclude.m4
14index 9cf9483..787511f 100644
15--- a/acinclude.m4
16+++ b/acinclude.m4
17@@ -609,7 +609,7 @@ GMP_PROG_CC_WORKS_PART([$1], [long long reliability test 1],
18
19 #if defined (__GNUC__) && ! defined (__cplusplus)
20 typedef unsigned long long t1;typedef t1*t2;
21-void g(){}
22+void g(int,t1 const*,t1,t2,t1 const*,int){}
23 void h(){}
24 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
25 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
diff --git a/meta/recipes-support/gmp/gmp/0001-acinclude.m4-Add-parameter-names-in-prototype-for-g.patch b/meta/recipes-support/gmp/gmp/0001-acinclude.m4-Add-parameter-names-in-prototype-for-g.patch
deleted file mode 100644
index ae2411fd1b..0000000000
--- a/meta/recipes-support/gmp/gmp/0001-acinclude.m4-Add-parameter-names-in-prototype-for-g.patch
+++ /dev/null
@@ -1,50 +0,0 @@
1From 1744e433a16fb39a55c4c771b8ecb02246aa5b99 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 15 Mar 2025 09:40:06 -0700
4Subject: [PATCH] acinclude.m4: Add parameter names in prototype for g().
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9This allows it to compile with older gcc e.g. gcc-10
10which does not have allow parameter name omission, it results
11in
12
13a.c: In function ā€˜g’:
14a.c:3:8: error: parameter name omitted
15 3 | void g(int,t1 const*,t1,t2,t1 const*,int){}
16 | ^~~
17
18this was added to gcc via [1] thats why it is supported in
19newer gcc.
20
21Adding the parameter names make it compatible with
22old and new gcc
23
24[1] https://gcc.gnu.org/pipermail/gcc-cvs/2020-October/336068.html
25
26Upstream-Status: Submitted [https://gmplib.org/list-archives/gmp-devel/2025-March/006294.html]
27Signed-off-by: Khem Raj <raj.khem@gmail.com>
28---
29ChangeLog
30
312025-03-15 Khem Raj <raj.khem@gmail.com>
32
33 * acinclude.m4: Add parameter names to function prototype.
34
35 acinclude.m4 | 2 +-
36 1 file changed, 1 insertion(+), 1 deletion(-)
37
38diff --git a/acinclude.m4 b/acinclude.m4
39index 4fca12de2..b9d1eacfe 100644
40--- a/acinclude.m4
41+++ b/acinclude.m4
42@@ -609,7 +609,7 @@ GMP_PROG_CC_WORKS_PART([$1], [long long reliability test 1],
43
44 #if defined (__GNUC__) && ! defined (__cplusplus)
45 typedef unsigned long long t1;typedef t1*t2;
46-void g(int,t1 const*,t1,t2,t1 const*,int){}
47+void g(int a,t1 const* b,t1 c,t2 d,t1 const* e,int f){}
48 void h(){}
49 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
50 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
diff --git a/meta/recipes-support/gmp/gmp/0001-confiure.ac-Believe-the-cflags-from-environment.patch b/meta/recipes-support/gmp/gmp/0001-confiure.ac-Believe-the-cflags-from-environment.patch
deleted file mode 100644
index b26f4db98e..0000000000
--- a/meta/recipes-support/gmp/gmp/0001-confiure.ac-Believe-the-cflags-from-environment.patch
+++ /dev/null
@@ -1,49 +0,0 @@
1From ae1a4c37417a3bbbf8ea1cab198982b0cad47e29 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 12 Aug 2016 17:08:13 +0000
4Subject: [PATCH] confiure.ac: Believe the cflags from environment
5
6In some toolchains e.g. OpenEmbedded -march options
7are passed on compiler cmdline, it does not use
8the expected target triplets to make these decision
9during configure.
10
11Secondly, dont set armv4 for march when no selection
12is made, since it is passed from cmdline
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15Upstream-Status: Inappropriate [OE-Specific]
16---
17
18 configure.ac | 11 -----------
19 1 file changed, 11 deletions(-)
20
21--- a/configure.ac
22+++ b/configure.ac
23@@ -625,17 +625,6 @@ case $host in
24 any_32_testlist="sizeof-void*-4"
25 any_64_testlist="sizeof-void*-8"
26
27- # This is needed for clang, which is not content with flags like -mfpu=neon
28- # alone.
29- case $host in
30- *-*-*eabi)
31- gcc_cflags_fpmode="-mfloat-abi=softfp" ;;
32- *-*-*eabihf)
33- gcc_cflags_fpmode="-mfloat-abi=hard" ;;
34- *-*-mingw*)
35- limb_64=longlong ;;
36- esac
37-
38 # FIXME: We make mandatory compiler options optional here. We should
39 # either enforce them, or organise to strip paths as the corresponding
40 # options fail.
41@@ -780,8 +769,6 @@ case $host in
42 ;;
43 *)
44 path="arm"
45- gcc_cflags_arch="-march=armv4"
46- GMP_DEFINE_RAW(["define(<NOTHUMB>,1)"])
47 ;;
48 esac
49 ;;
diff --git a/meta/recipes-support/gmp/gmp/use-includedir.patch b/meta/recipes-support/gmp/gmp/use-includedir.patch
deleted file mode 100644
index d27317cdf6..0000000000
--- a/meta/recipes-support/gmp/gmp/use-includedir.patch
+++ /dev/null
@@ -1,18 +0,0 @@
1exec includedir should be pointing to general yocto includdir
2
3Upstream-Status: Pending
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5
6Index: gmp-6.1.2/Makefile.am
7===================================================================
8--- gmp-6.1.2.orig/Makefile.am
9+++ gmp-6.1.2/Makefile.am
10@@ -130,7 +130,7 @@ EXTRA_DIST += gmpxx.h
11 # but anyone knowledgeable enough to be playing with exec_prefix will be able
12 # to address that.
13 #
14-includeexecdir = $(exec_prefix)/include
15+includeexecdir = $(includedir)
16 include_HEADERS = $(GMPXX_HEADERS_OPTION)
17 nodist_includeexec_HEADERS = gmp.h
18 lib_LTLIBRARIES = libgmp.la $(GMPXX_LTLIBRARIES_OPTION)
diff --git a/meta/recipes-support/gmp/gmp_6.3.0.bb b/meta/recipes-support/gmp/gmp_6.3.0.bb
deleted file mode 100644
index 8f18bdca1b..0000000000
--- a/meta/recipes-support/gmp/gmp_6.3.0.bb
+++ /dev/null
@@ -1,53 +0,0 @@
1require gmp.inc
2
3LICENSE = "GPL-2.0-or-later | LGPL-3.0-or-later"
4
5LIC_FILES_CHKSUM = "\
6 file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
7 file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6 \
8 file://COPYINGv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
9 file://COPYINGv3;md5=11cc2d3ee574f9d6b7ee797bdce4d423 \
10"
11
12REVISION = ""
13SRC_URI = "https://gmplib.org/download/${BPN}/${BP}${REVISION}.tar.bz2 \
14 file://use-includedir.patch \
15 file://0001-Append-the-user-provided-flags-to-the-auto-detected-.patch \
16 file://0001-confiure.ac-Believe-the-cflags-from-environment.patch \
17 file://0001-Complete-function-prototype-in-acinclude.m4-for-C23-.patch \
18 file://0001-acinclude.m4-Add-parameter-names-in-prototype-for-g.patch \
19 "
20SRC_URI[sha256sum] = "ac28211a7cfb609bae2e2c8d6058d66c8fe96434f740cf6fe2e47b000d1c20cb"
21
22EXTRA_OECONF += " --enable-cxx=detect"
23EXTRA_OECONF:append:mipsarchr6 = " --disable-assembly"
24
25PACKAGES =+ "libgmpxx"
26FILES:libgmpxx = "${libdir}/libgmpxx${SOLIBS}"
27
28do_install:append() {
29 oe_multilib_header gmp.h
30}
31
32fix_absolute_paths () {
33 sed -i \
34 -e "s|--sysroot=${STAGING_DIR_HOST}||g" \
35 -e "s|${DEBUG_PREFIX_MAP}||g" \
36 ${B}/gmp.h
37}
38
39do_install:prepend:class-target() {
40 fix_absolute_paths
41}
42
43do_install:prepend:class-nativesdk() {
44 fix_absolute_paths
45}
46
47SSTATE_SCAN_FILES += "gmp.h"
48
49# Doesn't compile in MIPS16e mode due to use of hand-written
50# assembly
51MIPS_INSTRUCTION_SET = "mips"
52
53BBCLASSEXTEND = "native nativesdk"