Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
From b70be8c65365a8fc564226360d45adbbb29fc0af Mon Sep 17 00:00:00 2001
|
||||
From: Peter Seiderer <ps.report@gmx.net>
|
||||
Date: Tue, 24 Oct 2017 16:58:32 +0200
|
||||
Subject: [PATCH] Reproducible build: do not leak compiler path
|
||||
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
|
||||
[Rebased on openssl-1.1.1.a]
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
crypto/build.info | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/crypto/build.info b/crypto/build.info
|
||||
index 2c619c6..49ca6ab 100644
|
||||
--- a/crypto/build.info
|
||||
+++ b/crypto/build.info
|
||||
@@ -115,7 +115,7 @@ EXTRA= ../ms/uplink-x86.pl ../ms/uplink.c ../ms/applink.c \
|
||||
|
||||
DEPEND[info.o]=buildinf.h
|
||||
DEPEND[cversion.o]=buildinf.h
|
||||
-GENERATE[buildinf.h]=../util/mkbuildinf.pl "$(CC) $(LIB_CFLAGS) $(CPPFLAGS_Q)" "$(PLATFORM)"
|
||||
+GENERATE[buildinf.h]=../util/mkbuildinf.pl "$$(basename $(CC)) $(LIB_CFLAGS) $(CPPFLAGS_Q)" "$(PLATFORM)"
|
||||
|
||||
GENERATE[uplink-x86.S]=../ms/uplink-x86.pl
|
||||
GENERATE[uplink-x86_64.s]=../ms/uplink-x86_64.pl
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
From b57cc2e4ee21babacbffc243626de72c248068ea Mon Sep 17 00:00:00 2001
|
||||
From: Andy Polyakov <appro@openssl.org>
|
||||
Date: Sun, 5 May 2019 18:30:55 +0200
|
||||
Subject: [PATCH] Configure: use ELFv2 ABI on some ppc64 big endian systems
|
||||
|
||||
If _CALL_ELF is defined to be 2, it's an ELFv2 system.
|
||||
Conditionally switch to the v2 perlasm scheme.
|
||||
|
||||
Reviewed-by: Paul Dale <paul.dale@oracle.com>
|
||||
Reviewed-by: Richard Levitte <levitte@openssl.org>
|
||||
(Merged from https://github.com/openssl/openssl/pull/8883)
|
||||
[vfazio: fixup for 1.1.1d]
|
||||
Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
|
||||
[rebased on openssl-1.1.1i]
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
---
|
||||
Configure | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/Configure b/Configure
|
||||
index 15054f9..ac3206e 100755
|
||||
--- a/Configure
|
||||
+++ b/Configure
|
||||
@@ -1686,6 +1686,10 @@ unless ($disabled{asm}) {
|
||||
}
|
||||
}
|
||||
|
||||
+if ($target eq "linux-ppc64" && !$disabled{asm}) {
|
||||
+ $target{perlasm_scheme} = "linux64v2" if ($predefined_C{_CALL_ELF} == 2);
|
||||
+}
|
||||
+
|
||||
# Check for makedepend capabilities.
|
||||
if (!$disabled{makedepend}) {
|
||||
# If the attribute makedep_scheme is defined, then we assume that the
|
||||
--
|
||||
2.25.0
|
||||
|
||||
45
package/libopenssl/0003-Revert-Fix-static-builds.patch
Normal file
45
package/libopenssl/0003-Revert-Fix-static-builds.patch
Normal file
@@ -0,0 +1,45 @@
|
||||
From a048522f64dbbe90cf77aea0c3f47cccdad50742 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Fri, 21 Jul 2023 19:30:40 +0200
|
||||
Subject: [PATCH] Revert "Fix -static builds"
|
||||
|
||||
This reverts commit cfd7225fbb9507b2e443a494459bdaab5236d29d.
|
||||
|
||||
Upstream: https://github.com/openssl/openssl/issues/14574#issuecomment-817209126
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
[Dario: make the patch to be applied with fuzz factor 0]
|
||||
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
|
||||
---
|
||||
Configure | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/Configure b/Configure
|
||||
index ac3206e..764ef89 100755
|
||||
--- a/Configure
|
||||
+++ b/Configure
|
||||
@@ -1510,10 +1510,6 @@ if ($config{prefix} && !$config{CROSS_COMPILE}) {
|
||||
unless file_name_is_absolute($config{prefix});
|
||||
}
|
||||
|
||||
-if (grep { $_ =~ /(?:^|\s)-static(?:\s|$)/ } @{$config{LDFLAGS}}) {
|
||||
- disable('static', 'pic', 'threads');
|
||||
-}
|
||||
-
|
||||
# Allow overriding the build file name
|
||||
$config{build_file} = env('BUILDFILE') || $target{build_file} || "Makefile";
|
||||
|
||||
@@ -1808,6 +1804,10 @@ if ($strict_warnings)
|
||||
}
|
||||
}
|
||||
|
||||
+if (grep { $_ =~ /(?:^|\s)-static(?:\s|$)/ } @{$config{LDFLAGS}}) {
|
||||
+ disable('static', 'pic', 'threads');
|
||||
+}
|
||||
+
|
||||
$config{CFLAGS} = [ map { $_ eq '--ossl-strict-warnings'
|
||||
? @strict_warnings_collection
|
||||
: ( $_ ) }
|
||||
--
|
||||
2.43.0
|
||||
|
||||
232
package/libopenssl/Config.in
Normal file
232
package/libopenssl/Config.in
Normal file
@@ -0,0 +1,232 @@
|
||||
if BR2_PACKAGE_LIBOPENSSL
|
||||
|
||||
# 4xx PowerPC cores seem to have trouble with openssl's ASM
|
||||
# optimizations
|
||||
config BR2_PACKAGE_LIBOPENSSL_TARGET_ARCH_LINUX_PPC
|
||||
bool
|
||||
default y if BR2_powerpc
|
||||
depends on !BR2_powerpc_401
|
||||
depends on !BR2_powerpc_403
|
||||
depends on !BR2_powerpc_405
|
||||
depends on !BR2_powerpc_405fp
|
||||
depends on !BR2_powerpc_440
|
||||
depends on !BR2_powerpc_440fp
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_TARGET_ARCH
|
||||
string
|
||||
# Doesn't work for thumb-only (Cortex-M?)
|
||||
default "linux-armv4" if BR2_ARM_CPU_HAS_ARM
|
||||
default "linux-aarch64" if BR2_aarch64
|
||||
default "linux-ppc" if BR2_PACKAGE_LIBOPENSSL_TARGET_ARCH_LINUX_PPC
|
||||
default "linux-ppc64" if BR2_powerpc64
|
||||
default "linux-ppc64le" if BR2_powerpc64le
|
||||
default "linux-x86" if BR2_i386 && !BR2_TOOLCHAIN_HAS_LIBATOMIC
|
||||
default "linux-x86-latomic" if BR2_i386 && BR2_TOOLCHAIN_HAS_LIBATOMIC
|
||||
default "linux-x86_64" if BR2_x86_64
|
||||
default "linux64-riscv64" if BR2_riscv && BR2_ARCH_IS_64
|
||||
default "linux32-riscv32" if BR2_riscv && !BR2_ARCH_IS_64
|
||||
default "linux64-s390x" if BR2_s390x
|
||||
# no-asm is needed with generic architectures such as
|
||||
# linux-generic{32,64}, see
|
||||
# https://github.com/openssl/openssl/issues/9839
|
||||
default "linux-generic64 no-asm" if BR2_ARCH_IS_64 && !BR2_MIPS_NABI32
|
||||
default "linux-latomic no-asm" if BR2_TOOLCHAIN_HAS_LIBATOMIC
|
||||
default "linux-generic32 no-asm"
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_BIN
|
||||
bool "openssl binary"
|
||||
help
|
||||
Install the openssl binary and the associated helper scripts
|
||||
to the target file system. This is a command line tool for
|
||||
doing various cryptographic stuff.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENGINES
|
||||
bool "openssl additional engines"
|
||||
help
|
||||
Install additional encryption engine libraries.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_CHACHA
|
||||
bool "enable CHACHA"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_RC2
|
||||
bool "enable RC2"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_RC4
|
||||
bool "enable RC4"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_MD2
|
||||
bool "enable MD2"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_MD4
|
||||
bool "enable MD4"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_MDC2
|
||||
bool "enable MDC2"
|
||||
default y
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_BLAKE2
|
||||
bool "enable BLAKE2"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_IDEA
|
||||
bool "enable IDEA"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_SEED
|
||||
bool "enable SEED"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_DES
|
||||
bool "enable DES"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160
|
||||
bool "enable RMD160"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_WHIRLPOOL
|
||||
bool "enable WHIRLPOOL"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_BLOWFISH
|
||||
bool "enable BLOWFISH"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_SSL
|
||||
bool "enable SSL"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_SSL3
|
||||
bool "enable SSL3"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_WEAK_SSL
|
||||
bool "enable WEAK_SSL"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_PSK
|
||||
bool "enable mode PSK"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_CAST
|
||||
bool "enable mode CAST"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_UNSECURE
|
||||
bool "enable unit test, debug, backtrace"
|
||||
default y
|
||||
help
|
||||
Enable unit-test crypto-mdebug-backtrace
|
||||
crypto-mdebug autoerrinit mode.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_DYNAMIC_ENGINE
|
||||
bool "enable dynamic engine"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_COMP
|
||||
bool "enable compression"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_ARGON2
|
||||
bool "enable ARGON2"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_CACHED_FETCH
|
||||
bool "enable cached fetch"
|
||||
default y
|
||||
help
|
||||
Cache algorithms when they are fetched from a provider.
|
||||
Normally, a provider indicates if the algorithms it supplies
|
||||
can be cached or not. Using this option will reduce run-time
|
||||
memory usage but it also introduces a significant performance
|
||||
penalty. This option is primarily designed to help with
|
||||
detecting incorrect reference counting.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_CMP
|
||||
bool "enable CMP"
|
||||
default y
|
||||
help
|
||||
Build support for Certificate Management Protocol (CMP) and
|
||||
Certificate Request Message Format (CRMF).
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_THREAD_POOL
|
||||
bool "enable thread pool"
|
||||
default y
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
Build with thread pool functionality. If enabled, OpenSSL
|
||||
algorithms may use the thread pool to perform parallel
|
||||
computation. This option in itself does not enable OpenSSL
|
||||
to spawn new threads. Currently the only supported thread
|
||||
pool mechanism is the default thread pool.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_ECX
|
||||
bool "enable ECX"
|
||||
default y
|
||||
help
|
||||
Build with ECX support. Disabling this option can be used
|
||||
to disable support for X25519, X448, and EdDSA.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_LOADER_ENGINE
|
||||
bool "enable 'loader_attic' engine"
|
||||
default y
|
||||
depends on BR2_PACKAGE_LIBOPENSSL_DYNAMIC_ENGINE
|
||||
help
|
||||
Build with 'loader_attic' engine support, which is meant
|
||||
just for internal OpenSSL testing purposes and supports
|
||||
loading keys, parameters, certificates, and CRLs from files.
|
||||
When this engine is used, files with such credentials are
|
||||
read via this engine.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_PADLOCK_ENGINE
|
||||
bool "enable padlock engine"
|
||||
default y
|
||||
help
|
||||
Build the padlock engine.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_MODULE
|
||||
bool "enable modules"
|
||||
default y
|
||||
help
|
||||
Build modules.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_QUIC
|
||||
bool "enable QUIC"
|
||||
default y
|
||||
help
|
||||
Build with QUIC support.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_SECURE_MEMORY
|
||||
bool "enable secure memory"
|
||||
default y
|
||||
help
|
||||
Build with secure memory support.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_SIV
|
||||
bool "enable SIV"
|
||||
default y
|
||||
help
|
||||
Build with RFC5297 AES-SIV support.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_SM2_PRECOMP_TABLE
|
||||
bool "enable SM2 precomputed table"
|
||||
default y
|
||||
depends on BR2_aarch64
|
||||
help
|
||||
Enable using the SM2 precomputed table. Disabling this option
|
||||
makes the library smaller.
|
||||
|
||||
config BR2_PACKAGE_LIBOPENSSL_ENABLE_SSL_TRACE
|
||||
bool "enable SSL trace"
|
||||
default y
|
||||
help
|
||||
Build with SSL Trace support. Disabling this option may
|
||||
provide a small reduction in libssl binary size.
|
||||
|
||||
endif # BR2_PACKAGE_LIBOPENSSL
|
||||
5
package/libopenssl/libopenssl.hash
Normal file
5
package/libopenssl/libopenssl.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# From https://github.com/openssl/openssl/releases/download/openssl-3.6.4/openssl-3.6.4.tar.gz.sha256
|
||||
sha256 9bffaa1ad1e07b354c21bd3324ec02fa15579f45a7d0494b3e74bc449b7333ef openssl-3.6.4.tar.gz
|
||||
|
||||
# License files
|
||||
sha256 7d5450cb2d142651b8afa315b5f238efc805dad827d91ba367d8516bc9d49e7a LICENSE.txt
|
||||
186
package/libopenssl/libopenssl.mk
Normal file
186
package/libopenssl/libopenssl.mk
Normal file
@@ -0,0 +1,186 @@
|
||||
################################################################################
|
||||
#
|
||||
# libopenssl
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBOPENSSL_VERSION = 3.6.4
|
||||
LIBOPENSSL_SITE = https://github.com/openssl/openssl/releases/download/openssl-$(LIBOPENSSL_VERSION)
|
||||
LIBOPENSSL_SOURCE = openssl-$(LIBOPENSSL_VERSION).tar.gz
|
||||
LIBOPENSSL_LICENSE = Apache-2.0
|
||||
LIBOPENSSL_LICENSE_FILES = LICENSE.txt
|
||||
LIBOPENSSL_INSTALL_STAGING = YES
|
||||
LIBOPENSSL_DEPENDENCIES = zlib
|
||||
HOST_LIBOPENSSL_DEPENDENCIES = host-zlib
|
||||
LIBOPENSSL_TARGET_ARCH = $(call qstrip,$(BR2_PACKAGE_LIBOPENSSL_TARGET_ARCH))
|
||||
LIBOPENSSL_CFLAGS = $(TARGET_CFLAGS)
|
||||
LIBOPENSSL_PROVIDES = openssl
|
||||
LIBOPENSSL_CPE_ID_VENDOR = $(LIBOPENSSL_PROVIDES)
|
||||
LIBOPENSSL_CPE_ID_PRODUCT = $(LIBOPENSSL_PROVIDES)
|
||||
|
||||
ifeq ($(BR2_m68k_cf),y)
|
||||
# relocation truncated to fit: R_68K_GOT16O
|
||||
LIBOPENSSL_CFLAGS += -mxgot
|
||||
# resolves an assembler "out of range error" with blake2 and sha512 algorithms
|
||||
LIBOPENSSL_CFLAGS += -DOPENSSL_SMALL_FOOTPRINT
|
||||
# disable atomic operations
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_ATOMIC),)
|
||||
LIBOPENSSL_CFLAGS += -DBROKEN_CLANG_ATOMICS
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_USE_MMU),)
|
||||
LIBOPENSSL_CFLAGS += -DHAVE_FORK=0 -DHAVE_MADVISE=0
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_CRYPTODEV_LINUX),y)
|
||||
LIBOPENSSL_DEPENDENCIES += cryptodev-linux
|
||||
endif
|
||||
|
||||
# fixes the following build failures:
|
||||
#
|
||||
# - musl
|
||||
# ./libcrypto.so: undefined reference to `getcontext'
|
||||
# ./libcrypto.so: undefined reference to `setcontext'
|
||||
# ./libcrypto.so: undefined reference to `makecontext'
|
||||
#
|
||||
# - uclibc:
|
||||
# crypto/async/arch/../arch/async_posix.h:32:5: error: unknown type name 'ucontext_t'
|
||||
#
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
||||
LIBOPENSSL_CFLAGS += -DOPENSSL_NO_ASYNC
|
||||
endif
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_UCONTEXT),)
|
||||
LIBOPENSSL_CFLAGS += -DOPENSSL_NO_ASYNC
|
||||
endif
|
||||
|
||||
define HOST_LIBOPENSSL_CONFIGURE_CMDS
|
||||
cd $(@D); \
|
||||
$(HOST_CONFIGURE_OPTS) \
|
||||
./config \
|
||||
--prefix=$(HOST_DIR) \
|
||||
--openssldir=$(HOST_DIR)/etc/ssl \
|
||||
no-docs \
|
||||
no-tests \
|
||||
no-fuzz-libfuzzer \
|
||||
no-fuzz-afl \
|
||||
shared \
|
||||
zlib-dynamic
|
||||
endef
|
||||
|
||||
define LIBOPENSSL_CONFIGURE_CMDS
|
||||
cd $(@D); \
|
||||
$(TARGET_CONFIGURE_ARGS) \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(LIBOPENSSL_CFLAGS)" \
|
||||
./Configure \
|
||||
$(LIBOPENSSL_TARGET_ARCH) \
|
||||
--prefix=/usr \
|
||||
--openssldir=/etc/ssl \
|
||||
$(if $(BR2_TOOLCHAIN_HAS_THREADS),threads,no-threads) \
|
||||
$(if $(BR2_STATIC_LIBS),no-shared,shared) \
|
||||
$(if $(BR2_PACKAGE_CRYPTODEV_LINUX),enable-devcryptoeng) \
|
||||
no-rc5 \
|
||||
enable-camellia \
|
||||
no-docs \
|
||||
no-tests \
|
||||
no-fuzz-libfuzzer \
|
||||
no-fuzz-afl \
|
||||
no-afalgeng \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_BIN),,no-apps) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENGINES),,no-engine) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_CHACHA),,no-chacha) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_RC2),,no-rc2) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_RC4),,no-rc4) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_MD2),,no-md2) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_MD4),,no-md4) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_MDC2),,no-mdc2) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_BLAKE2),,no-blake2) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_IDEA),,no-idea) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_SEED),,no-seed) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_DES),,no-des) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160),,no-rmd160) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_WHIRLPOOL),,no-whirlpool) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_BLOWFISH),,no-bf) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_SSL),,no-ssl) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_SSL3),,no-ssl3) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_WEAK_SSL),,no-weak-ssl-ciphers) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_PSK),,no-psk) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_CAST),,no-cast) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_UNSECURE),,no-unit-test no-crypto-mdebug no-autoerrinit) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_DYNAMIC_ENGINE),,no-dynamic-engine ) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_COMP),,no-comp) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_ARGON2),,no-argon2) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_CACHED_FETCH),,no-cached-fetch) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_CMP),,no-cmp) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_THREAD_POOL),,no-thread-pool no-default-thread-pool) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_ECX),,no-ecx) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_LOADER_ENGINE),,no-loadereng) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_PADLOCK_ENGINE),,no-padlockeng) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_MODULE),,no-module) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_QUIC),,no-quic) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_SECURE_MEMORY),,no-secure-memory) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_SIV),,no-siv) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_SM2_PRECOMP_TABLE),,no-sm2-precomp) \
|
||||
$(if $(BR2_PACKAGE_LIBOPENSSL_ENABLE_SSL_TRACE),,no-ssl-trace) \
|
||||
$(if $(BR2_STATIC_LIBS),zlib,zlib-dynamic) \
|
||||
$(if $(BR2_STATIC_LIBS),no-dso)
|
||||
endef
|
||||
|
||||
# libdl is not available in a static build, and this is not implied by no-dso
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
define LIBOPENSSL_FIXUP_STATIC_MAKEFILE
|
||||
$(SED) 's#-ldl##g' $(@D)/Makefile
|
||||
endef
|
||||
LIBOPENSSL_POST_CONFIGURE_HOOKS += LIBOPENSSL_FIXUP_STATIC_MAKEFILE
|
||||
endif
|
||||
|
||||
define HOST_LIBOPENSSL_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define LIBOPENSSL_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define LIBOPENSSL_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
||||
endef
|
||||
|
||||
define HOST_LIBOPENSSL_INSTALL_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install
|
||||
endef
|
||||
|
||||
define LIBOPENSSL_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||
$(RM) -rf $(TARGET_DIR)/usr/lib/ssl
|
||||
$(RM) -f $(TARGET_DIR)/usr/bin/c_rehash
|
||||
endef
|
||||
|
||||
# libdl has no business in a static build
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
define LIBOPENSSL_FIXUP_STATIC_PKGCONFIG
|
||||
$(SED) 's#-ldl##' $(STAGING_DIR)/usr/lib/pkgconfig/libcrypto.pc
|
||||
$(SED) 's#-ldl##' $(STAGING_DIR)/usr/lib/pkgconfig/libssl.pc
|
||||
$(SED) 's#-ldl##' $(STAGING_DIR)/usr/lib/pkgconfig/openssl.pc
|
||||
endef
|
||||
LIBOPENSSL_POST_INSTALL_STAGING_HOOKS += LIBOPENSSL_FIXUP_STATIC_PKGCONFIG
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PERL),)
|
||||
define LIBOPENSSL_REMOVE_PERL_SCRIPTS
|
||||
$(RM) -f $(TARGET_DIR)/etc/ssl/misc/{CA.pl,tsget}
|
||||
endef
|
||||
LIBOPENSSL_POST_INSTALL_TARGET_HOOKS += LIBOPENSSL_REMOVE_PERL_SCRIPTS
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBOPENSSL_ENGINES),)
|
||||
define LIBOPENSSL_REMOVE_LIBOPENSSL_ENGINES
|
||||
$(RM) -rf $(TARGET_DIR)/usr/lib/engines-3
|
||||
endef
|
||||
LIBOPENSSL_POST_INSTALL_TARGET_HOOKS += LIBOPENSSL_REMOVE_LIBOPENSSL_ENGINES
|
||||
endif
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user