blob: be113ce307e669e01ff267af8e4e24711a2a0369 [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"
4
Brad Bishopf55c8752020-08-18 19:06:53 -04005SRC_URI = "git://github.com/openbmc/entity-manager.git file://blocklist.json"
Andrew Geissler43e02422022-01-18 06:40:07 +00006SRCREV = "0177ea4f63e3640d86dcf12315aa8d3919482605"
James Feist9ed709c2018-10-02 16:45:42 -07007PV = "0.1+git${SRCPV}"
8
9LICENSE = "Apache-2.0"
10LIC_FILES_CHKSUM = "file://LICENCE;md5=a6a4edad4aed50f39a66d098d74b265b"
11
James Feist9ed709c2018-10-02 16:45:42 -070012DEPENDS = "boost \
Brad Bishoped869752020-11-06 09:39:44 -050013 dbus \
James Feist9ed709c2018-10-02 16:45:42 -070014 nlohmann-json \
15 sdbusplus \
Ed Tanous4bdc6352021-12-20 16:09:03 -080016 valijson \
17 ${PYTHON_PN}-jsonschema-native \
18"
James Feist9ed709c2018-10-02 16:45:42 -070019
Brad Bishopd8b59672020-10-27 09:22:51 -040020S = "${WORKDIR}/git"
Ed Tanous4bdc6352021-12-20 16:09:03 -080021inherit pkgconfig meson systemd python3native
Brad Bishop6d17b7b2020-03-18 16:33:02 -040022
Brad Bishopc83dff02020-03-30 14:16:34 -040023EXTRA_OEMESON = "-Dtests=disabled"
24
Brad Bishopc1371fd2020-08-18 19:30:11 -040025PACKAGECONFIG ??= "ipmi-fru"
Brad Bishop6d17b7b2020-03-18 16:33:02 -040026PACKAGECONFIG[ipmi-fru] = "-Dfru-device=true, -Dfru-device=false, i2c-tools,"
Brad Bishopf55c8752020-08-18 19:06:53 -040027
Brad Bishopc1371fd2020-08-18 19:30:11 -040028EXTRA_ENTITY_MANAGER_PACKAGES = " \
29 ${@bb.utils.contains('PACKAGECONFIG', 'ipmi-fru', 'fru-device', '', d)} \
30 "
31
32PACKAGE_BEFORE_PN = "${EXTRA_ENTITY_MANAGER_PACKAGES}"
33
Patrick Williams12fc9392021-08-06 09:16:53 -050034do_install:append() {
Brad Bishopf55c8752020-08-18 19:06:53 -040035 install -D ${WORKDIR}/blocklist.json ${D}${datadir}/${BPN}/blacklist.json
36}
Brad Bishopc1371fd2020-08-18 19:30:11 -040037
Patrick Williams12fc9392021-08-06 09:16:53 -050038FILES:${PN} += " \
Brad Bishoped869752020-11-06 09:39:44 -050039 ${datadir}/dbus-1/system-services/xyz.openbmc_project.EntityManager.service \
40 "
Patrick Williams12fc9392021-08-06 09:16:53 -050041FILES:fru-device = "${bindir}/fru-device ${datadir}/${BPN}/blacklist.json"
Brad Bishopc1371fd2020-08-18 19:30:11 -040042
43SYSTEMD_PACKAGES = "${PN} ${EXTRA_ENTITY_MANAGER_PACKAGES}"
Patrick Williams12fc9392021-08-06 09:16:53 -050044SYSTEMD_SERVICE:${PN} = "xyz.openbmc_project.EntityManager.service"
45SYSTEMD_SERVICE:fru-device = "xyz.openbmc_project.FruDevice.service"
46SYSTEMD_AUTO_ENABLE:fru-device_ibm-power-cpu = "disable"