build: store sha256_unsigned in JSON hash_unsigned
authorPaul Spooren <[email protected]>
Mon, 28 Mar 2022 02:29:09 +0000 (03:29 +0100)
committerPaul Spooren <[email protected]>
Tue, 29 Mar 2022 12:14:12 +0000 (13:14 +0100)
commitde3d69c9ac19921cd332d2db788cb3f001406d45
tree49009d04a25eec2a5a9087461e550bb57f7c3e52
parentf32ecb9665b6fa6430f6243d797acacb0a8fee55
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 <[email protected]>
include/image-commands.mk
include/image.mk
scripts/json_add_image_info.py