James Feist | e8c0ec9 | 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 | c497f35 | 2020-08-18 19:06:53 -0400 | [diff] [blame] | 5 | SRC_URI = "git://github.com/openbmc/entity-manager.git file://blocklist.json" |
Andrew Geissler | c04571b | 2020-09-11 21:31:08 +0000 | [diff] [blame^] | 6 | SRCREV = "32d1f0a4560064b4c697e98db0037b93a41db4cc" |
James Feist | e8c0ec9 | 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 | e8c0ec9 | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 12 | DEPENDS = "boost \ |
James Feist | e8c0ec9 | 2018-10-02 16:45:42 -0700 | [diff] [blame] | 13 | nlohmann-json \ |
| 14 | sdbusplus \ |
| 15 | valijson" |
| 16 | |
| 17 | S = "${WORKDIR}/git/" |
Brad Bishop | c970890 | 2020-02-14 14:07:11 -0500 | [diff] [blame] | 18 | inherit meson systemd |
Brad Bishop | 6281b85 | 2020-03-18 16:33:02 -0400 | [diff] [blame] | 19 | |
Brad Bishop | 97d49ab | 2020-03-30 14:16:34 -0400 | [diff] [blame] | 20 | EXTRA_OEMESON = "-Dtests=disabled" |
| 21 | |
Brad Bishop | 4525a9d | 2020-08-18 19:30:11 -0400 | [diff] [blame] | 22 | PACKAGECONFIG ??= "ipmi-fru" |
Brad Bishop | 6281b85 | 2020-03-18 16:33:02 -0400 | [diff] [blame] | 23 | PACKAGECONFIG[ipmi-fru] = "-Dfru-device=true, -Dfru-device=false, i2c-tools," |
Brad Bishop | c497f35 | 2020-08-18 19:06:53 -0400 | [diff] [blame] | 24 | |
Brad Bishop | 4525a9d | 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 | c497f35 | 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 | 4525a9d | 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" |