(module C_1210 (layer F.Cu) (tedit 4289BEAB) (attr smd) (fp_text reference C210 (at 0 0) (layer B.SilkS) hide (effects (font (size 1.524 1.524) (thickness 0.05)) (justify mirror)) ) (fp_text value "1210 CAPACITOR X5R 6.3V" (at 0 0) (layer Cmts.User) (effects (font (size 1.524 1.524) (thickness 0.05))) ) (pad 1 smd rect (at 0 -1.5 270) (size 1.6 2.6) (layers F.Cu F.Paste F.Mask)) (pad 2 smd rect (at 0 1.5 270) (size 1.6 2.6) (layers F.Cu F.Paste F.Mask)) (model wrlshp/SW3dPS-CAPC3225.wrl (offset (xyz 1.249933981227875 0 1.250000021226883)) (scale (xyz 0.39370078740158 0.39370078740158 0.39370078740158)) (rotate (xyz 270 360 90)) ) (model wrlshp/F26EE9BE-B6B0.wrl (at (xyz 0 0 0)) (scale (xyz 1 1 1)) (rotate (xyz 0 0 180)) ) ) ange='this.form.submit();'> Cryptech HSM on STM-32 ARM processorgit repositories
aboutsummaryrefslogtreecommitdiff
path: root/projects/libhal-test/Makefile
blob: f58f480b116fe63dbe77086f49b1f280774419c1 (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
TEST = cores test-bus test-trng test-hash test-aes-key-wrap test-pbkdf2 test-ecdsa test-rsa test-mkmif

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