diff mbox series

[v2] wolfssl: fix build on ARMV8

Message ID 1516027690-24571-1-git-send-email-sergio.prado@e-labworks.com
State Accepted
Headers show
Series [v2] wolfssl: fix build on ARMV8 | expand

Commit Message

Sergio Prado Jan. 15, 2018, 2:48 p.m. UTC
Build on ARMV8 fails when hardware acceleration is enabled:

/tmp/ccmGP5RI.s: Assembler messages:
/tmp/ccmGP5RI.s:532: Error: invalid addressing mode at operand 2 -- `ld1 {v0.2d},[x0,256]'
/tmp/ccmGP5RI.s:568: Error: invalid addressing mode at operand 2 -- `st1 {v0.2d},[x0,256]'
/tmp/ccmGP5RI.s:581: Error: invalid addressing mode at operand 2 -- `ld1 {v0.2d},[x0,256]'
/tmp/ccmGP5RI.s:621: Error: invalid addressing mode at operand 2 -- `st1 {v0.2d},[x0,256]'

So let's disable ARMv8 hardware acceleration for now.

Fixes:
http://autobuild.buildroot.net/results/6080648394d09a0d382087831ee6f063c7638be9

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
---
Changes v1 -> v2:
  - Force configure option to --disable-armasm
---
 package/wolfssl/wolfssl.mk | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Thomas Petazzoni Jan. 15, 2018, 8:24 p.m. UTC | #1
Hello,

On Mon, 15 Jan 2018 12:48:10 -0200, Sergio Prado wrote:

> +# build fails when ARMv8 hardware acceleration is enabled
>  ifeq ($(BR2_ARM_CPU_ARMV8A),y)

I really didn't see the need for this condition, so I just passed
--disable-armasm unconditionally.

Applied with this change. Thanks!

Thomas
diff mbox series

Patch

diff --git a/package/wolfssl/wolfssl.mk b/package/wolfssl/wolfssl.mk
index c8ef50a9bc6e..a2e60532f342 100644
--- a/package/wolfssl/wolfssl.mk
+++ b/package/wolfssl/wolfssl.mk
@@ -29,9 +29,8 @@  else
 WOLFSSL_CONF_OPTS += --disable-sslv3
 endif
 
+# build fails when ARMv8 hardware acceleration is enabled
 ifeq ($(BR2_ARM_CPU_ARMV8A),y)
-WOLFSSL_CONF_OPTS += --enable-armasm
-else
 WOLFSSL_CONF_OPTS += --disable-armasm
 endif