From 50451ca6ad109b78bfc482ee15c09107af22c1d5 Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Thu, 3 Feb 2022 09:24:06 +0000 Subject: [PATCH] make-release: Use rpi-eeprom-digest to generate update timestamps Previously, the .sig would have an update timestamp of zero. Switching to rpi-eeprom-digest is preferable because the update timestamp will be much closer to when the image was installed. N.B. Update-timestamp is used to track configuration changes and is independent of the build-timestamps which are the version of the bootloader executable. --- imager/make-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imager/make-release b/imager/make-release index 556d780..e01fe70 100755 --- a/imager/make-release +++ b/imager/make-release @@ -38,7 +38,7 @@ gen_release() { "${script_dir}/../rpi-eeprom-config" \ --config "${config}" --out pieeprom.bin \ "${firmware_dir}/pieeprom-${pieeprom_version}.bin" || die "Failed to create updated EEPROM config with \"${config}\"" - sha256sum pieeprom.bin | awk '{print $1}' > pieeprom.sig + ${script_dir}/../rpi-eeprom-digest -i pieeprom.bin -o pieeprom.sig echo "Creating ${out}" zip "${out}" * cleanup