@@ -998,13 +998,11 @@ menu "Crypto"
source "package/libsodium/Config.in"
source "package/libssh/Config.in"
source "package/libssh2/Config.in"
+ source "package/libssl/Config.in"
source "package/libtomcrypt/Config.in"
source "package/libuecc/Config.in"
source "package/mbedtls/Config.in"
source "package/nettle/Config.in"
- # libressl is a openssl replacement
- source "package/libressl/Config.in"
- source "package/openssl/Config.in"
source "package/rhash/Config.in"
source "package/tinydtls/Config.in"
source "package/trousers/Config.in"
new file mode 100644
@@ -0,0 +1,26 @@
+config BR2_PACKAGE_LIBSSL
+ bool "libssl support"
+ help
+ Select the desired ssl library provider.
+
+if BR2_PACKAGE_LIBSSL
+
+choice
+ prompt "ssl variant"
+ default BR2_PACKAGE_OPENSSL
+ help
+ Select OpenSSL or LibreSSL.
+
+ source "package/openssl/Config.in"
+
+endchoice
+
+config BR2_PACKAGE_HAS_LIBSSL
+ bool
+
+config BR2_PACKAGE_PROVIDES_LIBSSL
+ string
+ default "openssl" if BR2_PACKAGE_OPENSSL
+ default "libressl" if BR2_PACKAGE_LIBRESSL
+
+endif
new file mode 100644
@@ -0,0 +1,8 @@
+################################################################################
+#
+# libssl
+#
+################################################################################
+
+$(eval $(host-virtual-package))
+$(eval $(virtual-package))
@@ -1,5 +1,6 @@
config BR2_PACKAGE_OPENSSL
bool "openssl"
+ select BR2_PACKAGE_HAS_LIBSSL
select BR2_PACKAGE_ZLIB
help
A collaborative effort to develop a robust, commercial-grade, fully
@@ -13,6 +13,7 @@ OPENSSL_DEPENDENCIES = zlib
HOST_OPENSSL_DEPENDENCIES = host-zlib
OPENSSL_TARGET_ARCH = generic32
OPENSSL_CFLAGS = $(TARGET_CFLAGS)
+OPENSSL_PROVIDES = libssl
OPENSSL_PATCH = \
https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/openssl/files/openssl-1.0.2d-parallel-build.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d \
https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/openssl/files/openssl-1.0.2a-parallel-obj-headers.patch?id=c8abcbe8de5d3b6cdd68c162f398c011ff6e2d9d \
To start the conversion process to a virtual package, libssl is added with only support for OpenSSL. This insures that packages relying on OpenSSL won't break. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> --- package/Config.in | 4 +--- package/libssl/Config.in | 26 ++++++++++++++++++++++++++ package/libssl/libssl.mk | 8 ++++++++ package/openssl/Config.in | 1 + package/openssl/openssl.mk | 1 + 5 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 package/libssl/Config.in create mode 100644 package/libssl/libssl.mk