mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
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:
@@ -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)"
|
||||||
|
|||||||
Reference in New Issue
Block a user