commit | 0cd5f786f5e8bcf5facb88d542bad3f7332da586 | [log] [tgz] |
---|---|---|
author | Ed Tanous <edtanous@google.com> | Tue Apr 26 16:09:09 2022 -0700 |
committer | Ed Tanous <ed@tanous.net> | Wed May 04 15:35:28 2022 +0000 |
tree | 80abe5420b65f3ddfea0833498cadd1cc7c01666 | |
parent | f12b57b27157418bbc2c1bf96f1d1cd9db52739b [diff] |
Fix whitespacing on meson_options.txt The meson_options.txt file is difficult to read and maintain because it has inconsistent whitespace, lines that are far longer than fit on a single monitor, and inline strings that are inconsistent. This commit fixes those, moving the syntax to use newlines for each option method key value, no space on the key colon, and wraps description strings using mesons multi-line syntax on 80 character boundaries. Doing this should make this file more maintainable in the future, and helps people to review, and read it better than previously. The intent is that this patchset has no functional changes, only whitespace and non-enforcing string manipulation, with one exception. Anywhere we noted a redfish path, we used escaped single quotes. Multiline strings in meson don't support escaping, so in lieu of worse alternatives, the quoting was removed, which inline with this patch, continues to improve the readability of the file. Tested: Code builds. No functional changes. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I04f3e31e364bcd3d4b09a219afff21a8eaabc463
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 -C builddir test ninja -C builddir coverage
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.