]> git.cryptolib.org Git - avr-crypto-lib.git/commitdiff
adding hashing of final hex file to make-system
authorbg <daniel.otte@rub.de>
Wed, 14 Nov 2012 19:35:46 +0000 (20:35 +0100)
committerbg <daniel.otte@rub.de>
Wed, 14 Nov 2012 19:35:46 +0000 (20:35 +0100)
Makefile_main.inc
Makefile_sys_conf.inc

index 1edb6601f601c719bf59330314f0948a054de713..f448e8dacc81ee59ae7efd426ab07d51dd0a8ef9 100644 (file)
@@ -191,7 +191,7 @@ endef
 
 $(foreach algo, $(ALGORITHMS), $(eval $(call TestBin_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.hex \
 )))
 
 #-------------------------------------------------------------------------------
@@ -210,6 +210,12 @@ $(foreach algo, $(ALGORITHMS), $(eval $(call Listing_TEMPLATE, \
 %.hex: %.elf
        @echo "[objcopy]: $@"
        @$(OBJCOPY) -j .text -j .data -O ihex $< $@
+ifdef HASH_TOOL
+ifneq ($(HASH_TOOL),)
+       @echo -n "[$(HASH_TOOL)]: "
+       @$(HASH_TOOL) $<
+endif
+endif
 
 #-------------------------------------------------------------------------------
 
index 3135e17460e980791da31fa5bc95cca65af70228..74ea636bf35028e204433b0452fb21ad8ac16f3c 100644 (file)
@@ -35,6 +35,7 @@ OBJCOPY         = avr-objcopy
 OBJDUMP         = avr-objdump
 SIZE            = avr-size
 READELF         = readelf
+HASH_TOOL       = sha256sum
 RUBY            = ruby
 GET_TEST        = host/get_test.rb
 MAKE            = make