rpi-update: bootloader: Only remove pieeprom*.bin and recovery.bin

When switching to an explicit branch only remove the pieeprom and
recovery.bin files. On Pi4 this preserves the VL805 firmware binaries.

It's unlikely that these will be updated so just preserve whatever
was there instead of implementing an update mechanism for VL805
binaries.
This commit is contained in:
Tim Gover
2023-12-14 09:56:24 +00:00
committed by popcornmix
parent 3abf3bcdb4
commit 2a57b603df

View File

@@ -264,8 +264,8 @@ function download_bootloader_images {
fi fi
if [[ "${BOOTLOADER_REV_IN}" != "master" ]]; then if [[ "${BOOTLOADER_REV_IN}" != "master" ]]; then
echo "Non default bootloader revision specified (${BOOTLOADER_REV_IN}) deleting local bootloader binaries in ${fw_path}" echo "Non default bootloader revision specified (${BOOTLOADER_REV_IN}) deleting local bootloader binaries in ${fw_path}"
rm -rf "${fw_path}" rm -f "${fw_path}/recovery.bin"
mkdir -p "${fw_path}" rm -f "${fw_path}"/pieeprom*.bin
fi fi
if [[ ! -f "${fw_path}/${latest_eeprom}" ]]; then if [[ ! -f "${fw_path}/${latest_eeprom}" ]]; then
eeprom_temp="$(mktemp)" eeprom_temp="$(mktemp)"