Use tkey-builder:2; add hashes & checks for bitstream & fw bins

Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
Daniel Lublin 2023-03-31 10:18:35 +02:00 committed by dehanj
parent aac03357e9
commit 2ddd523c29
No known key found for this signature in database
GPG key ID: 3707A9DBF4BB8F1A
5 changed files with 15 additions and 1 deletions

View file

@ -157,6 +157,11 @@ firmware.hex: firmware.bin firmware_size_mismatch
testfw.hex: testfw.bin testfw_size_mismatch
python3 $(P)/tools/makehex/makehex.py $< $(BRAM_FW_SIZE) > $@
.PHONY: check-binary-hashes
check-binary-hashes:
sha512sum -c firmware.bin.sha512
sha256sum -c application_fpga.bin.sha256
%.bin: %.elf
$(SIZE) $<
@test "$$($(SIZE) $< | awk 'NR==2{print $$2, $$3}')" = "0 0" \

View file

@ -0,0 +1 @@
d2970828269b3ba7f09fb73b8592b08814dfe8c8087b00b0659feb516bb00f33 application_fpga.bin

View file

@ -0,0 +1 @@
3769540390ee3d990ea3f9e4cc9a0d1af5bcaebb82218185a78c39c6bf01d9cdc305ba253a1fb9f3f9fcc63d97c8e5f34bbb1f7bec56a8f246f1d2239867b623 firmware.bin