From 08f348902e1395d2c510c4ed1e3008f271e96fd8 Mon Sep 17 00:00:00 2001 From: andrew Date: Sat, 19 Aug 2017 17:15:40 +0000 Subject: [PATCH] Use armv8-a in -march, it is accepted by both clang and gcc. Sponsored by: DARPA, AFRL --- sys/conf/files.arm64 | 2 +- sys/modules/armv8crypto/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/conf/files.arm64 b/sys/conf/files.arm64 index 1bb2e386ca7e..50a09838cc6d 100644 --- a/sys/conf/files.arm64 +++ b/sys/conf/files.arm64 @@ -146,7 +146,7 @@ contrib/vchiq/interface/vchiq_arm/vchiq_util.c optional vchiq soc_brcm_bcm2837 \ crypto/armv8/armv8_crypto.c optional armv8crypto armv8_crypto_wrap.o optional armv8crypto \ dependency "$S/crypto/armv8/armv8_crypto_wrap.c" \ - compile-with "${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} ${WERROR} ${NO_WCAST_QUAL} ${PROF} -march=armv8a+crypto ${.IMPSRC}" \ + compile-with "${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} ${WERROR} ${NO_WCAST_QUAL} ${PROF} -march=armv8-a+crypto ${.IMPSRC}" \ no-implicit-rule \ clean "armv8_crypto_wrap.o" crypto/blowfish/bf_enc.c optional crypto | ipsec | ipsec_support diff --git a/sys/modules/armv8crypto/Makefile b/sys/modules/armv8crypto/Makefile index 1f425b4c718e..97ef9e86d93d 100644 --- a/sys/modules/armv8crypto/Makefile +++ b/sys/modules/armv8crypto/Makefile @@ -12,7 +12,7 @@ OBJS+= armv8_crypto_wrap.o armv8_crypto_wrap.o: armv8_crypto_wrap.c ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} \ ${WERROR} ${PROF} \ - -march=armv8a+crypto ${.IMPSRC} + -march=armv8-a+crypto ${.IMPSRC} ${CTFCONVERT_CMD} armv8_crypto_wrap.o: armv8_crypto.h