blob: 654c03880f35d36c831db64ee9dab74fe1859119 [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 Geissler068a7fc2022-10-20 15:31:05 -050013SRCREV = "4f54a0b862821bb30af6836258e0e748dd4d6ddc"
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"
Patrick Williams821f31d2022-10-13 09:55:07 -050026SYSTEMD_AUTO_ENABLE:fru-device:ibm-power-cpu = "disable"
Ed Tanous9936f862022-09-19 09:13:20 -070027
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}"