commit | 3d2b2c0bdcb184fcbb10665980e2bb61ab6be1f7 | [log] [tgz] |
---|---|---|
author | Igor Kononenko <i.kononenko@yadro.com> | Fri Aug 28 17:49:16 2020 +0300 |
committer | Igor Kononenko <i.kononenko@yadro.com> | Tue Sep 08 18:31:45 2020 +0000 |
tree | ed0523421b560d173b53c3456b2e7dfb492917e4 | |
parent | b23bb04dcfba91eec3cf8fb6ae840f0bc905f698 [diff] |
bmcweb: cmake: add advanced logs build option Add cmake option to enable output of extended debug logs, separate from DEBUG build. Time to time when testing `bmcweb` it is required to output logs with extended debug information. Cmake currently allows this option to be enabled with build of the debug symbols. Sometimes this behavior will be overhad and this is unwanted to be extra size of `bmcweb` binary (and disabling the code optimization). With add of the `BMCWEB_ENABLE_LOGGING` option, the bmcweb allows to separate the extended logging from the debug build type. End-user-impact: None Change-Id: I0d42c8373aa6f343117b68390172dce2f0db64a0 Signed-off-by: Igor Kononenko <i.kononenko@yadro.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/CMakeLists.txt
and then compiling. For example, cmake -DBMCWEB_ENABLE_KVM=NO ...
followed by make
. The option names become C++ preprocessor symbols that control which code is compiled into the program.
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.