blob: 40522439a58513bbbb14dae9c1df650486690754 [file] [log] [blame]
James Feist9ed709c2018-10-02 16:45:42 -07001SUMMARY = "Entity Manager"
2DESCRIPTION = "Entity Manager provides d-bus configuration data \
3and configures system sensors"
James Feist9ed709c2018-10-02 16:45:42 -07004LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENCE;md5=a6a4edad4aed50f39a66d098d74b265b"
James Feist9ed709c2018-10-02 16:45:42 -07006DEPENDS = "boost \
Brad Bishoped869752020-11-06 09:39:44 -05007 dbus \
James Feist9ed709c2018-10-02 16:45:42 -07008 nlohmann-json \
9 sdbusplus \
Ed Tanous4bdc6352021-12-20 16:09:03 -080010 valijson \
11 ${PYTHON_PN}-jsonschema-native \
12"
Andrew Geissler8da6c962022-09-22 15:10:52 -050013SRCREV = "1f77d9c8e6cbc94bebac58e95aa23c0d78f20617"
Ed Tanous9936f862022-09-19 09:13:20 -070014PACKAGECONFIG ??= "ipmi-fru"
15PACKAGECONFIG[ipmi-fru] = "-Dfru-device=true, -Dfru-device=false, i2c-tools,"
16PV = "0.1+git${SRCPV}"
17
18SRC_URI = "git://github.com/openbmc/entity-manager.git;branch=master;protocol=https \
19 file://blocklist.json \
20 "
James Feist9ed709c2018-10-02 16:45:42 -070021
Brad Bishopd8b59672020-10-27 09:22:51 -040022S = "${WORKDIR}/git"
Ed Tanous9936f862022-09-19 09:13:20 -070023SYSTEMD_PACKAGES = "${PN} ${EXTRA_ENTITY_MANAGER_PACKAGES}"
24SYSTEMD_SERVICE:${PN} = "xyz.openbmc_project.EntityManager.service"
25SYSTEMD_SERVICE:fru-device = "xyz.openbmc_project.FruDevice.service"
26SYSTEMD_AUTO_ENABLE:fru-device_ibm-power-cpu = "disable"
27
Ed Tanous4bdc6352021-12-20 16:09:03 -080028inherit pkgconfig meson systemd python3native
Brad Bishop6d17b7b2020-03-18 16:33:02 -040029
Brad Bishopc83dff02020-03-30 14:16:34 -040030EXTRA_OEMESON = "-Dtests=disabled"
Brad Bishopc1371fd2020-08-18 19:30:11 -040031EXTRA_ENTITY_MANAGER_PACKAGES = " \
32 ${@bb.utils.contains('PACKAGECONFIG', 'ipmi-fru', 'fru-device', '', d)} \
33 "
34
Patrick Williams12fc9392021-08-06 09:16:53 -050035do_install:append() {
Brad Bishopf55c8752020-08-18 19:06:53 -040036 install -D ${WORKDIR}/blocklist.json ${D}${datadir}/${BPN}/blacklist.json
37}
Brad Bishopc1371fd2020-08-18 19:30:11 -040038
Patrick Williams12fc9392021-08-06 09:16:53 -050039FILES:${PN} += " \
Brad Bishoped869752020-11-06 09:39:44 -050040 ${datadir}/dbus-1/system-services/xyz.openbmc_project.EntityManager.service \
41 "
Patrick Williams12fc9392021-08-06 09:16:53 -050042FILES:fru-device = "${bindir}/fru-device ${datadir}/${BPN}/blacklist.json"
Brad Bishopc1371fd2020-08-18 19:30:11 -040043
Ed Tanous9936f862022-09-19 09:13:20 -070044PACKAGE_BEFORE_PN = "${EXTRA_ENTITY_MANAGER_PACKAGES}"