commit | cec147525b9bccd15767b1042ac406a24a2ae6aa | [log] [tgz] |
---|---|---|
author | Alexander Hansen <alexander.hansen@9elements.com> | Thu May 08 13:11:03 2025 +0200 |
committer | Alexander Hansen <alexander.hansen@9elements.com> | Tue May 27 12:36:25 2025 +0200 |
tree | 8495948a09895c933f449db75694bd62a8285d7e | |
parent | 901747993f29bfb629d934b7a5b142a8146c9a33 [diff] |
common: handle match for config intf added/removed When the configuration interface for any device is added or removed as part of dynamic configuration (via EM) the software manager has to handle the dbus match and add or remove devices as necessary. When an update is in progress, the device is not removed, even if the configuration was removed. Tested: On Tyan S8030 with bios software updater For testing add/remove of configuration interfaces, the configuration was probed on the powersupply FRU. In case of InterfacesAdded: ``` May 26 14:54:00 s8030-bmc-30303035c0c1 phosphor-bios-software-update[9530]: [config] found configuration interface at xyz.openbmc_project.EntityManager, /xyz/openbmc_project/inventory/system/board/HostSPIFlash/HostSPIFlash May 26 14:54:09 s8030-bmc-30303035c0c1 phosphor-bios-software-update[9530]: Missing property Name on path /xyz/openbmc_project/inventory/system/board/HostSPIFlash/HostSPIFlash, interface xyz.openbmc_project.Configuration.SPIFlash.MuxOutputs1 May 26 14:54:09 s8030-bmc-30303035c0c1 phosphor-bios-software-update[9530]: Missing property Polarity on path /xyz/openbmc_project/inventory/system/board/HostSPIFlash/HostSPIFlash, interface xyz.openbmc_project.Configuration.SPIFlash.MuxOutputs1 May 26 14:54:09 s8030-bmc-30303035c0c1 phosphor-bios-software-update[9530]: SPI device: 1:0 May 26 14:54:09 s8030-bmc-30303035c0c1 phosphor-bios-software-update[9530]: Found SPI Address 1e630000.spi May 26 14:54:09 s8030-bmc-30303035c0c1 phosphor-bios-software-update[9530]: SPI Device HostSPIFlash at 1:0 initialized successfully May 26 14:54:09 s8030-bmc-30303035c0c1 phosphor-bios-software-update[9530]: HostSPIFlash_5930: created dbus interfaces on path /xyz/openbmc_project/software/HostSPIFlash_5930 May 26 14:54:09 s8030-bmc-30303035c0c1 phosphor-bios-software-update[9530]: [Software] enabling update of /xyz/openbmc_project/software/HostSPIFlash_5930 (adding the update interface) ``` ``` busctl tree xyz.openbmc_project.Software.BIOS `- /xyz `- /xyz/openbmc_project `- /xyz/openbmc_project/software `- /xyz/openbmc_project/software/HostSPIFlash_5930 ``` In case of InterfacesRemoved: ``` May 26 14:58:23 s8030-bmc-30303035c0c1 phosphor-bios-software-update[9530]: detected interface xyz.openbmc_project.Configuration.SPIFlash removed on /xyz/openbmc_project/inventory/system/board/HostSPIFlash/HostSPIFlash May 26 14:58:23 s8030-bmc-30303035c0c1 phosphor-bios-software-update[9530]: removing device at /xyz/openbmc_project/inventory/system/board/HostSPIFlash/HostSPIFlash ``` ``` busctl tree xyz.openbmc_project.Software.BIOS `- /xyz `- /xyz/openbmc_project `- /xyz/openbmc_project/software ``` Change-Id: I4faeb8e0144408b57767783ba2c5c4f3561f4021 Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture
To build this package, do the following steps:
meson build
ninja -C build
To clean the repository run rm -r build
.