2016-05-12 14:51:24 +00:00
|
|
|
src = @abs_top_srcdir@/module/icp
|
|
|
|
obj = @abs_builddir@
|
|
|
|
|
|
|
|
MODULE := icp
|
|
|
|
|
|
|
|
obj-$(CONFIG_ZFS) := $(MODULE).o
|
|
|
|
|
2018-01-10 18:49:27 +00:00
|
|
|
asflags-y := -I$(src)/include
|
2018-01-31 23:17:56 +00:00
|
|
|
asflags-y += $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
2018-01-10 18:49:27 +00:00
|
|
|
ccflags-y := -I$(src)/include
|
|
|
|
ccflags-y += $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
|
2016-05-12 14:51:24 +00:00
|
|
|
|
|
|
|
$(MODULE)-objs += illumos-crypto.o
|
|
|
|
$(MODULE)-objs += api/kcf_cipher.o
|
|
|
|
$(MODULE)-objs += api/kcf_digest.o
|
|
|
|
$(MODULE)-objs += api/kcf_mac.o
|
|
|
|
$(MODULE)-objs += api/kcf_miscapi.o
|
|
|
|
$(MODULE)-objs += api/kcf_ctxops.o
|
|
|
|
$(MODULE)-objs += core/kcf_callprov.o
|
|
|
|
$(MODULE)-objs += core/kcf_prov_tabs.o
|
|
|
|
$(MODULE)-objs += core/kcf_sched.o
|
|
|
|
$(MODULE)-objs += core/kcf_mech_tabs.o
|
|
|
|
$(MODULE)-objs += core/kcf_prov_lib.o
|
|
|
|
$(MODULE)-objs += spi/kcf_spi.o
|
|
|
|
$(MODULE)-objs += io/aes.o
|
2016-06-15 22:47:05 +00:00
|
|
|
$(MODULE)-objs += io/edonr_mod.o
|
2016-05-12 14:51:24 +00:00
|
|
|
$(MODULE)-objs += io/sha1_mod.o
|
|
|
|
$(MODULE)-objs += io/sha2_mod.o
|
2016-06-15 22:47:05 +00:00
|
|
|
$(MODULE)-objs += io/skein_mod.o
|
2016-05-12 14:51:24 +00:00
|
|
|
$(MODULE)-objs += os/modhash.o
|
|
|
|
$(MODULE)-objs += os/modconf.o
|
|
|
|
$(MODULE)-objs += algs/modes/cbc.o
|
|
|
|
$(MODULE)-objs += algs/modes/ccm.o
|
|
|
|
$(MODULE)-objs += algs/modes/ctr.o
|
|
|
|
$(MODULE)-objs += algs/modes/ecb.o
|
2018-08-02 18:59:24 +00:00
|
|
|
$(MODULE)-objs += algs/modes/gcm_generic.o
|
2016-05-12 14:51:24 +00:00
|
|
|
$(MODULE)-objs += algs/modes/gcm.o
|
|
|
|
$(MODULE)-objs += algs/modes/modes.o
|
2018-08-02 18:59:24 +00:00
|
|
|
$(MODULE)-objs += algs/aes/aes_impl_generic.o
|
2016-05-12 14:51:24 +00:00
|
|
|
$(MODULE)-objs += algs/aes/aes_impl.o
|
|
|
|
$(MODULE)-objs += algs/aes/aes_modes.o
|
2016-06-15 22:47:05 +00:00
|
|
|
$(MODULE)-objs += algs/edonr/edonr.o
|
2016-05-12 14:51:24 +00:00
|
|
|
$(MODULE)-objs += algs/sha1/sha1.o
|
|
|
|
$(MODULE)-objs += algs/sha2/sha2.o
|
2016-06-15 22:47:05 +00:00
|
|
|
$(MODULE)-objs += algs/sha1/sha1.o
|
|
|
|
$(MODULE)-objs += algs/skein/skein.o
|
|
|
|
$(MODULE)-objs += algs/skein/skein_block.o
|
|
|
|
$(MODULE)-objs += algs/skein/skein_iv.o
|
2020-01-17 20:40:09 +00:00
|
|
|
|
|
|
|
$(MODULE)-$(CONFIG_X86_64) += asm-x86_64/aes/aeskey.o
|
|
|
|
$(MODULE)-$(CONFIG_X86_64) += asm-x86_64/aes/aes_amd64.o
|
|
|
|
$(MODULE)-$(CONFIG_X86_64) += asm-x86_64/aes/aes_aesni.o
|
|
|
|
$(MODULE)-$(CONFIG_X86_64) += asm-x86_64/modes/gcm_pclmulqdq.o
|
2020-02-10 20:59:50 +00:00
|
|
|
$(MODULE)-$(CONFIG_X86_64) += asm-x86_64/modes/aesni-gcm-x86_64.o
|
|
|
|
$(MODULE)-$(CONFIG_X86_64) += asm-x86_64/modes/ghash-x86_64.o
|
2020-01-17 20:40:09 +00:00
|
|
|
$(MODULE)-$(CONFIG_X86_64) += asm-x86_64/sha1/sha1-x86_64.o
|
|
|
|
$(MODULE)-$(CONFIG_X86_64) += asm-x86_64/sha2/sha256_impl.o
|
|
|
|
$(MODULE)-$(CONFIG_X86_64) += asm-x86_64/sha2/sha512_impl.o
|
2016-05-12 14:51:24 +00:00
|
|
|
|
2018-08-02 18:59:24 +00:00
|
|
|
$(MODULE)-$(CONFIG_X86) += algs/modes/gcm_pclmulqdq.o
|
|
|
|
$(MODULE)-$(CONFIG_X86) += algs/aes/aes_impl_aesni.o
|
|
|
|
$(MODULE)-$(CONFIG_X86) += algs/aes/aes_impl_x86-64.o
|
|
|
|
|
2020-02-10 20:59:50 +00:00
|
|
|
# Suppress objtool "can't find jump dest instruction at" warnings. They
|
|
|
|
# are caused by the constants which are defined in the text section of the
|
|
|
|
# assembly file using .byte instructions (e.g. bswap_mask). The objtool
|
|
|
|
# utility tries to interpret them as opcodes and obviously fails doing so.
|
|
|
|
OBJECT_FILES_NON_STANDARD_aesni-gcm-x86_64.o := y
|
|
|
|
OBJECT_FILES_NON_STANDARD_ghash-x86_64.o := y
|
|
|
|
|
2016-05-12 14:51:24 +00:00
|
|
|
ICP_DIRS = \
|
|
|
|
api \
|
|
|
|
core \
|
|
|
|
spi \
|
|
|
|
io \
|
|
|
|
os \
|
|
|
|
algs \
|
|
|
|
algs/aes \
|
2016-06-15 22:47:05 +00:00
|
|
|
algs/edonr \
|
2016-05-12 14:51:24 +00:00
|
|
|
algs/modes \
|
|
|
|
algs/sha1 \
|
|
|
|
algs/sha2 \
|
2016-06-15 22:47:05 +00:00
|
|
|
algs/skein \
|
2016-05-12 14:51:24 +00:00
|
|
|
asm-x86_64 \
|
|
|
|
asm-x86_64/aes \
|
|
|
|
asm-x86_64/modes \
|
|
|
|
asm-x86_64/sha1 \
|
|
|
|
asm-x86_64/sha2 \
|
|
|
|
asm-i386 \
|
|
|
|
asm-generic
|
|
|
|
|
|
|
|
all:
|
|
|
|
mkdir -p $(ICP_DIRS)
|