Attention is currently required from: Ricardo Quesada, Paul Menzel. Hello build bot (Jenkins), Tim Wawrzynczak, Jack Rosenthal,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/56406
to look at the new patch set (#6).
Change subject: util/elogtool: add tool to print elog events ......................................................................
util/elogtool: add tool to print elog events
Add a new tool that that prints elog events. The tool, as input, accepts either a file with the RW_ELOG contents, or if the file is not provided it reads the contents of RW_ELOG by calling the "flashrom" tool.
The tool is based on "mosys eventlog list"[1]. For the moment it only supports "list", but future commits will add additional functionality.
This commit also adds missing ELOG defines needed for the tool. These defines are added with the rest of the ELOG defines, in include/commonlib/bsd/elog.h
The tool is placed inside util/cbfstool. The rationale behind the decision, is that this tool shares a lot in common with the other tools located in cbfstool: vboot dependency, shared files like common.o and valstr.o, and in spirit is similar to some of the tools located in cbfstool/.
As an example, you call the tool like the following:
$ elogtool list -f rw_elog_dump.bin
[1]: https://chromium.googlesource.com/chromiumos/platform/mosys/+/refs/heads/mai...
BUG=b:172210863
Signed-off-by: Ricardo Quesada ricardoq@google.com Change-Id: Ia1fe1c9ed3c4c6bda846055d4b10943b54463935 --- M src/commonlib/bsd/elog.c M src/commonlib/bsd/include/commonlib/bsd/elog.h M util/cbfstool/Makefile M util/cbfstool/Makefile.inc A util/cbfstool/elogtool.c A util/cbfstool/eventlog.c A util/cbfstool/eventlog.h 7 files changed, 924 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/56406/6