X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=Makefile;h=b98015985816bb362960a3dd9768fe77d8ceef7f;hp=9015cecae55ce9c47400991900a310a8e052aebf;hb=94f6d6aad57f8d1230409f74e42395edc290668a;hpb=5e75eafde9b0269aa78395bbeb3e79ff36a1f082 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 \ ))) #-------------------------------------------------------------------------------