-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (60 loc) · 2.39 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
obj-m := illumos-crypto.o
KERNELVERSION = $(shell uname -r)
KDIR := /lib/modules/$(KERNELVERSION)/build
PWD := $(shell pwd)
SPL_DIR := /media/sf_projects/zfs_crypto/spl
EXTRA_CFLAGS := -g -include $(SPL_DIR)/spl_config.h -D_KERNEL
EXTRA_AFLAGS := -D_ASM
illumos-crypto-y := module/illumos-crypto.o
illumos-crypto-y += module/api/kcf_cipher.o
illumos-crypto-y += module/api/kcf_digest.o
illumos-crypto-y += module/api/kcf_mac.o
illumos-crypto-y += module/api/kcf_miscapi.o
illumos-crypto-y += module/api/kcf_ctxops.o
illumos-crypto-y += module/core/kcf_callprov.o
illumos-crypto-y += module/core/kcf_prov_tabs.o
illumos-crypto-y += module/core/kcf_sched.o
illumos-crypto-y += module/core/kcf_mech_tabs.o
illumos-crypto-y += module/core/kcf_prov_lib.o
illumos-crypto-y += module/spi/kcf_spi.o
illumos-crypto-y += module/io/aes.o
illumos-crypto-y += module/io/sha2_mod.o
illumos-crypto-y += module/os/modhash.o
illumos-crypto-y += module/os/bitmap_arch.o
illumos-crypto-y += module/os/modconf.o
illumos-crypto-y += algs/modes/cbc.o
illumos-crypto-y += algs/modes/ccm.o
illumos-crypto-y += algs/modes/ctr.o
illumos-crypto-y += algs/modes/ecb.o
illumos-crypto-y += algs/modes/gcm.o
illumos-crypto-y += algs/modes/modes.o
illumos-crypto-y += algs/aes/aes_impl.o
illumos-crypto-y += algs/aes/amd64/aeskey.o
illumos-crypto-y += algs/aes/amd64/aes_amd64.o
illumos-crypto-y += algs/sha2/sha2.o
ccflags-y := -I$(src)/include
ccflags-y += -I$(src)/algs/
ccflags-y += -I$(SPL_DIR)/include
asflags-y := -include $(SPL_DIR)/spl_config.h
asflags-y += -I$(src)/include/
asflags-y += -I$(src)/include/arch/intel
asflags-y += -I$(SPL_DIR)/include
default:
@# Make the exported SPL symbols available to these modules.
@# They may be in the root of SPL_OBJ when building against
@# installed devel headers, or they may be in the module
@# subdirectory when building against the spl source tree.
@if [ -f $(SPL_DIR)/Module.symvers ]; then \
/bin/cp $(SPL_DIR)/Module.symvers .; \
elif [ -f $(SPL_DIR)/module/Module.symvers ]; then \
/bin/cp $(SPL_DIR)/module/Module.symvers .; \
else \
echo -e "\n" \
"*** Missing spl symbols ensure you have built the spl:\n" \
"*** - /media/sf_projects/zfs_crypto/spl//Module.symvers, or\n" \
"*** - /media/sf_projects/zfs_crypto/spl//module/Module.symvers\n"; \
exit 1; \
fi
$(MAKE) -I/usr/include -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
$(MAKE) -I/usr/include -C $(KDIR) SUBDIRS=$(PWD) clean