Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
From 7fe1b8a53cc8c865c2a10dcd8f6cb4e51ccc6300 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Mon, 29 Jul 2019 12:19:10 +0200
|
||||
Subject: [PATCH] configure.ac: add an option to disable tests
|
||||
|
||||
Add an option to allow the user to disable tests, this can be useful for
|
||||
example when the toolchain does not provide thread. Indeed, in this
|
||||
case, libgcrypt fails to build t-lock:
|
||||
|
||||
t-lock.c: In function 'run_test':
|
||||
t-lock.c:359:3: error: unknown type name 'pthread_t'
|
||||
pthread_t rthread;
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/50a8ba572e3fafd3c6a39bd54bcfcaf78b5ad325
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Bernd: rebased for version 1.11.0]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
Makefile.am | 7 ++++++-
|
||||
configure.ac | 10 ++++++++++
|
||||
2 files changed, 16 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 7fa4fa4d..f0bd90e4 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -40,9 +40,14 @@ else
|
||||
doc =
|
||||
endif
|
||||
|
||||
+if BUILD_TESTS
|
||||
+tests = tests
|
||||
+else
|
||||
+tests =
|
||||
+endif
|
||||
|
||||
DIST_SUBDIRS = m4 compat mpi cipher random src doc tests
|
||||
-SUBDIRS = compat mpi cipher random src $(doc) tests
|
||||
+SUBDIRS = compat mpi cipher random src $(doc) $(tests)
|
||||
|
||||
EXTRA_DIST = autogen.sh autogen.rc README.GIT LICENSES \
|
||||
ChangeLog-2011 build-aux/ChangeLog-2011 doc/ChangeLog-2011 \
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index e8c8cd39..1a6b61e5 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -3777,6 +3777,16 @@ AC_ARG_ENABLE([doc], AC_HELP_STRING([--disable-doc],
|
||||
AM_CONDITIONAL([BUILD_DOC], [test "x$build_doc" != xno])
|
||||
|
||||
|
||||
+#
|
||||
+# Option to disable building of tests
|
||||
+#
|
||||
+build_tests=yes
|
||||
+AC_ARG_ENABLE([tests], AC_HELP_STRING([--disable-tests],
|
||||
+ [do not build tests]),
|
||||
+ build_tests=$enableval, build_tests=yes)
|
||||
+AM_CONDITIONAL([BUILD_TESTS], [test "x$build_tests" != xno])
|
||||
+
|
||||
+
|
||||
#
|
||||
# Provide information about the build.
|
||||
#
|
||||
--
|
||||
2.20.1
|
||||
|
||||
8
package/libgcrypt/Config.in
Normal file
8
package/libgcrypt/Config.in
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_LIBGCRYPT
|
||||
bool "libgcrypt"
|
||||
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgpg-error
|
||||
select BR2_PACKAGE_LIBGPG_ERROR
|
||||
help
|
||||
LibGCrypt is GNU's basic cryptographic library.
|
||||
|
||||
http://www.gnu.org/software/libgcrypt/
|
||||
5
package/libgcrypt/libgcrypt.hash
Normal file
5
package/libgcrypt/libgcrypt.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# From https://www.gnupg.org/download/integrity_check.html
|
||||
sha1 7b8ff21966a0b6e7a735466b9b9b55d9dac9fa87 libgcrypt-1.12.2.tar.bz2
|
||||
sha256 7ce33c2492221a0436f96a8500215e9f3e3dcb5fd26a757cd415e7a843babd5e libgcrypt-1.12.2.tar.bz2
|
||||
# Locally calculated
|
||||
sha256 20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95 COPYING.LIB
|
||||
41
package/libgcrypt/libgcrypt.mk
Normal file
41
package/libgcrypt/libgcrypt.mk
Normal file
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# libgcrypt
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBGCRYPT_VERSION = 1.12.2
|
||||
LIBGCRYPT_SOURCE = libgcrypt-$(LIBGCRYPT_VERSION).tar.bz2
|
||||
LIBGCRYPT_LICENSE = LGPL-2.1+
|
||||
LIBGCRYPT_LICENSE_FILES = COPYING.LIB
|
||||
LIBGCRYPT_SITE = https://gnupg.org/ftp/gcrypt/libgcrypt
|
||||
LIBGCRYPT_INSTALL_STAGING = YES
|
||||
LIBGCRYPT_DEPENDENCIES = libgpg-error
|
||||
LIBGCRYPT_CONFIG_SCRIPTS = libgcrypt-config
|
||||
LIBGCRYPT_CPE_ID_VENDOR = gnupg
|
||||
|
||||
# Patching configure.ac and Makefile.am in 0001
|
||||
LIBGCRYPT_AUTORECONF = YES
|
||||
LIBGCRYPT_CONF_ENV += GPGRT_CONFIG=$(STAGING_DIR)/usr/bin/gpgrt-config
|
||||
LIBGCRYPT_CONF_OPTS = \
|
||||
--disable-tests \
|
||||
$(if $(BR2_OPTIMIZE_0),--disable-ppc-crypto-support,) \
|
||||
--with-gpg-error-prefix=$(STAGING_DIR)/usr
|
||||
|
||||
# disable asm for broken archs
|
||||
ifeq ($(BR2_i386)$(BR2_m68k_cf),y)
|
||||
LIBGCRYPT_CONF_OPTS += --disable-asm
|
||||
endif
|
||||
|
||||
# Code doesn't build in thumb mode
|
||||
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
||||
LIBGCRYPT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
|
||||
endif
|
||||
|
||||
HOST_LIBGCRYPT_DEPENDENCIES = host-libgpg-error
|
||||
HOST_LIBGCRYPT_CONF_OPTS = \
|
||||
--disable-tests \
|
||||
--with-gpg-error-prefix=$(HOST_DIR)
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user