|
@@ -67,7 +67,7 @@ $(call Package/libwolfssl/Default)
|
|
ABI_VERSION:=$(PKG_ABI_VERSION)
|
|
ABI_VERSION:=$(PKG_ABI_VERSION)
|
|
VARIANT:=regular
|
|
VARIANT:=regular
|
|
DEFAULT_VARIANT:=1
|
|
DEFAULT_VARIANT:=1
|
|
- CONFLICTS:=libwolfssl-cpu-crypto
|
|
|
|
|
|
+ CONFLICTS:=libwolfsslcpu-crypto
|
|
endef
|
|
endef
|
|
|
|
|
|
define Package/libwolfssl/description
|
|
define Package/libwolfssl/description
|
|
@@ -79,7 +79,7 @@ define Package/libwolfssl/config
|
|
source "$(SOURCE)/Config.in"
|
|
source "$(SOURCE)/Config.in"
|
|
endef
|
|
endef
|
|
|
|
|
|
-define Package/libwolfssl-cpu-crypto
|
|
|
|
|
|
+define Package/libwolfsslcpu-crypto
|
|
$(call Package/libwolfssl/Default)
|
|
$(call Package/libwolfssl/Default)
|
|
TITLE:=wolfSSL library with AES CPU instructions
|
|
TITLE:=wolfSSL library with AES CPU instructions
|
|
PROVIDES:=libwolfssl libcyassl
|
|
PROVIDES:=libwolfssl libcyassl
|
|
@@ -94,20 +94,20 @@ $(call Package/libwolfssl/Default)
|
|
DEPENDS:=libwolfssl
|
|
DEPENDS:=libwolfssl
|
|
endef
|
|
endef
|
|
|
|
|
|
-define Package/libwolfssl-cpu-crypto/description
|
|
|
|
|
|
+define Package/libwolfsslcpu-crypto/description
|
|
$(call Package/libwolfssl/description)
|
|
$(call Package/libwolfssl/description)
|
|
This variant uses AES CPU instructions (Intel AESNI or ARMv8 Crypto Extension)
|
|
This variant uses AES CPU instructions (Intel AESNI or ARMv8 Crypto Extension)
|
|
endef
|
|
endef
|
|
|
|
|
|
-define Package/libwolfssl-cpu-crypto/config
|
|
|
|
- if TARGET_armvirt && PACKAGE_libwolfssl-cpu-crypto = y
|
|
|
|
- comment "You are about to build libwolfssl-cpu-crypto into an armvirt_64 image."
|
|
|
|
|
|
+define Package/libwolfsslcpu-crypto/config
|
|
|
|
+ if TARGET_armvirt && PACKAGE_libwolfsslcpu-crypto = y
|
|
|
|
+ comment "You are about to build libwolfsslcpu-crypto into an armvirt_64 image."
|
|
comment "Ensure all of your installation targets support the Crypto Extension. "
|
|
comment "Ensure all of your installation targets support the Crypto Extension. "
|
|
comment "Look for the 'aes' feature in /proc/cpuinfo. This library does not do "
|
|
comment "Look for the 'aes' feature in /proc/cpuinfo. This library does not do "
|
|
comment "run-time detection and will crash if the CPU does not support it. "
|
|
comment "run-time detection and will crash if the CPU does not support it. "
|
|
endif
|
|
endif
|
|
- if TARGET_bcm27xx && PACKAGE_libwolfssl-cpu-crypto
|
|
|
|
- comment "Beware that libwolfssl-cpu-crypto will not run in a bcm27xx target. "
|
|
|
|
|
|
+ if TARGET_bcm27xx && PACKAGE_libwolfsslcpu-crypto
|
|
|
|
+ comment "Beware that libwolfsslcpu-crypto will not run in a bcm27xx target. "
|
|
endif
|
|
endif
|
|
endef
|
|
endef
|
|
|
|
|
|
@@ -161,7 +161,7 @@ else ifdef CONFIG_aarch64
|
|
CONFIGURE_ARGS += --enable-armasm
|
|
CONFIGURE_ARGS += --enable-armasm
|
|
TARGET_CFLAGS:=$(TARGET_CFLAGS:-mcpu%=-mcpu%+crypto)
|
|
TARGET_CFLAGS:=$(TARGET_CFLAGS:-mcpu%=-mcpu%+crypto)
|
|
WOLFSSL_NOASM_REGEX:=^bcm27xx/.*
|
|
WOLFSSL_NOASM_REGEX:=^bcm27xx/.*
|
|
- Package/libwolfssl-cpu-crypto/preinst=\
|
|
|
|
|
|
+ Package/libwolfsslcpu-crypto/preinst=\
|
|
$(subst @@WOLFSSL_NOASM_REGEX@@,$(WOLFSSL_NOASM_REGEX),$(file <preinst.arm-ce))
|
|
$(subst @@WOLFSSL_NOASM_REGEX@@,$(WOLFSSL_NOASM_REGEX),$(file <preinst.arm-ce))
|
|
else ifdef CONFIG_TARGET_x86_64
|
|
else ifdef CONFIG_TARGET_x86_64
|
|
CONFIGURE_ARGS += --enable-intelasm
|
|
CONFIGURE_ARGS += --enable-intelasm
|
|
@@ -194,7 +194,7 @@ define Package/libwolfssl/install
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libwolfssl.so.* $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libwolfssl.so.* $(1)/usr/lib/
|
|
endef
|
|
endef
|
|
|
|
|
|
-Package/libwolfssl-cpu-crypto/install=$(Package/libwolfssl/install)
|
|
|
|
|
|
+Package/libwolfsslcpu-crypto/install=$(Package/libwolfssl/install)
|
|
|
|
|
|
define Package/libwolfssl-benchmark/install
|
|
define Package/libwolfssl-benchmark/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
@@ -202,5 +202,5 @@ define Package/libwolfssl-benchmark/install
|
|
endef
|
|
endef
|
|
|
|
|
|
$(eval $(call BuildPackage,libwolfssl))
|
|
$(eval $(call BuildPackage,libwolfssl))
|
|
-$(eval $(call BuildPackage,libwolfssl-cpu-crypto))
|
|
|
|
|
|
+$(eval $(call BuildPackage,libwolfsslcpu-crypto))
|
|
$(eval $(call BuildPackage,libwolfssl-benchmark))
|
|
$(eval $(call BuildPackage,libwolfssl-benchmark))
|