From 7995ce1392a919a53b8992500b2003c16ba77a18 Mon Sep 17 00:00:00 2001 From: Ronny Nilsson <ronny.nilsson@iopsys.eu> Date: Mon, 1 Jun 2020 22:49:15 +0200 Subject: [PATCH] base-files: Broadcom support for reading pending boot flash bank. --- iopsys-brcm63xx-arm/base-files/lib/upgrade/target.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/iopsys-brcm63xx-arm/base-files/lib/upgrade/target.sh b/iopsys-brcm63xx-arm/base-files/lib/upgrade/target.sh index 8f84b9f71..0ecf9753f 100644 --- a/iopsys-brcm63xx-arm/base-files/lib/upgrade/target.sh +++ b/iopsys-brcm63xx-arm/base-files/lib/upgrade/target.sh @@ -28,3 +28,12 @@ target_set_flashbank_boot() { source /lib/upgrade/broadcom-iopsys-5.sh && \ upgrade_commit $@" || return } + + + +#-------------------------------------------------------------- +# Return what "bank" the bootloader will select next time. +target_get_flashbank_boot() { + source "/lib/upgrade/broadcom-iopsys-5.sh" || return + cfe_get_boot_flashbank || return +} -- GitLab