coreboot/util/smmstoretool
Benjamin Doron 00d954977c util/smmstoretool: Support other block sizes
smmstoretool is effectively a UEFI variable store writing tool, with
a specific emphasis on the SMMSTORE backend implementation.

However, it could also support other backends. Since it's typical for
the variable store to be `n / 2 - 1` blocks, but not typical how large
each block should be, allow this to be overridden on the command line.

This is necessary because in EDK2, the module producing the firmware
volume block protocol, the backend, will initialise a HOB or set PCDs to
indicate the size of the store to the rest of the stack, and an
assertion will be hit if the store has been preseeded by smmstoretool
using differently-sized blocks.

For example, `make CFLAGS=-DSMM_BLOCK_SIZE=8192` builds this for a
firmware volume block protocol implementation with 8K blocks.

Change-Id: I08b78cfb0b591641f09fcf86f40dd31e6b6c9b30
Signed-off-by: Benjamin Doron <benjamin.doron@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/88427
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Alicja Michalska <ahplka19@gmail.com>
2025-08-30 13:53:59 +00:00
..
.gitignore
data.c util/smmstoretool: Add support for creating variable from file contents 2025-07-17 18:14:08 +00:00
data.h util/smmstoretool: Add support for creating variable from file contents 2025-07-17 18:14:08 +00:00
description.md
fv.c util/smmstoretool: Support other block sizes 2025-08-30 13:53:59 +00:00
fv.h util/smmstoretool: Clarify the auth_vars field 2025-07-17 18:13:56 +00:00
guids.c util/smmstoretool: Alias EfiImageSecurityDatabaseGuid to "secureboot" 2025-07-31 18:14:58 +00:00
guids.h
main.c util/smmstoretool: Allow setting authenticated variable 2025-07-31 18:14:44 +00:00
Makefile
storage.c util/smmstoretool: Clarify the auth_vars field 2025-07-17 18:13:56 +00:00
storage.h
udk2017.h
utils.c
utils.h
vs.c util/smmstoretool: Properly initialise the authenticated variable header 2025-07-17 18:14:17 +00:00
vs.h util/smmstoretool: Clarify the auth_vars field 2025-07-17 18:13:56 +00:00