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.
This commit is contained in:
Tim Gover
2022-02-03 09:24:06 +00:00
parent 9652be2271
commit 05cc42b98b

View File

@@ -38,7 +38,7 @@ gen_release() {
"${script_dir}/../rpi-eeprom-config" \ "${script_dir}/../rpi-eeprom-config" \
--config "${config}" --out pieeprom.bin \ --config "${config}" --out pieeprom.bin \
"${firmware_dir}/pieeprom-${pieeprom_version}.bin" || die "Failed to create updated EEPROM config with \"${config}\"" "${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}" echo "Creating ${out}"
zip "${out}" * zip "${out}" *
cleanup cleanup