diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2020-08-19 02:30:11 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-09-13 18:05:53 +0300 |
commit | c1371fdf473e2f24d44a36c7d8eb855eb917cd1f (patch) | |
tree | 3efcebce648222dcf05b1439808dd58cd2452f1b /meta-phosphor/recipes-phosphor | |
parent | f55c875c26a532fd8dbd8d737c45a4f55a4b919f (diff) | |
download | openbmc-c1371fdf473e2f24d44a36c7d8eb855eb917cd1f.tar.xz |
meta-phosphor: fru-device: add package
Add a fru-device package, packagegroup, and image feature.
Remove the ipmi-fru distro feature, since adding it in the first place
was a mistake - no projects have conditional ipmi-fru feature flags.
(From meta-phosphor rev: 4525a9d01a5f65438342a894f27c82f0dd61642c)
Change-Id: I6928ac67d4acb4568359a308b45cb0734d116054
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-phosphor/recipes-phosphor')
3 files changed, 21 insertions, 5 deletions
diff --git a/meta-phosphor/recipes-phosphor/configuration/entity-manager_git.bb b/meta-phosphor/recipes-phosphor/configuration/entity-manager_git.bb index 4162b2b58..a32966330 100644 --- a/meta-phosphor/recipes-phosphor/configuration/entity-manager_git.bb +++ b/meta-phosphor/recipes-phosphor/configuration/entity-manager_git.bb @@ -9,10 +9,6 @@ PV = "0.1+git${SRCPV}" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENCE;md5=a6a4edad4aed50f39a66d098d74b265b" -SYSTEMD_SERVICE_${PN} = "xyz.openbmc_project.EntityManager.service \ - ${@bb.utils.contains('DISTRO_FEATURES', 'ipmi-fru', 'xyz.openbmc_project.FruDevice.service', '', d)}" -SYSTEMD_AUTO_ENABLE_${PN}_ibm-power-cpu = "disable" - DEPENDS = "boost \ nlohmann-json \ sdbusplus \ @@ -23,9 +19,22 @@ inherit meson systemd EXTRA_OEMESON = "-Dtests=disabled" -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipmi-fru', d)}" +PACKAGECONFIG ??= "ipmi-fru" PACKAGECONFIG[ipmi-fru] = "-Dfru-device=true, -Dfru-device=false, i2c-tools," +EXTRA_ENTITY_MANAGER_PACKAGES = " \ + ${@bb.utils.contains('PACKAGECONFIG', 'ipmi-fru', 'fru-device', '', d)} \ + " + +PACKAGE_BEFORE_PN = "${EXTRA_ENTITY_MANAGER_PACKAGES}" + do_install_append() { install -D ${WORKDIR}/blocklist.json ${D}${datadir}/${BPN}/blacklist.json } + +FILES_fru-device = "${bindir}/fru-device ${datadir}/${BPN}/blacklist.json" + +SYSTEMD_PACKAGES = "${PN} ${EXTRA_ENTITY_MANAGER_PACKAGES}" +SYSTEMD_SERVICE_${PN} = "xyz.openbmc_project.EntityManager.service" +SYSTEMD_SERVICE_fru-device = "xyz.openbmc_project.FruDevice.service" +SYSTEMD_AUTO_ENABLE_fru-device_ibm-power-cpu = "disable" diff --git a/meta-phosphor/recipes-phosphor/images/obmc-phosphor-image.bb b/meta-phosphor/recipes-phosphor/images/obmc-phosphor-image.bb index ea87fb1f8..63908a145 100644 --- a/meta-phosphor/recipes-phosphor/images/obmc-phosphor-image.bb +++ b/meta-phosphor/recipes-phosphor/images/obmc-phosphor-image.bb @@ -15,6 +15,7 @@ IMAGE_FEATURES += " \ obmc-fan-control \ obmc-fan-mgmt \ obmc-flash-mgmt \ + obmc-fru-ipmi \ obmc-health-monitor \ obmc-host-ctl \ obmc-host-ipmi \ diff --git a/meta-phosphor/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bb b/meta-phosphor/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bb index 78949f7a4..e080ff635 100644 --- a/meta-phosphor/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bb +++ b/meta-phosphor/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bb @@ -13,6 +13,7 @@ PACKAGES = " \ ${PN}-extras \ ${PN}-devtools \ ${PN}-fan-control \ + ${PN}-fru-ipmi \ ${PN}-health-monitor \ ${PN}-host-state-mgmt \ ${PN}-ikvm \ @@ -83,6 +84,11 @@ RDEPENDS_${PN}-fan-control = " \ phosphor-fan-monitor \ " +SUMMARY_${PN}-fru-ipmi = "Support for EEPROMS with IPMI FRU" +RDEPENDS_${PN}-fru-ipmi = " \ + fru-device \ + " + SUMMARY_${PN}-health-monitor = "Support for health monitoring" RDEPENDS_${PN}-health-monitor = " \ phosphor-health-monitor \ |