mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-20 21:13:36 +08:00
rpi-eeprom-update: Only check for flashrom during an update
There's no need to check for flashrom when querying the current version, removing pending updates etc. See: https://github.com/raspberrypi/rpi-eeprom/issues/548
This commit is contained in:
@@ -410,11 +410,13 @@ checkDependencies() {
|
||||
|
||||
# Default to off - in the future Raspberry Pi 5 may default to using flashrom if
|
||||
# flashrom is available.
|
||||
if [ "${AUTO_UPDATE_BOOTLOADER}" = 1 ] || [ -n "${BOOTLOADER_UPDATE_IMAGE}" ]; then
|
||||
[ -z "${RPI_EEPROM_USE_FLASHROM}" ] && RPI_EEPROM_USE_FLASHROM=0
|
||||
if [ "${RPI_EEPROM_USE_FLASHROM}" -eq 1 ] && ! command -v flashrom > /dev/null; then
|
||||
warn "WARNING: flashrom not found. Setting RPI_EEPROM_USE_FLASHROM to 0"
|
||||
RPI_EEPROM_USE_FLASHROM=0
|
||||
fi
|
||||
fi
|
||||
|
||||
FIRMWARE_IMAGE_DIR="${FIRMWARE_ROOT}-${BCM_CHIP}/${FIRMWARE_RELEASE_STATUS}"
|
||||
if ! [ -d "${FIRMWARE_IMAGE_DIR}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user