blob: ef005610cb4ceec798a2564bf249aa5ef50f90fe [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 \
Andrew Geisslerbd1f7d82024-08-29 20:50:29 -05009 phosphor-logging \
James Feist9ed709c2018-10-02 16:45:42 -070010 sdbusplus \
Ed Tanous4bdc6352021-12-20 16:09:03 -080011 valijson \
Ed Tanous4bdc6352021-12-20 16:09:03 -080012"
Andrew Geissler446da2f2024-09-08 20:50:54 -050013SRCREV = "1f9b27f3027634ffd960b8468fbeb99ba800849b"
Ed Tanous9936f862022-09-19 09:13:20 -070014PACKAGECONFIG ??= "ipmi-fru"
15PACKAGECONFIG[ipmi-fru] = "-Dfru-device=true, -Dfru-device=false, i2c-tools,"
Matt Spinler71475f32024-05-02 14:25:16 -050016PACKAGECONFIG[validate-json] = "-Dvalidate-json=true, \
17 -Dvalidate-json=false, \
18 ${PYTHON_PN}-jsonschema-native"
Ed Tanous9936f862022-09-19 09:13:20 -070019PV = "0.1+git${SRCPV}"
20
21SRC_URI = "git://github.com/openbmc/entity-manager.git;branch=master;protocol=https \
22 file://blocklist.json \
23 "
James Feist9ed709c2018-10-02 16:45:42 -070024
Brad Bishopd8b59672020-10-27 09:22:51 -040025S = "${WORKDIR}/git"
Ed Tanous9936f862022-09-19 09:13:20 -070026SYSTEMD_PACKAGES = "${PN} ${EXTRA_ENTITY_MANAGER_PACKAGES}"
27SYSTEMD_SERVICE:${PN} = "xyz.openbmc_project.EntityManager.service"
28SYSTEMD_SERVICE:fru-device = "xyz.openbmc_project.FruDevice.service"
Patrick Williams821f31d2022-10-13 09:55:07 -050029SYSTEMD_AUTO_ENABLE:fru-device:ibm-power-cpu = "disable"
Ed Tanous9936f862022-09-19 09:13:20 -070030
Ed Tanous4bdc6352021-12-20 16:09:03 -080031inherit pkgconfig meson systemd python3native
Brad Bishop6d17b7b2020-03-18 16:33:02 -040032
Brad Bishopc83dff02020-03-30 14:16:34 -040033EXTRA_OEMESON = "-Dtests=disabled"
Brad Bishopc1371fd2020-08-18 19:30:11 -040034EXTRA_ENTITY_MANAGER_PACKAGES = " \
35 ${@bb.utils.contains('PACKAGECONFIG', 'ipmi-fru', 'fru-device', '', d)} \
36 "
37
Patrick Williams12fc9392021-08-06 09:16:53 -050038do_install:append() {
Brad Bishopf55c8752020-08-18 19:06:53 -040039 install -D ${WORKDIR}/blocklist.json ${D}${datadir}/${BPN}/blacklist.json
40}
Brad Bishopc1371fd2020-08-18 19:30:11 -040041
Patrick Williams12fc9392021-08-06 09:16:53 -050042FILES:${PN} += " \
Brad Bishoped869752020-11-06 09:39:44 -050043 ${datadir}/dbus-1/system-services/xyz.openbmc_project.EntityManager.service \
44 "
Patrick Williams12fc9392021-08-06 09:16:53 -050045FILES:fru-device = "${bindir}/fru-device ${datadir}/${BPN}/blacklist.json"
Brad Bishopc1371fd2020-08-18 19:30:11 -040046
Ed Tanous9936f862022-09-19 09:13:20 -070047PACKAGE_BEFORE_PN = "${EXTRA_ENTITY_MANAGER_PACKAGES}"