build: store sha256_unsigned in JSON
authorPaul Spooren <mail@aparcar.org>
Mon, 28 Mar 2022 02:29:09 +0000 (03:29 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 6 Apr 2022 13:03:58 +0000 (14:03 +0100)
commita5cf20d1974f8247ed87fad4a61216cc75eddfdb
tree7c257a05a557fe487f9675fd65f5591342223c1b
parentca83af21ccd510d260d20775a50045e7afca7211
build: store sha256_unsigned in JSON

Introduce `sha256_unsigned` which is a checksum of the image _before_ a
signature is attached. This is helpful to compare image reproducibility.

Since the `.sha256sum` file is located in the $(KDIR) folder, switch
$(BIN_DIR) with $(KDIR) to simplify the code. The value of $(BIN_DIR)
itself is not stored inside the resulting JSON file, so it can be
replaced.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 8822a8d850ba2df69b81289758959bb90643a696)
include/image-commands.mk
include/image.mk
scripts/json_add_image_info.py