From 4205fd427f3f9dc4348eaeaa14e32a623f1f29a8 Mon Sep 17 00:00:00 2001 From: Diederik de Haas Date: Fri, 19 Feb 2021 12:53:22 +0100 Subject: [PATCH] Change base of sha256 target to .img as checksum is based on that. It now xz compresses the image and then still calculates the sha256 hash on the non-compressed file. The xz.sha256 target (already) compresses it and calculates the hash on the xz file. Signed-off-by: Diederik de Haas --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c28058c..93d1c29 100644 --- a/Makefile +++ b/Makefile @@ -99,7 +99,7 @@ raspi_4_bullseye.yaml: raspi_base_bullseye.yaml sed "s/__SERIAL_CONSOLE__/ttyS1,115200/" |\ sed "s/__HOST__/rpi_4/" > $@ -%.sha256: %.img.xz +%.sha256: %.img echo $@ sha256sum $(@:sha256=img) > $@