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