Vijay Khemka | 4809bd1 | 2019-12-16 17:48:02 -0800 | [diff] [blame] | 1 | SUMMARY = "Phosphor post code manager" |
| 2 | DESCRIPTION = "Phosphor post Code Manager monitors post code posted on dbus \ |
| 3 | interface /xyz/openbmc_project/state/boot/raw by snoopd daemon and save them \ |
| 4 | in a file under /var/lib for history." |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" |
Andrew Geissler | 83e5399 | 2022-12-13 13:20:25 -0600 | [diff] [blame] | 7 | SRCREV = "8290e0f3297a2c5cbaa8d872d5cf8e19166ca177" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 8 | PV = "1.0+git${SRCPV}" |
Vijay Khemka | 4809bd1 | 2019-12-16 17:48:02 -0800 | [diff] [blame] | 9 | |
Patrick Williams | bb99d22 | 2022-01-24 15:55:09 -0600 | [diff] [blame] | 10 | SRC_URI = "git://github.com/openbmc/phosphor-post-code-manager.git;branch=master;protocol=https" |
Vijay Khemka | 4809bd1 | 2019-12-16 17:48:02 -0800 | [diff] [blame] | 11 | |
| 12 | S = "${WORKDIR}/git" |
| 13 | |
Manojkiran Eda | ad8a30c | 2021-12-12 15:44:38 +0530 | [diff] [blame] | 14 | inherit meson pkgconfig systemd |
Vijay Khemka | 4809bd1 | 2019-12-16 17:48:02 -0800 | [diff] [blame] | 15 | |
Kumar Thangavel | 27cb823 | 2020-09-01 23:05:19 +0530 | [diff] [blame] | 16 | def get_service(d): |
Manojkiran Eda | ad8a30c | 2021-12-12 15:44:38 +0530 | [diff] [blame] | 17 | service_list = "xyz.openbmc_project.State.Boot.PostCode.service xyz.openbmc_project.State.Boot.PostCode@.service " |
Kumar Thangavel | 27cb823 | 2020-09-01 23:05:19 +0530 | [diff] [blame] | 18 | if(d.getVar('OBMC_HOST_INSTANCES') == '0'): |
Manojkiran Eda | ad8a30c | 2021-12-12 15:44:38 +0530 | [diff] [blame] | 19 | return service_list |
Kumar Thangavel | 27cb823 | 2020-09-01 23:05:19 +0530 | [diff] [blame] | 20 | else: |
Manojkiran Eda | ad8a30c | 2021-12-12 15:44:38 +0530 | [diff] [blame] | 21 | return service_list+" ".join(["xyz.openbmc_project.State.Boot.PostCode@{}.service".format(x) for x in d.getVar('OBMC_HOST_INSTANCES').split()]) |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 22 | SYSTEMD_SERVICE:${PN} = "${@get_service(d)}" |
Vijay Khemka | 4809bd1 | 2019-12-16 17:48:02 -0800 | [diff] [blame] | 23 | DEPENDS += " \ |
| 24 | sdbusplus \ |
| 25 | phosphor-dbus-interfaces \ |
| 26 | phosphor-logging \ |
Manojkiran Eda | ad8a30c | 2021-12-12 15:44:38 +0530 | [diff] [blame] | 27 | libcereal \ |
Vijay Khemka | 4809bd1 | 2019-12-16 17:48:02 -0800 | [diff] [blame] | 28 | " |