mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-12-10 14:25:33 -05:00
Use tkey-builder:2; add hashes & checks for bitstream & fw bins
Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
parent
aac03357e9
commit
2ddd523c29
5 changed files with 15 additions and 1 deletions
|
|
@ -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" \
|
||||
|
|
|
|||
1
hw/application_fpga/application_fpga.bin.sha256
Normal file
1
hw/application_fpga/application_fpga.bin.sha256
Normal file
|
|
@ -0,0 +1 @@
|
|||
d2970828269b3ba7f09fb73b8592b08814dfe8c8087b00b0659feb516bb00f33 application_fpga.bin
|
||||
1
hw/application_fpga/firmware.bin.sha512
Normal file
1
hw/application_fpga/firmware.bin.sha512
Normal file
|
|
@ -0,0 +1 @@
|
|||
3769540390ee3d990ea3f9e4cc9a0d1af5bcaebb82218185a78c39c6bf01d9cdc305ba253a1fb9f3f9fcc63d97c8e5f34bbb1f7bec56a8f246f1d2239867b623 firmware.bin
|
||||
Loading…
Add table
Add a link
Reference in a new issue