Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
From 9cd0c36d0110191a5f42e268d7bd21a95a2aa883 Mon Sep 17 00:00:00 2001
|
||||
From: Marc Glisse <marc.glisse@inria.fr>
|
||||
Date: Wed, 29 Jan 2025 22:38:02 +0100
|
||||
Subject: [PATCH] Complete function prototype in acinclude.m4 for C23
|
||||
compatibility
|
||||
|
||||
Add parameter names to function prototype
|
||||
|
||||
Upstream: https://gmplib.org/repo/gmp/rev/d66d66d82dbb
|
||||
Upstream: https://gmplib.org/repo/gmp/rev/8e7bb4ae7a18
|
||||
Signed-off-by: Marc Glisse <marc.glisse@inria.fr>
|
||||
[Julien: git patch adapted from two upstream mercurial changesets]
|
||||
Signed-off-by: Julien Olivain <ju.o@free.fr>
|
||||
---
|
||||
ChangeLog | 9 +++++++++
|
||||
acinclude.m4 | 2 +-
|
||||
2 files changed, 10 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ChangeLog b/ChangeLog
|
||||
index 2902cd2..d808a8b 100644
|
||||
--- a/ChangeLog
|
||||
+++ b/ChangeLog
|
||||
@@ -1,3 +1,12 @@
|
||||
+2025-03-15 Khem Raj <raj.khem@gmail.com>
|
||||
+
|
||||
+ * acinclude.m4: Add parameter names to function prototype.
|
||||
+
|
||||
+2025-01-29 Rudi Heitbaum <rudi@heitbaum.com>
|
||||
+ Marc Glisse <marc.glisse@inria.fr>
|
||||
+
|
||||
+ * acinclude.m4: Complete function prototype.
|
||||
+
|
||||
2023-07-29 Torbjörn Granlund <tg@gmplib.org>
|
||||
|
||||
* Version 6.3.0 released.
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index 9cf9483..b79a431 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -609,7 +609,7 @@ GMP_PROG_CC_WORKS_PART([$1], [long long reliability test 1],
|
||||
|
||||
#if defined (__GNUC__) && ! defined (__cplusplus)
|
||||
typedef unsigned long long t1;typedef t1*t2;
|
||||
-void g(){}
|
||||
+void g(int a,t1 const*b,t1 c,t2 d,t1 const*e,int f){}
|
||||
void h(){}
|
||||
static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
|
||||
{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;}
|
||||
--
|
||||
2.49.0
|
||||
|
||||
6
package/gmp/Config.in
Normal file
6
package/gmp/Config.in
Normal file
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_GMP
|
||||
bool "gmp"
|
||||
help
|
||||
GNU Multiple Precision Arithmetic Library.
|
||||
|
||||
http://gmplib.org/
|
||||
6
package/gmp/gmp.hash
Normal file
6
package/gmp/gmp.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898 gmp-6.3.0.tar.xz
|
||||
|
||||
# Locally calculated
|
||||
sha256 a853c2ffec17057872340eee242ae4d96cbf2b520ae27d903e1b2fef1a5f9d1c COPYING.LESSERv3
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYINGv2
|
||||
41
package/gmp/gmp.mk
Normal file
41
package/gmp/gmp.mk
Normal file
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# gmp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GMP_VERSION = 6.3.0
|
||||
GMP_SITE = $(BR2_GNU_MIRROR)/gmp
|
||||
GMP_SOURCE = gmp-$(GMP_VERSION).tar.xz
|
||||
GMP_INSTALL_STAGING = YES
|
||||
GMP_LICENSE = LGPL-3.0+ or GPL-2.0+
|
||||
GMP_LICENSE_FILES = COPYING.LESSERv3 COPYINGv2
|
||||
GMP_CPE_ID_VENDOR = gmplib
|
||||
GMP_DEPENDENCIES = host-m4
|
||||
HOST_GMP_DEPENDENCIES = host-m4
|
||||
|
||||
# 0001-Complete-function-prototype-in-acinclude.m4-for-C23-.patch
|
||||
GMP_AUTORECONF = YES
|
||||
HOST_GMP_AUTORECONF = YES
|
||||
|
||||
GMP_CONF_ENV += CC_FOR_BUILD="$(HOSTCC) -std=c99"
|
||||
|
||||
# GMP doesn't support assembly for coldfire or mips r6 ISA yet
|
||||
# Disable for ARM v7m since it has different asm constraints
|
||||
ifeq ($(BR2_m68k_cf)$(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6)$(BR2_ARM_CPU_ARMV7M),y)
|
||||
GMP_CONF_OPTS += --disable-assembly
|
||||
endif
|
||||
|
||||
# GMP needs M extension for riscv assembly
|
||||
ifeq ($(BR2_riscv):$(BR2_RISCV_ISA_RVM),y:)
|
||||
GMP_CONF_OPTS += --disable-assembly
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||
GMP_CONF_OPTS += --enable-cxx
|
||||
else
|
||||
GMP_CONF_OPTS += --disable-cxx
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user