PrmPkg: Replace PcdPrmPlatformGuid with EDKII_DSC_PLATFORM_GUID
Bugzilla request https://bugzilla.tianocore.org/show_bug.cgi?id=2969 was recently completed which causes the PLATFORM_GUID value from the DSC file to be placed into Autogen file .c & .h files. With this change, the PRM Platform GUID can be directly matched to the DSC PLATFORM_GUID value. Cc: Andrew Fish <afish@apple.com> Cc: Kang Gao <kang.gao@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Benjamin You <benjamin.you@intel.com> Cc: Liu Yun <yun.y.liu@intel.com> Cc: Ankit Sinha <ankit.sinha@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Acked-by: Michael D Kinney <michael.d.kinney@intel.com> Acked-by: Liming Gao <gaoliming@byosoft.com.cn> Acked-by: Leif Lindholm <quic_llindhol@quicinc.com> Reviewed-by: Ankit Sinha <ankit.sinha@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
f8e68587e2
commit
4a4aeaa446
@@ -53,7 +53,6 @@ ProcessPrmModules (
|
||||
OUT PRM_ACPI_DESCRIPTION_TABLE **PrmAcpiDescriptionTable
|
||||
)
|
||||
{
|
||||
EFI_GUID *PlatformGuid;
|
||||
EFI_IMAGE_EXPORT_DIRECTORY *CurrentImageExportDirectory;
|
||||
PRM_MODULE_EXPORT_DESCRIPTOR_STRUCT *CurrentExportDescriptorStruct;
|
||||
PRM_ACPI_DESCRIPTION_TABLE *PrmAcpiTable;
|
||||
@@ -81,18 +80,17 @@ ProcessPrmModules (
|
||||
}
|
||||
*PrmAcpiDescriptionTable = NULL;
|
||||
|
||||
PlatformGuid = (EFI_GUID *) PcdGetPtr (PcdPrmPlatformGuid);
|
||||
//
|
||||
// The platform should set PcdPrmPlatformGuid to a non-zero value
|
||||
// The platform DSC GUID must be set to a non-zero value
|
||||
//
|
||||
if (CompareGuid (PlatformGuid, &gZeroGuid)) {
|
||||
if (CompareGuid (&gEdkiiDscPlatformGuid, &gZeroGuid)) {
|
||||
DEBUG ((
|
||||
DEBUG_ERROR,
|
||||
" %a %a: PcdPrmPlatformGuid must be set to a unique value in the platform DSC file.\n",
|
||||
" %a %a: The Platform GUID in the DSC file must be set to a unique non-zero value.\n",
|
||||
_DBGMSGID_,
|
||||
__FUNCTION__
|
||||
));
|
||||
ASSERT (!CompareGuid (PlatformGuid, &gZeroGuid));
|
||||
ASSERT (!CompareGuid (&gEdkiiDscPlatformGuid, &gZeroGuid));
|
||||
}
|
||||
|
||||
DEBUG ((DEBUG_INFO, " %a %a: %d total PRM modules to process.\n", _DBGMSGID_, __FUNCTION__, mPrmModuleCount));
|
||||
@@ -118,7 +116,7 @@ ProcessPrmModules (
|
||||
PrmAcpiTable->Header.OemRevision = PcdGet32 (PcdAcpiDefaultOemRevision);
|
||||
PrmAcpiTable->Header.CreatorId = PcdGet32 (PcdAcpiDefaultCreatorId);
|
||||
PrmAcpiTable->Header.CreatorRevision = PcdGet32 (PcdAcpiDefaultCreatorRevision);
|
||||
CopyGuid (&PrmAcpiTable->PrmPlatformGuid, PlatformGuid);
|
||||
CopyGuid (&PrmAcpiTable->PrmPlatformGuid, &gEdkiiDscPlatformGuid);
|
||||
PrmAcpiTable->PrmModuleInfoOffset = OFFSET_OF (PRM_ACPI_DESCRIPTION_TABLE, PrmModuleInfoStructure);
|
||||
PrmAcpiTable->PrmModuleInfoCount = (UINT32) mPrmModuleCount;
|
||||
|
||||
|
Reference in New Issue
Block a user