diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2019-03-26 21:07:26 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-03-27 18:11:21 +0300 |
commit | a2fb177b40a0adb20b2c457011a115637136e133 (patch) | |
tree | 65a6407ec615c93d5f2a12446c789760c54ddcfe | |
parent | baafc6d8fe15b269fc921ca474d2357986faf11e (diff) | |
download | openbmc-a2fb177b40a0adb20b2c457011a115637136e133.tar.xz |
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 <gmills@us.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r-- | meta-openpower/recipes-phosphor/bmcweb/bmcweb_%.bbappend | 6 |
1 files changed, 6 insertions, 0 deletions
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" |