1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/crypto/openssl 4.PATH: ${SRCTOP}/sys/crypto/openssl/${MACHINE_CPUARCH} 5 6KMOD= ossl 7SRCS= bus_if.h \ 8 cryptodev_if.h \ 9 device_if.h \ 10 ossl.c \ 11 ossl_chacha20.c \ 12 ossl_poly1305.c \ 13 ossl_sha1.c \ 14 ossl_sha256.c \ 15 ossl_sha512.c \ 16 ${SRCS.${MACHINE_CPUARCH}} 17 18SRCS.aarch64= \ 19 chacha-armv8.S \ 20 poly1305-armv8.S \ 21 sha1-armv8.S \ 22 sha256-armv8.S \ 23 sha512-armv8.S \ 24 ossl_aarch64.c 25 26SRCS.amd64= \ 27 chacha-x86_64.S \ 28 poly1305-x86_64.S \ 29 sha1-x86_64.S \ 30 sha256-x86_64.S \ 31 sha512-x86_64.S \ 32 ossl_x86.c 33 34SRCS.i386= \ 35 chacha-x86.S \ 36 poly1305-x86.S \ 37 sha1-586.S \ 38 sha256-586.S \ 39 sha512-586.S \ 40 ossl_x86.c 41 42# For arm64, we are forced to rewrite the compiler invocation for the assembly 43# files, to remove -mgeneral-regs-only. 44${SRCS.aarch64:M*.S:S/S/o/}: ${.TARGET:R}.S 45 ${CC} -c ${CFLAGS:N-mgeneral-regs-only} ${WERROR} ${PROF} ${.IMPSRC} 46 ${CTFCONVERT_CMD} 47 48.include <bsd.kmod.mk> 49