X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=Makefile;h=b98015985816bb362960a3dd9768fe77d8ceef7f;hp=e922e6486a4ff721aa5ed9ebde4777a2dea88ce1;hb=94f6d6aad57f8d1230409f74e42395edc290668a;hpb=e1db57c69472f52cf2405ef4eb22f085a868eeeb diff --git a/Makefile b/Makefile index e922e64..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.hex \ + $(BIN_DIR)$(call lc, $(algo))/$(TEST_DIR)main-$(call lc, $(algo))-test.bin \ ))) #-------------------------------------------------------------------------------