James Feist | 9ed709c | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 1 | SUMMARY = "Entity Manager" |
| 2 | DESCRIPTION = "Entity Manager provides d-bus configuration data \ |
| 3 | and configures system sensors" |
| 4 | |
Brad Bishop | f55c875 | 2020-08-18 19:06:53 -0400 | [diff] [blame] | 5 | SRC_URI = "git://github.com/openbmc/entity-manager.git file://blocklist.json" |
Andrew Geissler | dc7e42e | 2021-10-16 18:50:54 +0000 | [diff] [blame^] | 6 | SRCREV = "32aa4dda124aeec491eb612acfa00d3ccf939d21" |
James Feist | 9ed709c | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 7 | PV = "0.1+git${SRCPV}" |
| 8 | |
| 9 | LICENSE = "Apache-2.0" |
| 10 | LIC_FILES_CHKSUM = "file://LICENCE;md5=a6a4edad4aed50f39a66d098d74b265b" |
| 11 | |
James Feist | 9ed709c | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 12 | DEPENDS = "boost \ |
Brad Bishop | ed86975 | 2020-11-06 09:39:44 -0500 | [diff] [blame] | 13 | dbus \ |
James Feist | 9ed709c | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 14 | nlohmann-json \ |
| 15 | sdbusplus \ |
| 16 | valijson" |
| 17 | |
Brad Bishop | d8b5967 | 2020-10-27 09:22:51 -0400 | [diff] [blame] | 18 | S = "${WORKDIR}/git" |
Brad Bishop | 7635611 | 2020-02-14 14:07:11 -0500 | [diff] [blame] | 19 | inherit meson systemd |
Brad Bishop | 6d17b7b | 2020-03-18 16:33:02 -0400 | [diff] [blame] | 20 | |
Brad Bishop | c83dff0 | 2020-03-30 14:16:34 -0400 | [diff] [blame] | 21 | EXTRA_OEMESON = "-Dtests=disabled" |
| 22 | |
Brad Bishop | c1371fd | 2020-08-18 19:30:11 -0400 | [diff] [blame] | 23 | PACKAGECONFIG ??= "ipmi-fru" |
Brad Bishop | 6d17b7b | 2020-03-18 16:33:02 -0400 | [diff] [blame] | 24 | PACKAGECONFIG[ipmi-fru] = "-Dfru-device=true, -Dfru-device=false, i2c-tools," |
Brad Bishop | f55c875 | 2020-08-18 19:06:53 -0400 | [diff] [blame] | 25 | |
Brad Bishop | c1371fd | 2020-08-18 19:30:11 -0400 | [diff] [blame] | 26 | EXTRA_ENTITY_MANAGER_PACKAGES = " \ |
| 27 | ${@bb.utils.contains('PACKAGECONFIG', 'ipmi-fru', 'fru-device', '', d)} \ |
| 28 | " |
| 29 | |
| 30 | PACKAGE_BEFORE_PN = "${EXTRA_ENTITY_MANAGER_PACKAGES}" |
| 31 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 32 | do_install:append() { |
Brad Bishop | f55c875 | 2020-08-18 19:06:53 -0400 | [diff] [blame] | 33 | install -D ${WORKDIR}/blocklist.json ${D}${datadir}/${BPN}/blacklist.json |
| 34 | } |
Brad Bishop | c1371fd | 2020-08-18 19:30:11 -0400 | [diff] [blame] | 35 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 36 | FILES:${PN} += " \ |
Brad Bishop | ed86975 | 2020-11-06 09:39:44 -0500 | [diff] [blame] | 37 | ${datadir}/dbus-1/system-services/xyz.openbmc_project.EntityManager.service \ |
| 38 | " |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 39 | FILES:fru-device = "${bindir}/fru-device ${datadir}/${BPN}/blacklist.json" |
Brad Bishop | c1371fd | 2020-08-18 19:30:11 -0400 | [diff] [blame] | 40 | |
| 41 | SYSTEMD_PACKAGES = "${PN} ${EXTRA_ENTITY_MANAGER_PACKAGES}" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 42 | SYSTEMD_SERVICE:${PN} = "xyz.openbmc_project.EntityManager.service" |
| 43 | SYSTEMD_SERVICE:fru-device = "xyz.openbmc_project.FruDevice.service" |
| 44 | SYSTEMD_AUTO_ENABLE:fru-device_ibm-power-cpu = "disable" |