2 .PATH: ${SRCTOP}/sys/crypto/openssl
3 .PATH: ${SRCTOP}/sys/crypto/openssl/${MACHINE_CPUARCH}
6 OBJS+= ${OBJS.${MACHINE_CPUARCH}}
17 ${SRCS.${MACHINE_CPUARCH}}
62 CFLAGS.bsaes-armv7.S+= -D__KERNEL__
64 CFLAGS+= -I${SRCTOP}/sys/crypto/openssl
66 # For arm64, we are forced to rewrite the compiler invocation for the assembly
67 # files, to remove -mgeneral-regs-only.
68 ${SRCS.aarch64:M*.S:S/S/o/}: ${.TARGET:R}.S
69 ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${PROF} ${.IMPSRC}
72 # Based on modules/armv8crypto/Makefile.
73 # Clang doesn't recognize "aes*" instructions without -march set.
74 aesv8-armx.o: aesv8-armx.S
75 ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${PROF} \
76 -march=armv8-a+crypto ${.IMPSRC}
79 OBJS.aarch64= aesv8-armx.o
81 .include <bsd.kmod.mk>