From a2fb177b40a0adb20b2c457011a115637136e133 Mon Sep 17 00:00:00 2001 From: Gunnar Mills Date: Tue, 26 Mar 2019 13:07:26 -0500 Subject: Enable BMCWEB_ENABLE_REDFISH_ONE_CHASSIS Pass the DBMCWEB_ENABLE_REDFISH_ONE_CHASSIS option to bmcweb for openpower systems. All openpower systems currently only have a single chassis and no immediate plans to have a multiple chassis system. When this build option is set, bmcweb will return a single redfish chassis named "chassis" which will include all sensors. This is a short-term solution to solve associating sensors to a chassis. Long term, inventory-manager needs to be enhanced to allow sensors to link to a chassis, or the rest of the project needs to move to EntityManager. See https://gerrit.openbmc-project.xyz/#/c/openbmc/bmcweb/+/17563/ Tested: Build an image with this change, loaded on a Witherspoon, and see "/redfish/v1/Chassis/chassis" and no errors in the Thermal and Power objects. (From meta-openpower rev: 211da9583b1124dccbf3ab3e701245745affcd22) Change-Id: I97e78c3ab7d7a755bacbe63af252c033875d880b Signed-off-by: Gunnar Mills Signed-off-by: Brad Bishop --- meta-openpower/recipes-phosphor/bmcweb/bmcweb_%.bbappend | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 meta-openpower/recipes-phosphor/bmcweb/bmcweb_%.bbappend (limited to 'meta-openpower/recipes-phosphor') diff --git a/meta-openpower/recipes-phosphor/bmcweb/bmcweb_%.bbappend b/meta-openpower/recipes-phosphor/bmcweb/bmcweb_%.bbappend new file mode 100644 index 000000000..ff01b0d5a --- /dev/null +++ b/meta-openpower/recipes-phosphor/bmcweb/bmcweb_%.bbappend @@ -0,0 +1,6 @@ +SUMMARY = "Modifications to support phosphor-inventory-manager" + +# No way to link sensors to a chassis for Redfish in phosphor-inventory-manager. +# Assume just one chassis via BMCWEB_ENABLE_REDFISH_ONE_CHASSIS option. All +# IBM systems currently have a single chassis. This is a short-term solution. +EXTRA_OECMAKE += "-DBMCWEB_ENABLE_REDFISH_ONE_CHASSIS=ON" -- cgit v1.2.3