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" |
James Feist | 9ed709c | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://LICENCE;md5=a6a4edad4aed50f39a66d098d74b265b" |
James Feist | 9ed709c | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 6 | DEPENDS = "boost \ |
Brad Bishop | ed86975 | 2020-11-06 09:39:44 -0500 | [diff] [blame] | 7 | dbus \ |
James Feist | 9ed709c | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 8 | nlohmann-json \ |
| 9 | sdbusplus \ |
Ed Tanous | 4bdc635 | 2021-12-20 16:09:03 -0800 | [diff] [blame] | 10 | valijson \ |
| 11 | ${PYTHON_PN}-jsonschema-native \ |
| 12 | " |
Andrew Geissler | 8da6c96 | 2022-09-22 15:10:52 -0500 | [diff] [blame] | 13 | SRCREV = "1f77d9c8e6cbc94bebac58e95aa23c0d78f20617" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 14 | PACKAGECONFIG ??= "ipmi-fru" |
| 15 | PACKAGECONFIG[ipmi-fru] = "-Dfru-device=true, -Dfru-device=false, i2c-tools," |
| 16 | PV = "0.1+git${SRCPV}" |
| 17 | |
| 18 | SRC_URI = "git://github.com/openbmc/entity-manager.git;branch=master;protocol=https \ |
| 19 | file://blocklist.json \ |
| 20 | " |
James Feist | 9ed709c | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 21 | |
Brad Bishop | d8b5967 | 2020-10-27 09:22:51 -0400 | [diff] [blame] | 22 | S = "${WORKDIR}/git" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 23 | SYSTEMD_PACKAGES = "${PN} ${EXTRA_ENTITY_MANAGER_PACKAGES}" |
| 24 | SYSTEMD_SERVICE:${PN} = "xyz.openbmc_project.EntityManager.service" |
| 25 | SYSTEMD_SERVICE:fru-device = "xyz.openbmc_project.FruDevice.service" |
| 26 | SYSTEMD_AUTO_ENABLE:fru-device_ibm-power-cpu = "disable" |
| 27 | |
Ed Tanous | 4bdc635 | 2021-12-20 16:09:03 -0800 | [diff] [blame] | 28 | inherit pkgconfig meson systemd python3native |
Brad Bishop | 6d17b7b | 2020-03-18 16:33:02 -0400 | [diff] [blame] | 29 | |
Brad Bishop | c83dff0 | 2020-03-30 14:16:34 -0400 | [diff] [blame] | 30 | EXTRA_OEMESON = "-Dtests=disabled" |
Brad Bishop | c1371fd | 2020-08-18 19:30:11 -0400 | [diff] [blame] | 31 | EXTRA_ENTITY_MANAGER_PACKAGES = " \ |
| 32 | ${@bb.utils.contains('PACKAGECONFIG', 'ipmi-fru', 'fru-device', '', d)} \ |
| 33 | " |
| 34 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 35 | do_install:append() { |
Brad Bishop | f55c875 | 2020-08-18 19:06:53 -0400 | [diff] [blame] | 36 | install -D ${WORKDIR}/blocklist.json ${D}${datadir}/${BPN}/blacklist.json |
| 37 | } |
Brad Bishop | c1371fd | 2020-08-18 19:30:11 -0400 | [diff] [blame] | 38 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 39 | FILES:${PN} += " \ |
Brad Bishop | ed86975 | 2020-11-06 09:39:44 -0500 | [diff] [blame] | 40 | ${datadir}/dbus-1/system-services/xyz.openbmc_project.EntityManager.service \ |
| 41 | " |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 42 | FILES:fru-device = "${bindir}/fru-device ${datadir}/${BPN}/blacklist.json" |
Brad Bishop | c1371fd | 2020-08-18 19:30:11 -0400 | [diff] [blame] | 43 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 44 | PACKAGE_BEFORE_PN = "${EXTRA_ENTITY_MANAGER_PACKAGES}" |