From cb3bd90ac6c9c97c9ef87287b82caa53cbbd8209 Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Fri, 30 Apr 2021 10:54:48 -0500 Subject: phosphor-power: Only build monitor when told to The 'monitor' package provides a power supply monitor application that uses an org.open_power phosphor-dbus-interface that is only used on a subset of the OpenPower systems. So that non OpenPower systems can use phosphor-power and not need to include the org.open_power D-Bus interfaces, add a packageconfig option for this application to turn off its compilation. It will then only be enabled for certain machines. Fixes openbmc/phosphor-power#6 Tested: Built Witherspoon, application still built and installed. Built Rainier, application not built. Signed-off-by: Matt Spinler Change-Id: Ib7fca16217d93b7d021ba8fb6659e9ddca17d1d9 --- meta-ibm/recipes-phosphor/power/phosphor-power_%.bbappend | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta-ibm') diff --git a/meta-ibm/recipes-phosphor/power/phosphor-power_%.bbappend b/meta-ibm/recipes-phosphor/power/phosphor-power_%.bbappend index c8084b39e..c2f5b2cc5 100644 --- a/meta-ibm/recipes-phosphor/power/phosphor-power_%.bbappend +++ b/meta-ibm/recipes-phosphor/power/phosphor-power_%.bbappend @@ -11,6 +11,10 @@ EXTRA_OEMESON_append_mihawk = " -Dpower_sequencer=mihawk-cpld" DEPENDS_append_ibm-ac-server = " power-sequencer" DEPENDS_append_p10bmc = " power-sequencer" +PACKAGECONFIG_append_ibm-ac-server = " monitor" +PACKAGECONFIG_append_swift = " monitor" +PACKAGECONFIG_append_mihawk = " monitor" + do_install_append(){ install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json } -- cgit v1.2.3