mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 10:01:02 +01:00
e655cc70df
OpenSSL itself keeps only a single copy of this header. Do the same in sys/crypto/openssl to avoid the extra maintenance burden. This requires adjusting the include paths for generated asm files. No functional change intended. Reported by: jrtc27 Reviewed by: jhb MFC after: 3 months Differential Revision: https://reviews.freebsd.org/D42866
37 lines
1.0 KiB
Makefile
37 lines
1.0 KiB
Makefile
.PATH: ${SRCTOP}/sys/crypto/armv8
|
|
.PATH: ${SRCTOP}/sys/crypto/openssl/aarch64
|
|
|
|
KMOD= armv8crypto
|
|
SRCS= armv8_crypto.c
|
|
SRCS+= device_if.h bus_if.h opt_bus.h cryptodev_if.h
|
|
|
|
OBJS+= armv8_crypto_wrap.o aesv8-armx.o ghashv8-armx.o
|
|
|
|
CFLAGS+=-I${SRCTOP}/sys/crypto/openssl
|
|
|
|
# Remove -nostdinc so we can get the intrinsics.
|
|
armv8_crypto_wrap.o: armv8_crypto_wrap.c
|
|
${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} \
|
|
-I${SRCTOP}/sys/crypto/armv8 \
|
|
${WERROR} ${PROF} \
|
|
-march=armv8-a+crypto ${.IMPSRC}
|
|
${CTFCONVERT_CMD}
|
|
|
|
aesv8-armx.o: aesv8-armx.S
|
|
${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} \
|
|
-I${SRCTOP}/sys/crypto/armv8 \
|
|
${WERROR} ${PROF} \
|
|
-march=armv8-a+crypto ${.IMPSRC}
|
|
${CTFCONVERT_CMD}
|
|
|
|
ghashv8-armx.o: ghashv8-armx.S
|
|
${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc:N-mgeneral-regs-only} \
|
|
-I${SRCTOP}/sys/crypto/armv8 \
|
|
${WERROR} ${PROF} \
|
|
-march=armv8-a+crypto ${.IMPSRC}
|
|
${CTFCONVERT_CMD}
|
|
|
|
armv8_crypto_wrap.o: armv8_crypto.h
|
|
|
|
.include <bsd.kmod.mk>
|