blob: c2e5760caf859d17f1068aa2c7281c0b27d0d85a [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 \
Ed Tanous4bdc6352021-12-20 16:09:03 -080011"
Andrew Geissler13bc9d92024-06-13 00:10:41 -050012SRCREV = "cc5b2affcbdff0770f3486174cf4de13b3eab17b"
Ed Tanous9936f862022-09-19 09:13:20 -070013PACKAGECONFIG ??= "ipmi-fru"
14PACKAGECONFIG[ipmi-fru] = "-Dfru-device=true, -Dfru-device=false, i2c-tools,"
Matt Spinler71475f32024-05-02 14:25:16 -050015PACKAGECONFIG[validate-json] = "-Dvalidate-json=true, \
16 -Dvalidate-json=false, \
17 ${PYTHON_PN}-jsonschema-native"
Ed Tanous9936f862022-09-19 09:13:20 -070018PV = "0.1+git${SRCPV}"
19
20SRC_URI = "git://github.com/openbmc/entity-manager.git;branch=master;protocol=https \
21 file://blocklist.json \
22 "
James Feist9ed709c2018-10-02 16:45:42 -070023
Brad Bishopd8b59672020-10-27 09:22:51 -040024S = "${WORKDIR}/git"
Ed Tanous9936f862022-09-19 09:13:20 -070025SYSTEMD_PACKAGES = "${PN} ${EXTRA_ENTITY_MANAGER_PACKAGES}"
26SYSTEMD_SERVICE:${PN} = "xyz.openbmc_project.EntityManager.service"
27SYSTEMD_SERVICE:fru-device = "xyz.openbmc_project.FruDevice.service"
Patrick Williams821f31d2022-10-13 09:55:07 -050028SYSTEMD_AUTO_ENABLE:fru-device:ibm-power-cpu = "disable"
Ed Tanous9936f862022-09-19 09:13:20 -070029
Ed Tanous4bdc6352021-12-20 16:09:03 -080030inherit pkgconfig meson systemd python3native
Brad Bishop6d17b7b2020-03-18 16:33:02 -040031
Brad Bishopc83dff02020-03-30 14:16:34 -040032EXTRA_OEMESON = "-Dtests=disabled"
Brad Bishopc1371fd2020-08-18 19:30:11 -040033EXTRA_ENTITY_MANAGER_PACKAGES = " \
34 ${@bb.utils.contains('PACKAGECONFIG', 'ipmi-fru', 'fru-device', '', d)} \
35 "
36
Patrick Williams12fc9392021-08-06 09:16:53 -050037do_install:append() {
Brad Bishopf55c8752020-08-18 19:06:53 -040038 install -D ${WORKDIR}/blocklist.json ${D}${datadir}/${BPN}/blacklist.json
39}
Brad Bishopc1371fd2020-08-18 19:30:11 -040040
Patrick Williams12fc9392021-08-06 09:16:53 -050041FILES:${PN} += " \
Brad Bishoped869752020-11-06 09:39:44 -050042 ${datadir}/dbus-1/system-services/xyz.openbmc_project.EntityManager.service \
43 "
Patrick Williams12fc9392021-08-06 09:16:53 -050044FILES:fru-device = "${bindir}/fru-device ${datadir}/${BPN}/blacklist.json"
Brad Bishopc1371fd2020-08-18 19:30:11 -040045
Ed Tanous9936f862022-09-19 09:13:20 -070046PACKAGE_BEFORE_PN = "${EXTRA_ENTITY_MANAGER_PACKAGES}"