rpi-eeprom-update: Add -l option to resolve the latest bootloader image

Add the -l option to return the latest bootloader EEPROM image. This
will be used by rpi-eeprom-config to provide a more convenient mechanism
for quick config changes.
This commit is contained in:
Tim Gover
2020-09-24 14:57:39 +01:00
parent 29fe479af9
commit a554034c1d

View File

@@ -394,6 +394,8 @@ Options:
-h Display help text and exit -h Display help text and exit
-i Ignore package checksums - for rpi-eeprom developers. -i Ignore package checksums - for rpi-eeprom developers.
-j Write status information using JSON notation -j Write status information using JSON notation
-l Returns the full path to the latest available EEPROM image file according
to the FIRMWARE_RELEASE_STATUS and FIRMWARE_IMAGE_DIR settings.
-m Write status information to the given file when run without -a or -f -m Write status information to the given file when run without -a or -f
-r Removes temporary EEPROM update files from the boot partition. -r Removes temporary EEPROM update files from the boot partition.
-u Install the specified VL805 (USB EEPROM) image file. -u Install the specified VL805 (USB EEPROM) image file.
@@ -694,7 +696,7 @@ MACHINE_OUTPUT=""
JSON_OUTPUT="no" JSON_OUTPUT="no"
IGNORE_DPKG_CHECKSUMS=$LOCAL_MODE IGNORE_DPKG_CHECKSUMS=$LOCAL_MODE
while getopts A:adhif:m:ju:r option; do while getopts A:adhilf:m:ju:r option; do
case "${option}" in case "${option}" in
A) A)
if [ "${OPTARG}" = "bootloader" ]; then if [ "${OPTARG}" = "bootloader" ]; then
@@ -716,6 +718,11 @@ while getopts A:adhif:m:ju:r option; do
;; ;;
j) JSON_OUTPUT="yes" j) JSON_OUTPUT="yes"
;; ;;
l)
getBootloaderUpdateVersion
echo "${BOOTLOADER_UPDATE_IMAGE}"
exit 0
;;
m) MACHINE_OUTPUT="${OPTARG}" m) MACHINE_OUTPUT="${OPTARG}"
;; ;;
h) usage h) usage