this is a standalone way to build elogtool
the source code is from MrChromebox's coreboot fork on branch MrChromebox-2509
the source code is also modified so that whenever elogtool clear is called, the LOG_CLEAR event is not added to the firmware logs.
native build:
makethe binary will be at build/elogtool
clean build output:
make cleanverbose build:
make VERBOSE=1cross-compilation works by setting CROSS_COMPILE to the toolchain prefix.
for example, to build with aarch64-linux-musl-gcc:
make CROSS_COMPILE=aarch64-linux-musl-to build with the debian/ubuntu style gnu cross compiler:
make CROSS_COMPILE=aarch64-linux-gnu-the Makefile always appends gcc, so include the trailing dash and do not
include gcc itself in CROSS_COMPILE.
custom output dirs/names:
make BUILD_DIR=build-aarch64 OUTPUT=elogtool-aarch64 CROSS_COMPILE=aarch64-linux-gnu-