FmpDevicePkg/FmpDxe: Add PcdFmpDeviceImageTypeIdGuid
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1525
Add PCD PcdFmpDeviceImageTypeIdGuid that contains an Image
Type ID GUID value that is used if one is not provided by
FmpDeviceLib. If this PCD is not a valid GUID value, then
gEfiCallerIdGuid is used.
Update FmpDevicePkg DSC to use PcdFmpDeviceImageTypeIdGuid
as a PatchableInModule PCD.
This content is based on the following commit.
a2c7da88d3 (diff-025d4889f6d3a482b49638a25e432d6d)
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Michael Turner <Michael.Turner@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Eric Jin <eric.jin@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -66,6 +66,9 @@
|
||||
[LibraryClasses.ARM]
|
||||
ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
|
||||
|
||||
[PcdsPatchableInModule]
|
||||
gFmpDevicePkgTokenSpaceGuid.PcdFmpDeviceImageTypeIdGuid|{0}
|
||||
|
||||
[Components]
|
||||
#
|
||||
# Libraries
|
||||
@@ -89,6 +92,17 @@
|
||||
# FILE_GUID is used as ESRT GUID
|
||||
#
|
||||
FILE_GUID = $(SYSTEM_FMP_ESRT_GUID)
|
||||
<PcdsFixedAtBuild>
|
||||
#
|
||||
# Unicode name string that is used to populate FMP Image Descriptor for this capsule update module
|
||||
#
|
||||
gFmpDevicePkgTokenSpaceGuid.PcdFmpDeviceImageIdName|L"Sample Firmware Device"
|
||||
#
|
||||
# Certificates used to authenticate capsule update image
|
||||
#
|
||||
!include BaseTools/Source/Python/Pkcs7Sign/TestRoot.cer.gFmpDevicePkgTokenSpaceGuid.PcdFmpDevicePkcs7CertBufferXdr.inc
|
||||
<PcdsPatchableInModule>
|
||||
gFmpDevicePkgTokenSpaceGuid.PcdFmpDeviceImageTypeIdGuid|{GUID("$(SYSTEM_FMP_ESRT_GUID)")}
|
||||
<LibraryClasses>
|
||||
#
|
||||
# Use CapsuleUpdatePolicyLib that calls the Capsule Update Policy Protocol.
|
||||
@@ -104,6 +118,17 @@
|
||||
# FILE_GUID is used as ESRT GUID
|
||||
#
|
||||
FILE_GUID = $(DEVICE_FMP_ESRT_GUID)
|
||||
<PcdsFixedAtBuild>
|
||||
#
|
||||
# Unicode name string that is used to populate FMP Image Descriptor for this capsule update module
|
||||
#
|
||||
gFmpDevicePkgTokenSpaceGuid.PcdFmpDeviceImageIdName|L"Sample Firmware Device"
|
||||
#
|
||||
# Certificates used to authenticate capsule update image
|
||||
#
|
||||
!include BaseTools/Source/Python/Pkcs7Sign/TestRoot.cer.gFmpDevicePkgTokenSpaceGuid.PcdFmpDevicePkcs7CertBufferXdr.inc
|
||||
<PcdsPatchableInModule>
|
||||
gFmpDevicePkgTokenSpaceGuid.PcdFmpDeviceImageTypeIdGuid|{GUID("$(DEVICE_FMP_ESRT_GUID)")}
|
||||
<LibraryClasses>
|
||||
#
|
||||
# Directly use a platform specific CapsuleUpdatePolicyLib instance.
|
||||
|
Reference in New Issue
Block a user