wolfssl: Do not activate HW acceleration on armvirt by default
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 18 Jul 2022 21:06:00 +0000 (23:06 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 20 Jul 2022 15:02:45 +0000 (17:02 +0200)
The armvirt target is also used to run OpenWrt in lxc on other targets
like a Raspberry Pi. If we set WOLFSSL_HAS_CPU_CRYPTO by default the
wolfssl binray is only working when the CPU supports the hardware crypto
extension.

Some targets like the Raspberry Pi do not support the ARM CPU crypto
extension, compile wolfssl without it by default. It is still possible
to activate it in custom builds.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/libs/wolfssl/Config.in

index 0af5b4a77867524ff9bf0b469457f73b482057cd..332a151550f44fd157891c3b4ffb5697ec477a5a 100644 (file)
@@ -72,7 +72,7 @@ config WOLFSSL_ASM_CAPABLE
 
 choice
        prompt "Hardware Acceleration"
-       default WOLFSSL_HAS_CPU_CRYPTO if WOLFSSL_ASM_CAPABLE
+       default WOLFSSL_HAS_CPU_CRYPTO if WOLFSSL_ASM_CAPABLE && !TARGET_armvirt
        default WOLFSSL_HAS_NO_HW
 
        config WOLFSSL_HAS_NO_HW