audk/BaseTools/Source/Python/GenFds
Igniculus Fu 5572b43c67 BaseTools/GenFds: Apply OEM_CAPSULE_FLAGS during Capsule generation.
Bugzilla ticket 4633

FdfParser.py has defined a key named OEM_CAPSULE_FLAGS to set the
lower 16 bits of EFI_CAPSULE_HEADER.Flags. However, this key is totally
"forgotten" in Capsule.py, making it impossible to set lower 16 bits of
this field, and leading to an always FALSE when comparing to
gEfiMdeModulePkgTokenSpaceGuid.PcdSystemRebootAfterCapsuleProcessFlag
in MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleProcessLib.c:
ProcessTheseCapsules().

This patch ORs the value of OEM_CAPSULE_FLAGS with previously calculated
CAPSULE_FLAGS value, making the lower 16 bits of value being correctly set.

Signed-off-by: Igniculus Fu <igniculus.fu@amd.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Cc: Abner Chang <abner.chang@amd.com>
Cc: Eric Xing <eric.xing@amd.com>
Cc: Abdul Lateef Attar <abdattar@amd.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2024-03-13 10:53:30 +00: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: Set section alignment as zero if its type is Auto 2020-09-25 02:27:35 +00:00
Fd.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
FdfParser.py BaseTools: Resolve regex syntax warnings 2023-12-21 00:33:31 +00:00
Ffs.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00
FfsFileStatement.py BaseTools: Clean the ffs folder before generating files in it 2020-09-25 02:27:35 +00:00
FfsInfStatement.py BaseTools/GenFds: Resolve absolute workspace INF paths 2024-03-04 16:23:58 +00:00
Fv.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
FvImageSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08:00
GenFds.py BaseTools: Resolve regex syntax warnings 2023-12-21 00:33:31 +00:00
GenFdsGlobalVariable.py BaseTools: Remove hard-coded strings for target and tools_def 2021-09-29 14:31:37 +00:00
GuidSection.py BaseTools:change some incorrect parameter defaults 2019-09-17 10:18:51 +08: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
OptionRom.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
__init__.py BaseTools: Replace BSD License with BSD+Patent License 2019-04-09 09:10:20 -07:00