edk2/BaseTools/Source/Python/GenFds
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
..
__init__.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
AprioriSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
Capsule.py BaseTools/GenFds: Apply OEM_CAPSULE_FLAGS during Capsule generation. 2024-03-13 10:53:30 +00:00
CapsuleData.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
CompressSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
DataSection.py BaseTools: Set section alignment as zero if its type is Auto 2020-09-25 02:27:35 +00:00
DepexSection.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
EfiSection.py BaseTools: Typo fixes 2024-12-11 09:00:21 +08:00
Fd.py BaseTools: GenFds: Remove unnecessary code 2025-07-01 09:51:38 +08:00
FdfParser.py BaseTools/GenFds: Fix FV attribute parser to allow any keyword order 2026-06-22 15:18:12 +00:00
Ffs.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
FfsFileStatement.py BaseTools: GenFds: Remove unnecessary code 2025-07-01 09:51:38 +08:00
FfsInfStatement.py BaseTools/GenFds: Propagate Xip flag to FV INF via ,XIP suffix 2026-06-22 15:18:12 +00:00
Fv.py BaseTools/GenFds: Propagate Xip flag to FV INF via ,XIP suffix 2026-06-22 15:18:12 +00:00
FvImageSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
GenFds.py BaseTools: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
GenFdsGlobalVariable.py BaseTools: GenFds: Remove unnecessary code 2025-07-01 09:51:38 +08:00
GuidSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
OptionRom.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
OptRomFileStatement.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
OptRomInfStatement.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Region.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
Rule.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
RuleComplexFile.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
RuleSimpleFile.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
Section.py BaseTools: Support COMPAT16 section generation 2022-10-19 06:32:07 +00:00
SubTypeGuidSection.py BaseTools: Add support for SUBTYPE_GUID section generation 2022-10-19 06:32:07 +00:00
UiSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
VerSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00