summaryrefslogtreecommitdiff
path: root/sys/modules/ossl/Makefile
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2020-12-04 21:12:17 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2020-12-04 21:12:17 +0000
commit22bd0c9731d73167352019c0c49d454196d029dc (patch)
tree80bb10364a4a1aff615d9b34f05b30134b48fa5a /sys/modules/ossl/Makefile
parentfd86ae6800383dabe050e22176783857895800e3 (diff)
downloadsrc-test2-22bd0c9731d73167352019c0c49d454196d029dc.tar.gz
src-test2-22bd0c9731d73167352019c0c49d454196d029dc.zip
Notes
Diffstat (limited to 'sys/modules/ossl/Makefile')
-rw-r--r--sys/modules/ossl/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/modules/ossl/Makefile b/sys/modules/ossl/Makefile
index 064677bc9b23..6fe8c5a6c812 100644
--- a/sys/modules/ossl/Makefile
+++ b/sys/modules/ossl/Makefile
@@ -13,6 +13,12 @@ SRCS= bus_if.h \
ossl_sha512.c \
${SRCS.${MACHINE_CPUARCH}}
+SRCS.aarch64= \
+ sha1-armv8.S \
+ sha256-armv8.S \
+ sha512-armv8.S \
+ ossl_aarch64.c
+
SRCS.amd64= \
sha1-x86_64.S \
sha256-x86_64.S \
@@ -25,4 +31,10 @@ SRCS.i386= \
sha512-586.S \
ossl_x86.c
+# For arm64, we are forced to rewrite the compiler invocation for the assembly
+# files, to remove -mgeneral-regs-only.
+${SRCS.aarch64:M*.S:S/S/o/}: ${.TARGET:R}.S
+ ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${PROF} ${.IMPSRC}
+ ${CTFCONVERT_CMD}
+
.include <bsd.kmod.mk>