Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 203bf1ffa12e890e238d710c6c6cf9d15615951b
      
https://github.com/tianocore/edk2/commit/203bf1ffa12e890e238d710c6c6cf9d15615951b
  Author: Michael D Kinney <[email protected]>
  Date:   2026-09-13 (Sun, 13 Sep 2026)

  Changed paths:
    M BaseTools/Source/Python/FirmwareStorageFormat/FvHeader.py

  Log Message:
  -----------
  BaseTools/FirmwareStorageFormat: Fix FV ext entry struct factory functions

The Refine_FV_EXT_ENTRY_OEM_TYPE_Header() and
Refine_FV_EXT_ENTRY_GUID_TYPE_Header() functions incorrectly return
an instantiation attempt of the local class with `Structure` as an
argument (e.g., `return ClassName(Structure)`) instead of returning the
class itself (e.g., `return ClassName`).

This causes FMMT to fail with:
  "expected EFI_FIRMWARE_VOLUME_EXT_ENTRY instance, got
   _ctypes.PyCStructType"

When processing FVs that contain ext header entries of type 0x01
(OEM Type) or type 0x02 (GUID Type, used for FV UI Name when
FvNameString = TRUE).

Fix by returning the class directly, matching the pattern used by
Refine_FV_Header() which correctly returns the class for subsequent
.from_buffer_copy() calls.

Signed-off-by: Michael D Kinney <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to