diff options
author | Thang Q. Nguyen <thang@os.amperecomputing.com> | 2021-01-07 10:16:50 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2021-02-01 16:44:47 +0300 |
commit | 25254b72534874a19e28baa00446247765ccdbde (patch) | |
tree | 679be069166258eb40271c5e0981ceaeb14a03a0 /meta-ampere/meta-common/recipes-phosphor | |
parent | 189431e93efb0dfd7efa69c40fead8bd11a9b01a (diff) | |
download | openbmc-25254b72534874a19e28baa00446247765ccdbde.tar.xz |
meta-ampere: mtjade: Add Host firmware update support
Enable flash_bios feature and configure to use backend script to flash
UEFI firmware via Redfish, WebUI and Rest.
Tested:
1. Flash UEFI firmware via WebUI.
2. Flash UEFI firmware via Redfish UpdateService
3. Flash UEFI firmware via Rest interface.
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Change-Id: I772e6a409414e374ed01e72e3c69985d0b413cb5
Diffstat (limited to 'meta-ampere/meta-common/recipes-phosphor')
2 files changed, 14 insertions, 0 deletions
diff --git a/meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-host-bios@.service b/meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-host-bios@.service new file mode 100644 index 000000000..c344600b2 --- /dev/null +++ b/meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager/obmc-flash-host-bios@.service @@ -0,0 +1,7 @@ +[Unit] +Description=Ampere service for flashing the Host firmware image + +[Service] +Type=oneshot +RemainAfterExit=no +ExecStart=/usr/sbin/ampere_flash_bios.sh /tmp/images/%I/*.img 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 new file mode 100644 index 000000000..5d75c711f --- /dev/null +++ b/meta-ampere/meta-common/recipes-phosphor/flash/phosphor-software-manager_%.bbappend @@ -0,0 +1,7 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +PACKAGECONFIG[flash_bios] = "-Dhost-bios-upgrade=enabled, -Dhost-bios-upgrade=disabled" + +PACKAGECONFIG_append_ = " flash_bios" + +SYSTEMD_SERVICE_${PN}-updater += "${@bb.utils.contains('PACKAGECONFIG', 'flash_bios', 'obmc-flash-host-bios@.service', '', d)}" |