meta-ampere: flash: enable dual-image
Ampere reference platforms all have 2 SPI-NOR for BMC.
This commit enables static-dual-image feature inside
phosphor-software-manager so that the WebUI reports BMC revision for
both BMC images.
Tested:
1. Flash 2 different BMC firmware images with different versions into 2
SPI-NOR devices.
2. Check on WebUI for BMC Firmware information for correct version
reported.
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Change-Id: Iee585ed5089d73e5160d94122f160b3d18a122d5
diff --git a/meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager_%.bbappend b/meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager_%.bbappend
index 853e546..0a63812 100644
--- a/meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager_%.bbappend
+++ b/meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager_%.bbappend
@@ -6,7 +6,7 @@
PACKAGECONFIG[flash_bios] = "-Dhost-bios-upgrade=enabled, -Dhost-bios-upgrade=disabled"
-PACKAGECONFIG:append = " flash_bios"
+PACKAGECONFIG:append = " flash_bios static-dual-image"
SYSTEMD_SERVICE:${PN}:updater += "${@bb.utils.contains('PACKAGECONFIG', 'flash_bios', 'obmc-flash-host-bios@.service', '', d)}"