generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
31
package/wolfssl/Config.in
Normal file
31
package/wolfssl/Config.in
Normal file
@ -0,0 +1,31 @@
|
||||
config BR2_PACKAGE_WOLFSSL
|
||||
bool "wolfssl"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
The wolfSSL embedded SSL library (formerly CyaSSL) is a
|
||||
lightweight, portable, C-language-based SSL/TLS library
|
||||
targeted at IoT, embedded, and RTOS environments primarily
|
||||
because of its size, speed, and feature set.
|
||||
|
||||
https://www.wolfssl.com/
|
||||
|
||||
if BR2_PACKAGE_WOLFSSL
|
||||
|
||||
config BR2_PACKAGE_WOLFSSL_ALL
|
||||
bool "enable all features, except SSLv3"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
Enable all wolfSSL features, except SSL version 3.0 support.
|
||||
|
||||
comment "all features, except SSLv3 needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_WOLFSSL_SSLV3
|
||||
bool "enable SSLv3"
|
||||
help
|
||||
Enable SSL version 3.0 support.
|
||||
|
||||
endif
|
||||
|
||||
comment "wolfssl needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
6
package/wolfssl/wolfssl.hash
Normal file
6
package/wolfssl/wolfssl.hash
Normal file
@ -0,0 +1,6 @@
|
||||
# Locally computed:
|
||||
sha256 c34b74b5f689fac7becb05583b044e84d3b10d39f38709f0095dd5d423ded67f wolfssl-5.5.0.tar.gz
|
||||
|
||||
# Hash for license files:
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
sha256 b23c1da1f85d699d3288d73c952b4cd02760d23dc1ddc1b221cbb8be82387189 LICENSING
|
||||
48
package/wolfssl/wolfssl.mk
Normal file
48
package/wolfssl/wolfssl.mk
Normal file
@ -0,0 +1,48 @@
|
||||
################################################################################
|
||||
#
|
||||
# wolfssl
|
||||
#
|
||||
################################################################################
|
||||
|
||||
WOLFSSL_VERSION = 5.5.0
|
||||
WOLFSSL_SITE = $(call github,wolfSSL,wolfssl,v$(WOLFSSL_VERSION)-stable)
|
||||
WOLFSSL_INSTALL_STAGING = YES
|
||||
|
||||
WOLFSSL_LICENSE = GPL-2.0+
|
||||
WOLFSSL_LICENSE_FILES = COPYING LICENSING
|
||||
WOLFSSL_CPE_ID_VENDOR = wolfssl
|
||||
WOLFSSL_CONFIG_SCRIPTS = wolfssl-config
|
||||
WOLFSSL_DEPENDENCIES = host-pkgconf
|
||||
|
||||
# wolfssl's source code is released without a configure
|
||||
# script, so we need autoreconf
|
||||
WOLFSSL_AUTORECONF = YES
|
||||
|
||||
WOLFSSL_CONF_OPTS = --disable-examples --disable-crypttests
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WOLFSSL_ALL),y)
|
||||
WOLFSSL_CONF_OPTS += --enable-all
|
||||
else
|
||||
WOLFSSL_CONF_OPTS += --disable-all
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WOLFSSL_SSLV3),y)
|
||||
WOLFSSL_CONF_OPTS += --enable-sslv3
|
||||
else
|
||||
WOLFSSL_CONF_OPTS += --disable-sslv3
|
||||
endif
|
||||
|
||||
# enable ARMv8 hardware acceleration
|
||||
ifeq ($(BR2_ARM_CPU_ARMV8A),y)
|
||||
WOLFSSL_CONF_OPTS += --enable-armasm
|
||||
# the flag -mstrict-align is needed to prevent build errors caused by
|
||||
# some inline assembly in parts of the AES structure using the "m"
|
||||
# constraint
|
||||
ifeq ($(BR2_aarch64),y)
|
||||
WOLFSSL_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -mstrict-align"
|
||||
endif
|
||||
else
|
||||
WOLFSSL_CONF_OPTS += --disable-armasm
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user