coreboot-kgpe-d16/util/amdfwtool
Karthikeyan Ramasubramanian dc4989351f util/amdfwtool: Consolidate entry line regex pattern
There are 2 regex patterns defined to process the lines from *fw.cfg:
1) for lines with mandatory entries
2) for lines with mandatory + optional entries

Consolidate the regex pattern. Add enums for matching regex caller
groups so that the human readable group IDs can be used instead of magic
numbers.

BUG=None
TEST=Build Skyrim BIOS which only have mandatory entries. Build Guybrush
BIOS image which have both mandatory and optional entries. Confirm that
the amdfw.rom built before and after this change have matching SHA in
both Skyrim and Guybrush images. This ensures that the optional level
entries in Guybrush are handled as expected. Boot to OS in Skyrim.

Change-Id: I7289ddbbec4d5daefe64f59b687ba3a4af46d052
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74950
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Van Patten <timvp@google.com>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
2023-05-08 13:15:53 +00:00
..
.gitignore util/amdfwtool: Add amdfwread utility 2022-05-13 15:51:37 +00:00
Makefile amdfwtool: Move some funtions to other categorized source files 2023-03-24 14:04:31 +00:00
Makefile.inc amdfwtool: Move some funtions to other categorized source files 2023-03-24 14:04:31 +00:00
amdfwread.c util/amdfwtool/amdfwread: List AMDFW RO binary entries 2022-10-26 15:56:18 +00:00
amdfwtool.c amdfwtool: Clean up table buffers before combo loop 2023-03-24 14:07:21 +00:00
amdfwtool.h amdfwtool: Increase MAX_PSP_ENTRIES 2023-04-28 15:12:47 +00:00
data_parse.c util/amdfwtool: Consolidate entry line regex pattern 2023-05-08 13:15:53 +00:00
description.md
handle_file.c amdfwtool: Move some funtions to other categorized source files 2023-03-24 14:04:31 +00:00
signed_psp.c amdfwtool: Move some funtions to other categorized source files 2023-03-24 14:04:31 +00:00