James Feist | 9ed709c | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 1 | SUMMARY = "Entity Manager" |
| 2 | DESCRIPTION = "Entity Manager provides d-bus configuration data \ |
| 3 | and configures system sensors" |
| 4 | |
Brad Bishop | f55c875 | 2020-08-18 19:06:53 -0400 | [diff] [blame] | 5 | SRC_URI = "git://github.com/openbmc/entity-manager.git file://blocklist.json" |
Andrew Geissler | b349473 | 2020-09-29 04:41:15 +0000 | [diff] [blame] | 6 | SRCREV = "d7b6659944c3527622d454526509a0a8697ada0f" |
James Feist | 9ed709c | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 7 | PV = "0.1+git${SRCPV}" |
| 8 | |
| 9 | LICENSE = "Apache-2.0" |
| 10 | LIC_FILES_CHKSUM = "file://LICENCE;md5=a6a4edad4aed50f39a66d098d74b265b" |
| 11 | |
James Feist | 9ed709c | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 12 | DEPENDS = "boost \ |
James Feist | 9ed709c | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 13 | nlohmann-json \ |
| 14 | sdbusplus \ |
| 15 | valijson" |
| 16 | |
| 17 | S = "${WORKDIR}/git/" |
Brad Bishop | 7635611 | 2020-02-14 14:07:11 -0500 | [diff] [blame] | 18 | inherit meson systemd |
Brad Bishop | 6d17b7b | 2020-03-18 16:33:02 -0400 | [diff] [blame] | 19 | |
Brad Bishop | c83dff0 | 2020-03-30 14:16:34 -0400 | [diff] [blame] | 20 | EXTRA_OEMESON = "-Dtests=disabled" |
| 21 | |
Brad Bishop | c1371fd | 2020-08-18 19:30:11 -0400 | [diff] [blame] | 22 | PACKAGECONFIG ??= "ipmi-fru" |
Brad Bishop | 6d17b7b | 2020-03-18 16:33:02 -0400 | [diff] [blame] | 23 | PACKAGECONFIG[ipmi-fru] = "-Dfru-device=true, -Dfru-device=false, i2c-tools," |
Brad Bishop | f55c875 | 2020-08-18 19:06:53 -0400 | [diff] [blame] | 24 | |
Brad Bishop | c1371fd | 2020-08-18 19:30:11 -0400 | [diff] [blame] | 25 | EXTRA_ENTITY_MANAGER_PACKAGES = " \ |
| 26 | ${@bb.utils.contains('PACKAGECONFIG', 'ipmi-fru', 'fru-device', '', d)} \ |
| 27 | " |
| 28 | |
| 29 | PACKAGE_BEFORE_PN = "${EXTRA_ENTITY_MANAGER_PACKAGES}" |
| 30 | |
Brad Bishop | f55c875 | 2020-08-18 19:06:53 -0400 | [diff] [blame] | 31 | do_install_append() { |
| 32 | install -D ${WORKDIR}/blocklist.json ${D}${datadir}/${BPN}/blacklist.json |
| 33 | } |
Brad Bishop | c1371fd | 2020-08-18 19:30:11 -0400 | [diff] [blame] | 34 | |
| 35 | FILES_fru-device = "${bindir}/fru-device ${datadir}/${BPN}/blacklist.json" |
| 36 | |
| 37 | SYSTEMD_PACKAGES = "${PN} ${EXTRA_ENTITY_MANAGER_PACKAGES}" |
| 38 | SYSTEMD_SERVICE_${PN} = "xyz.openbmc_project.EntityManager.service" |
| 39 | SYSTEMD_SERVICE_fru-device = "xyz.openbmc_project.FruDevice.service" |
| 40 | SYSTEMD_AUTO_ENABLE_fru-device_ibm-power-cpu = "disable" |