TEST = cores test-bus test-trng test-hash test-aes-key-wrap test-pbkdf2 test-ecdsa test-rsa test-mkmif #TEST += test-rpc_hash test-rpc_pkey test-rpc_get_version test-rpc_get_random TEST += test-rpc_server CFLAGS += -I $(LIBHAL_DIR) LIBC_OBJS = printf.o gettimeofday.o LIBS += $(LIBHAL_DIR)/libhal.a $(LIBTFM_DIR)/libtfm.a all: $(TEST:=.elf) vpath %.c $(LIBHAL_DIR)/tests $(LIBHAL_DIR)/utils # .mo extension for files with main() that need to be wrapped as __main() %.mo: %.c $(CC) -c $(CFLAGS) -Dmain=__main -o $@ $< %.elf: %.mo main.o $(BOARD_OBJS) $(LIBC_OBJS) $(LIBS) $(CC) $(CFLAGS) $^ -o $*.elf -T$(LDSCRIPT) -g -Wl,-Map=$*.map $(OBJCOPY) -O binary $*.elf $*.bin $(SIZE) $*.elf # don't automatically delete objects, to avoid a lot of unnecessary rebuilding .SECONDARY: $(BOARD_OBJS) $(LIBC_OBJS) clean: rm -f *.o *.mo rm -f *.elf rm -f *.bin rm -f *.map ption> Cryptech libhal: crypto software, HSM management, RPCgit repositories
aboutsummaryrefslogtreecommitdiff
path: root/cryptech_console
blob: 5ac12ba841cdc718b748a089f75e8bb5c2fc5d9c (plain) (blame)
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116