commit | 5ac5a2f4881c83d453fa517f8f1ebe49593939a3 | [log] [tgz] |
---|---|---|
author | Gunnar Mills <gmills@us.ibm.com> | Tue Jan 04 12:26:41 2022 -0600 |
committer | Gunnar Mills <gmills@us.ibm.com> | Tue Jan 04 21:06:15 2022 +0000 |
tree | d28273ca44b0a0dad1bcc1c287e99d2569fc65ec | |
parent | 91359f9d36f16e5d887a40227d2b0af17da618e4 [diff] |
Bump Chassis schema to fix error https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/48719 added support for the Chassis SparePartNumber. SparePartNumber was added to the Chassis schema in v1_16_0 so need to bump the Chassis schema. Bumped to v1_16_0 instead of the latest (v1_18_0) due to old guidance from Redfish "only bump the schema if you need to". I.e. only bump if using some property, etc in the schema. bmcweb has followed this. The validator flags this as: ERROR - SparePartNumber not defined in schema Chassis.v1_14_0 (check version, spelling and casing) From https://redfish.dmtf.org/schemas/v1/Chassis.v1_18_0.json: "SparePartNumber": { "description": "The spare part number of the chassis.", ... "versionAdded": "v1_16_0" }, Tested: None yet. WIP. Change-Id: I31d0bd388c4d9c787276de7b1be3fc95586e8bd2 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D
flags that correspond to options in bmcweb/meson_options.txt
and then compiling. For example, meson <builddir> -Dkvm=disabled ...
followed by ninja
in build directory. The option names become C++ preprocessor symbols that control which code is compiled into the program.
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C buildir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in bmcweb/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja coverage -C builddir test
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server. The keys are generated by the secp384r1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.