TEST = cores test-bus test-trng test-hash test-aes-key-wrap test-pbkdf2 test-ecdsa test-rsa test-mkmif CFLAGS += -I $(LIBHAL_SRC) LIBC_OBJS = printf.o gettimeofday.o LIBS += $(LIBHAL_BLD)/libhal.a $(LIBTFM_BLD)/libtfm.a all: $(TEST:=.elf) vpath %.c $(LIBHAL_SRC)/tests $(LIBHAL_SRC)/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 auto_zeroise Cryptech HSM on STM-32 ARM processorgit repositories
aboutsummaryrefslogblamecommitdiff
path: root/.gitignore
blob: b8b0ae35949933d5352fcb71eaa1c977596f49ad (plain) (tree)
1
2
3
4
5
6
7
8
9
   
   
    




     
  
*.a
*.o
*.mo
*.bin
*.elf
*.hex
*.lst
*.map
*~