1################################################################################ 2# 3# wolfssl 4# 5################################################################################ 6 7WOLFSSL_VERSION = 4.8.1-stable 8WOLFSSL_SITE = $(call github,wolfSSL,wolfssl,v$(WOLFSSL_VERSION)) 9WOLFSSL_INSTALL_STAGING = YES 10 11WOLFSSL_LICENSE = GPL-2.0+ 12WOLFSSL_LICENSE_FILES = COPYING LICENSING 13WOLFSSL_CPE_ID_VENDOR = wolfssl 14 15WOLFSSL_DEPENDENCIES = host-pkgconf 16 17# wolfssl's source code is released without a configure 18# script, so we need autoreconf 19WOLFSSL_AUTORECONF = YES 20 21WOLFSSL_CONF_OPTS = --disable-examples --disable-crypttests 22 23ifeq ($(BR2_PACKAGE_WOLFSSL_ALL),y) 24WOLFSSL_CONF_OPTS += --enable-all 25else 26WOLFSSL_CONF_OPTS += --disable-all 27endif 28 29ifeq ($(BR2_PACKAGE_WOLFSSL_SSLV3),y) 30WOLFSSL_CONF_OPTS += --enable-sslv3 31else 32WOLFSSL_CONF_OPTS += --disable-sslv3 33endif 34 35# enable ARMv8 hardware acceleration 36ifeq ($(BR2_ARM_CPU_ARMV8A),y) 37WOLFSSL_CONF_OPTS += --enable-armasm 38# the flag -mstrict-align is needed to prevent build errors caused by 39# some inline assembly in parts of the AES structure using the "m" 40# constraint 41ifeq ($(BR2_aarch64),y) 42WOLFSSL_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -mstrict-align" 43endif 44else 45WOLFSSL_CONF_OPTS += --disable-armasm 46endif 47 48$(eval $(autotools-package)) 49