X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=Makefile;h=b98015985816bb362960a3dd9768fe77d8ceef7f;hp=9015cecae55ce9c47400991900a310a8e052aebf;hb=498cf95d73faff93a848d2c0ffec3987769670bb;hpb=85aee632b0799ce567b9df7a6d16f59ab1564b34 diff --git a/Makefile b/Makefile index 9015cec..b980159 100644 --- a/Makefile +++ b/Makefile @@ -146,6 +146,10 @@ $(foreach algo, $(ALGORITHMS), $(eval $(call TestBin_TEMPLATE, \ #------------------------------------------------------------------------------- +%.bin: %.elf + @echo "[objcopy]: $@" + @$(OBJCOPY) -O binary $< $@ + %.hex: %.elf @echo "[objcopy]: $@" @$(OBJCOPY) -j .text -j .data -O ihex $< $@ @@ -155,12 +159,12 @@ $(foreach algo, $(ALGORITHMS), $(eval $(call TestBin_TEMPLATE, \ define Flash_Template $(1)_FLASH: $(2) @echo "[flash]: $(2)" - @$(FLASHCMD)$(call first,$(2)) + @$(call FLASHCMD, $(call first,$(2))) endef $(foreach algo, $(ALGORITHMS), $(eval $(call Flash_Template, \ $(algo), \ - $(BIN_DIR)$(call lc, $(algo))/$(TEST_DIR)main-$(call lc, $(algo))-test.elf \ + $(BIN_DIR)$(call lc, $(algo))/$(TEST_DIR)main-$(call lc, $(algo))-test.bin \ ))) #-------------------------------------------------------------------------------