1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/crypto/armv8 4.PATH: ${SRCTOP}/sys/crypto/openssl/aarch64 5 6KMOD= armv8crypto 7SRCS= armv8_crypto.c 8SRCS+= device_if.h bus_if.h opt_bus.h cryptodev_if.h 9 10OBJS+= armv8_crypto_wrap.o aesv8-armx.o ghashv8-armx.o 11 12# Remove -nostdinc so we can get the intrinsics. 13armv8_crypto_wrap.o: armv8_crypto_wrap.c 14 ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} \ 15 -I${SRCTOP}/sys/crypto/armv8 \ 16 ${WERROR} ${PROF} \ 17 -march=armv8-a+crypto ${.IMPSRC} 18 ${CTFCONVERT_CMD} 19 20aesv8-armx.o: aesv8-armx.S 21 ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} \ 22 -I${SRCTOP}/sys/crypto/armv8 \ 23 -I${SRCTOP}/sys/crypto/openssl/crypto \ 24 ${WERROR} ${PROF} \ 25 -march=armv8-a+crypto ${.IMPSRC} 26 ${CTFCONVERT_CMD} 27 28ghashv8-armx.o: ghashv8-armx.S 29 ${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} \ 30 -I${SRCTOP}/sys/crypto/armv8 \ 31 -I${SRCTOP}/sys/crypto/openssl/crypto \ 32 ${WERROR} ${PROF} \ 33 -march=armv8-a+crypto ${.IMPSRC} 34 ${CTFCONVERT_CMD} 35 36armv8_crypto_wrap.o: armv8_crypto.h 37 38.include <bsd.kmod.mk> 39