diff -r 5a2e37a52bbf tests/sys/crypto/aes/Makefile --- a/tests/sys/crypto/aes/Makefile Sun Aug 16 17:21:22 2020 +0000 +++ b/tests/sys/crypto/aes/Makefile Sun Aug 16 17:52:11 2020 +0000 @@ -36,6 +36,12 @@ SRCS.t_aes+= aes_neon_subr.c SRCS.t_aes+= aes_neon_32.S .endif +.if !empty(MACHINE_ARCH:Mearmv7*) && empty(MACHINE_ARCH:Mearmv7hf*) +COPTS.aes_neon.c+= -mfloat-abi=softfp -mfpu=neon +COPTS.aes_neon_subr.c+= -mfloat-abi=softfp -mfpu=neon +AOPTS.aes_neon_32.S+= -D__SOFTFP__ +.endif + .endif # earmv7/aarch64 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" diff -r 5a2e37a52bbf tests/sys/crypto/chacha/Makefile --- a/tests/sys/crypto/chacha/Makefile Sun Aug 16 17:21:22 2020 +0000 +++ b/tests/sys/crypto/chacha/Makefile Sun Aug 16 17:52:11 2020 +0000 @@ -29,6 +29,11 @@ SRCS.t_chacha+= chacha_neon_64.S .endif SRCS.t_chacha+= chacha_neon_impl.c +.if !empty(MACHINE_ARCH:Mearmv7*) && empty(MACHINE_ARCH:Mearmv7hf*) +COPTS.chacha_neon.c+= -mfloat-abi=softfp -mfpu=neon +AOPTS.chacha_neon_32.S+= -D__SOFTFP__ +.endif + .endif # earmv7 or aarch64 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"