commit | 2b20ef6ee2a8ca656aaa49b181d9205e30ede451 | [log] [tgz] |
---|---|---|
author | Jason M. Bills <jason.m.bills@intel.com> | Thu Jan 06 15:48:07 2022 -0800 |
committer | Ed Tanous <ed@tanous.net> | Mon Feb 28 17:54:44 2022 +0000 |
tree | b9924f7bdaba3b5d5a3c04efabebe2b56e7ec4f4 | |
parent | ace85d606dca3e9b6c1dbe1c7ee9a685be169ed6 [diff] |
Clean up Crashdump log entry creation To avoid passing references to bad memory locations, we had to pre-build the array with empty entries so we could pass a reference to the array index without it changing later. This changes so the code that fills the log entry object checks if it's filling a single entry or an array entry and expands the array at that time. This simplifies filling the "Members" array in the Crashdump entry collection and avoids sending references to an array index. Tested: Confirmed that Crashdump LogEntries are correctly filled in the "Members" array of the collection and in the individual LogEntry. Change-Id: I4484e248b6d72fadbaedcbb27840cd46cfe3b323 Signed-off-by: Jason M. Bills <jason.m.bills@intel.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.