diff options
author | Kumar Thangavel <thangavel.k@hcl.com> | 2020-09-01 20:35:19 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2021-01-12 16:52:58 +0300 |
commit | 27cb823db0943e8e1c2b977ce0f3a99f84e7ecf9 (patch) | |
tree | 2bb0e99db070c6304c247ecec41a5b40115cd892 /meta-phosphor/recipes-phosphor | |
parent | db9490e056b25af605594b57203eece84c5b823f (diff) | |
download | openbmc-27cb823db0943e8e1c2b977ce0f3a99f84e7ecf9.tar.xz |
meta-phosphor: Add post code support for multi host in meta-phosphor.
Added implementation to handle post codes from multiple host to BMC with
multi process approach. Each process handles post codes for corresponding host.
TESTED : Built the openbmc image targetting Facebook YosemiteV2 hardware.
Verified all the host's postcodes stored in corresponding host directories.
(From meta-phosphor rev: 57042e2fdb40b185721d7a8e9fc54d56d382b083)
Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Change-Id: I490558737b601fccb74da3b2dbef5e173343683f
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-phosphor/recipes-phosphor')
-rw-r--r-- | meta-phosphor/recipes-phosphor/state/phosphor-post-code-manager_git.bb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta-phosphor/recipes-phosphor/state/phosphor-post-code-manager_git.bb b/meta-phosphor/recipes-phosphor/state/phosphor-post-code-manager_git.bb index 9d08084d4..075e06c3c 100644 --- a/meta-phosphor/recipes-phosphor/state/phosphor-post-code-manager_git.bb +++ b/meta-phosphor/recipes-phosphor/state/phosphor-post-code-manager_git.bb @@ -15,10 +15,20 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" inherit cmake pkgconfig systemd -SYSTEMD_SERVICE_${PN} = "xyz.openbmc_project.State.Boot.PostCode.service" + +def get_service(d): + if(d.getVar('OBMC_HOST_INSTANCES') == '0'): + return "xyz.openbmc_project.State.Boot.PostCode.service" + else: + return " ".join(["xyz.openbmc_project.State.Boot.PostCode@{}.service".format(x) for x in d.getVar('OBMC_HOST_INSTANCES').split()]) + +SYSTEMD_SERVICE_${PN} = "${@get_service(d)}" DEPENDS += " \ sdbusplus \ phosphor-dbus-interfaces \ phosphor-logging \ " + +FILES_${PN} += "${systemd_system_unitdir}/xyz.openbmc_project.State.Boot.PostCode@.service" +FILES_${PN} += "${systemd_system_unitdir}/xyz.openbmc_project.State.Boot.PostCode.service" |