edk2/BaseTools/Source
Michael D Kinney 57164cdc87 BaseTools/GenFds: Fix FV attribute parser to allow any keyword order
Fix _GetFvAttributes() to return True when it has successfully parsed
at least one attribute before encountering a non-attribute keyword.
Previously it always returned False on encountering an unrecognized
word, even after consuming prior attributes. This caused the outer
parsing loop to break prematurely when FvForceRebase, FvBaseAddress,
or FvAlignment appeared between FV attribute flags (e.g. between
ERASE_POLARITY and MEMORY_MAPPED), resulting in a Python stack trace.

Move IsWordToken assignment to after successful attribute parsing and
change the early return from 'return False' to 'return IsWordToken'.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2026-06-22 15:18:12 +00:00
..
C BaseTools/GenFv: Parse ,XIP suffix for per-file rebase control 2026-06-22 15:18:12 +00:00
Python BaseTools/GenFds: Fix FV attribute parser to allow any keyword order 2026-06-22 15:18:12 +00:00