build: store sha256_unsigned in JSON
authorPaul Spooren <mail@aparcar.org>
Mon, 28 Mar 2022 02:29:09 +0000 (03:29 +0100)
committerPaul Spooren <mail@aparcar.org>
Tue, 29 Mar 2022 20:41:06 +0000 (21:41 +0100)
commit8822a8d850ba2df69b81289758959bb90643a696
tree33ad9112b2efa936a963405af8fcbfd50a44e763
parent5e34b316c5b3bf06a1d748cb5569d28b8334820f
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>
include/image-commands.mk
include/image.mk
scripts/json_add_image_info.py