Skip to content

Commit

Permalink
wolfssl: Do not activate HW acceleration on armvirt by default
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
hauke authored and aiamadeus committed Jul 25, 2022
1 parent 2dff071 commit c7ce44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/libs/wolfssl/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7ce44a

Please sign in to comment.