[Patch edk2-stable202208 0/2] Fix GenSec EFI_SECTION_FREEFORM_SUBTYPE_GUID


Michael D Kinney
 

If no GUID value is provided with EFI_SECTION_FREEFORM_SUBTYPE_GUID
then preserve the prior behavior until all downstream platforms
are updated to pass in a GUID value.

When the size of a EFI_SECTION_FREEFORM_SUBTYPE_GUID section required
the use of EFI_FREEFORM_SUBTYPE_GUID_SECTION2 header, set the section
type to EFI_SECTION_FREEFORM_SUBTYPE_GUID.

Cc: Konstantin Aladyshev <aladyshev22@...>
Cc: Bob Feng <bob.c.feng@...>
Cc: Liming Gao <gaoliming@...>
Cc: Yuwei Chen <yuwei.chen@...>
Signed-off-by: Michael D Kinney <michael.d.kinney@...>

Michael D Kinney (2):
BaseTools/Source/C/GenSec: Preserve prior behavior when no GUID
provided
BaseTools/Source/C/GenSec: Fix EFI_SECTION_FREEFORM_SUBTYPE_GUID
header

BaseTools/Source/C/GenSec/GenSec.c | 31 ++++++++++++++++++++----------
1 file changed, 21 insertions(+), 10 deletions(-)

--
2.37.1.windows.1

Join {devel@edk2.groups.io to automatically receive all group messages.