package/bearssl: new package
PATCH 1/1 package/bearssl: new package
BearSSL is an implementation of the SSL/TLS protocol (RFC 5246) written in C
--- DEVELOPERS | 1 + package/Config.in | 1 + package/bearssl/Config.in | 7 +++++++ package/bearssl/bearssl.hash | 3 +++ package/bearssl/bearssl.mk | 39 ++++++++++++++++++++++++++++++++++++ 5 files changed, 51 insertions(+) create mode 100644 package/bearssl/Config.in create mode 100644 package/bearssl/bearssl.hash create mode 100644 package/bearssl/bearssl.mk
DEVELOPERS +1 -0
@@ -823,6 +823,7 @@ F: package/libmaxminddb/ F: package/openzwave/ N: Fabrice Fontaine <[email protected]> +F: package/bearssl/ F: package/boinc/ F: package/cairo/ F: package/daq3/
package/Config.in +1 -0
@@ -1276,6 +1276,7 @@ menu "Compression and decompression" endmenu menu "Crypto" + source "package/bearssl/Config.in" source "package/beecrypt/Config.in" source "package/botan/Config.in" source "package/ca-certificates/Config.in"
package/bearssl/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_BEARSSL + bool "bearssl" + help + BearSSL is an implementation of the SSL/TLS protocol + (RFC 5246) written in C. + + https://bearssl.org
package/bearssl/bearssl.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed: +sha256 6705bba1714961b41a728dfc5debbe348d2966c117649392f8c8139efc83ff14 bearssl-0.6.tar.gz +sha256 771bf18c8633ea69ec9b07d2e604c4b99b7bef41b0f5ce6385d24df4448f61ca LICENSE.txt
package/bearssl/bearssl.mk new file +39 -0
@@ -0,0 +1,39 @@ +################################################################################ +# +# bearssl +# +################################################################################ + +BEARSSL_VERSION = 0.6 +BEARSSL_SITE = https://bearssl.org +BEARSSL_LICENSE = MIT +BEARSSL_LICENSE_FILES = LICENSE.txt +BEARSSL_INSTALL_STAGING = YES + +BEARSSL_MAKE_OPTS = \ + $(TARGET_CONFIGURE_OPTS) \ + LDDLL=$(TARGET_CC) + +ifeq ($(BR2_SHARED_LIBS),y) +BEARSSL_TARGETS += dll +else ifeq ($(BR2_STATIC_LIBS),y) +BEARSSL_TARGETS += lib +else ifeq ($(BR2_SHARED_STATIC_LIBS),y) +BEARSSL_TARGETS += dll lib +endif + +define BEARSSL_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(BEARSSL_MAKE_OPTS) -C $(@D) \ + $(BEARSSL_TARGETS) +endef + +define BEARSSL_INSTALL_STAGING_CMDS + $(INSTALL) -D -m 0644 $(@D)/inc/*.h $(STAGING_DIR)/usr/include + $(INSTALL) -D -m 0644 $(@D)/build/lib* $(STAGING_DIR)/usr/lib +endef + +define BEARSSL_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0644 $(@D)/build/lib* $(TARGET_DIR)/usr/lib +endef + +$(eval $(generic-package))
Signature · 1 line
2.25.0
PATCH 1/1 package/bearssl: new package
Quoted 6 lines · On Thu, 27 Feb 2020 17:30:42 +0100 Fabrice Fontaine…
BearSSL is an implementation of the SSL/TLS protocol (RFC 5246) written in C
Signed-off-by Fabrice Fontaine <[email protected]>
Quoted 10 lines
--- DEVELOPERS | 1 + package/Config.in | 1 + package/bearssl/Config.in | 7 +++++++ package/bearssl/bearssl.hash | 3 +++ package/bearssl/bearssl.mk | 39 ++++++++++++++++++++++++++++++++++++ 5 files changed, 51 insertions(+) create mode 100644 package/bearssl/Config.in create mode 100644 package/bearssl/bearssl.hash create mode 100644 package/bearssl/bearssl.mk
I did a few tweaks to the .mk file, and applied to next. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/bearssl: new package
Hello Thomas,
Le dim. 8 mars 2020 ? 16:21, Thomas Petazzoni
<[email protected]> a ?crit :
Quoted 21 lines
Quoted 6 lines · On Thu, 27 Feb 2020 17:30:42 +0100 Fabrice Fontaine…
BearSSL is an implementation of the SSL/TLS protocol (RFC 5246) written in C
Signed-off-by Fabrice Fontaine <[email protected]>Quoted 10 lines
--- DEVELOPERS | 1 + package/Config.in | 1 + package/bearssl/Config.in | 7 +++++++ package/bearssl/bearssl.hash | 3 +++ package/bearssl/bearssl.mk | 39 ++++++++++++++++++++++++++++++++++++ 5 files changed, 51 insertions(+) create mode 100644 package/bearssl/Config.in create mode 100644 package/bearssl/bearssl.hash create mode 100644 package/bearssl/bearssl.mk
Quoted 1 line
I did a few tweaks to the .mk file, and applied to next. Thanks!
Thanks for those tweaks however was it intentional to use = instead of += for BEARSSL_TARGETS?
Due to this change, bearssl will only build the dynamic library with BR2_SHARED_STATIC_LIBS.
Quoted 6 lines
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Best Regards,
Fabrice
PATCH 1/1 package/bearssl: new package
Quoted 4 lines · On Sun, 8 Mar 2020 16:33:27 +0100 Fabrice Fontaine…
Thanks for those tweaks however was it intentional to use = instead of += for
BEARSSL_TARGETS?
Due to this change, bearssl will only build the dynamic library withBR2_SHARED_STATIC_LIBS.
Gah, yes, indeed, my bad. I pushed a fix. Thanks for the additional review!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com