]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/crypto/Makefile
Import DTS files from Linux 4.18
[FreeBSD/FreeBSD.git] / sys / modules / crypto / Makefile
1 # $FreeBSD$
2
3 .PATH:  ${SRCTOP}/sys/opencrypto
4 .PATH:  ${SRCTOP}/sys/crypto
5 .PATH:  ${SRCTOP}/sys/crypto/blowfish
6 .PATH:  ${SRCTOP}/sys/crypto/camellia
7 .PATH:  ${SRCTOP}/sys/crypto/des
8 .PATH:  ${SRCTOP}/sys/crypto/rijndael
9 .PATH:  ${SRCTOP}/sys/crypto/sha2
10 .PATH:  ${SRCTOP}/sys/crypto/siphash
11 .PATH:  ${SRCTOP}/sys/crypto/skein
12 .PATH:  ${SRCTOP}/sys/crypto/blake2
13 .PATH:  ${SRCTOP}/sys/crypto/chacha20
14 .PATH:  ${SRCTOP}/sys/contrib/libb2
15
16 KMOD    = crypto
17 SRCS    = crypto.c cryptodev_if.c
18 SRCS    += criov.c cryptosoft.c xform.c
19 SRCS    += cast.c cryptodeflate.c rmd160.c rijndael-alg-fst.c rijndael-api.c rijndael-api-fst.c
20 SRCS    += skipjack.c bf_enc.c bf_ecb.c bf_skey.c
21 SRCS    += camellia.c camellia-api.c
22 SRCS    += des_ecb.c des_enc.c des_setkey.c
23 SRCS    += sha1.c sha256c.c sha512c.c
24 SRCS    += skein.c skein_block.c
25 # unroll the 256 and 512 loops, half unroll the 1024
26 CFLAGS+= -DSKEIN_LOOP=995
27 .if exists(${MACHINE_ARCH}/skein_block_asm.s)
28 .PATH:  ${SRCTOP}/sys/crypto/skein/${MACHINE_ARCH}
29 SRCS    += skein_block_asm.s
30 CFLAGS  += -DSKEIN_ASM -DSKEIN_USE_ASM=1792 # list of block functions to replace with assembly: 256+512+1024 = 1792
31 ACFLAGS += -DELF -Wa,--noexecstack
32 # Fully unroll all loops in the assembly optimized version
33 AFLAGS+= --defsym SKEIN_LOOP=0
34 .endif
35 SRCS    += siphash.c
36 SRCS    += gmac.c gfmult.c
37 SRCS    += blake2b-ref.c
38 SRCS    += blake2s-ref.c
39 SRCS    += blake2-sw.c
40 CFLAGS.blake2b-ref.c    += -I${SRCTOP}/sys/crypto/blake2 -DSUFFIX=_ref
41 CFLAGS.blake2s-ref.c    += -I${SRCTOP}/sys/crypto/blake2 -DSUFFIX=_ref
42 CFLAGS.blake2-sw.c      += -I${SRCTOP}/sys/crypto/blake2
43 CWARNFLAGS.blake2b-ref.c        += -Wno-cast-qual -Wno-unused-function
44 CWARNFLAGS.blake2s-ref.c        += -Wno-cast-qual -Wno-unused-function
45 SRCS    += chacha.c
46 SRCS    += chacha-sw.c
47 SRCS    += opt_param.h cryptodev_if.h bus_if.h device_if.h
48 SRCS    += opt_ddb.h
49
50 .include <bsd.kmod.mk>