Use single one PcdFrameworkCompatibilitySupport PCD to support framework HII and FvHob.
Remove patchable type Flash related PCD. Simplify single one PcdPeiFullPcdDatabaseEnable to produce full or minimal Pei PCD services. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7678 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7aca74cabc
commit
f806dd277e
|
@ -638,7 +638,7 @@ PeiFvFindNextVolume (
|
||||||
//
|
//
|
||||||
// Handle Framework FvHob and Install FvInfo Ppi for it.
|
// Handle Framework FvHob and Install FvInfo Ppi for it.
|
||||||
//
|
//
|
||||||
if (FeaturePcdGet (PcdFrameworkFvHobCompatibilitySupport)) {
|
if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) {
|
||||||
//
|
//
|
||||||
// Loop to search the wanted FirmwareVolume which supports FFS
|
// Loop to search the wanted FirmwareVolume which supports FFS
|
||||||
//
|
//
|
||||||
|
|
|
@ -94,5 +94,5 @@
|
||||||
|
|
||||||
[FeaturePcd.common]
|
[FeaturePcd.common]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst ## CONSUMES
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst ## CONSUMES
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkFvHobCompatibilitySupport ## CONSUMES
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES
|
||||||
|
|
|
@ -221,26 +221,10 @@
|
||||||
## Indicate whether platform can support update capsule across a system reset
|
## Indicate whether platform can support update capsule across a system reset
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|FALSE|BOOLEAN|0x0001001d
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|FALSE|BOOLEAN|0x0001001d
|
||||||
|
|
||||||
## This feature flag can be used to enable or disable the Pcd PEIM database
|
## This feature flag can be used to enable or disable all PCD PEIM services.
|
||||||
# traverse capability. Disable it can reduce the size of final image generated.
|
# If TRUE, all PCD PEIM services will be provided.
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseTraverseEnabled|TRUE|BOOLEAN|0x00010020
|
## If FALSE, the minimal PCD PEIM services (only GetService) will be provided.
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiFullPcdDatabaseEnable|TRUE|BOOLEAN|0x00010020
|
||||||
## This feature flag can be used to enable or disable the Pcd DXE database
|
|
||||||
# traverse capability. Disable it can reduce the size of final image generated.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDxePcdDatabaseTraverseEnabled|TRUE|BOOLEAN|0x00010021
|
|
||||||
|
|
||||||
## This feature flag can be used to enable or disable the SET capability of PCD service PEIM.
|
|
||||||
# If a platform does not do PCD SET operation in PEI phase. This flag can be set to DISABLE to save size.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseSetEnabled|TRUE|BOOLEAN|0x00010030
|
|
||||||
|
|
||||||
## This feature flag can be used to enable or disable the GET size capability of PCD service PEIM.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseGetSizeEnabled|TRUE|BOOLEAN|0x00010031
|
|
||||||
|
|
||||||
## This feature flag can be used to enable or disable the Callback On SET capability of PCD service PEIM.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseCallbackOnSetEnabled|TRUE|BOOLEAN|0x00010032
|
|
||||||
|
|
||||||
## This feature flag can be used to enable or disable the PCD service PEIM to handle DynamicEX PCD.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseExEnabled|TRUE|BOOLEAN|0x00010033
|
|
||||||
|
|
||||||
## If TRUE, then the Device Path To Text Protocol should be produced by the platform.
|
## If TRUE, then the Device Path To Text Protocol should be produced by the platform.
|
||||||
# It can be disabled to save size.
|
# It can be disabled to save size.
|
||||||
|
@ -294,11 +278,9 @@
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDisableDefaultKeyboardLayoutInUsbKbDriver|FALSE|BOOLEAN|0x00010200
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDisableDefaultKeyboardLayoutInUsbKbDriver|FALSE|BOOLEAN|0x00010200
|
||||||
|
|
||||||
## If TRUE, Setup Browser supports GUID opcodes generated from Framework HII VFR file by VFR compiler.
|
## If TRUE, Setup Browser supports GUID opcodes generated from Framework HII VFR file by VFR compiler.
|
||||||
# This is used to provide backward compatibility support to Framework HII module built togehter EdkCompatbilityPkg.
|
# If TRUE, the PeiCore will handle the framework FvHob and install FvInfo PPI for it.
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkHiiCompatibilitySupport|TRUE|BOOLEAN|0x00012008
|
## This is used to provide backward compatibility support to Framework HII and Framework FvHob.
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport|FALSE|BOOLEAN|0x00012009
|
||||||
## If TRUE, the PeiCore will handle the framework FvHob and install FvInfo PPI for it.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkFvHobCompatibilitySupport|FALSE|BOOLEAN|0x00012009
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# If TRUE, HelloWorld Application will print the verbose information.
|
# If TRUE, HelloWorld Application will print the verbose information.
|
||||||
|
@ -414,21 +396,12 @@
|
||||||
## Base address of the NV variable range in flash device
|
## Base address of the NV variable range in flash device
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0|UINT32|0x30000001
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0|UINT32|0x30000001
|
||||||
|
|
||||||
## Size of the NV variable range.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x0|UINT32|0x30000002
|
|
||||||
|
|
||||||
## Base address of the FTW spare block range in flash device.
|
## Base address of the FTW spare block range in flash device.
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0|UINT32|0x30000013
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0|UINT32|0x30000013
|
||||||
|
|
||||||
## Size of the FTW spare block range.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x0|UINT32|0x30000014
|
|
||||||
|
|
||||||
## Base address of the FTW working block range in flash device.
|
## Base address of the FTW working block range in flash device.
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0|UINT32|0x30000010
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0|UINT32|0x30000010
|
||||||
|
|
||||||
## Size of the FTW working block range.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x0|UINT32|0x30000011
|
|
||||||
|
|
||||||
## Default timeout value for displaying progressing bar in before boot OS.
|
## Default timeout value for displaying progressing bar in before boot OS.
|
||||||
# This value can be changed in BDS.
|
# This value can be changed in BDS.
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPlatformBootTimeOutDefault|0xffff|UINT16|0x40000001
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPlatformBootTimeOutDefault|0xffff|UINT16|0x40000001
|
||||||
|
@ -462,24 +435,6 @@
|
||||||
## Maximun number of performance log entries during PEI phase.
|
## Maximun number of performance log entries during PEI phase.
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPerformanceLogEntries|40|UINT8|0x0001002f
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPerformanceLogEntries|40|UINT8|0x0001002f
|
||||||
|
|
||||||
## Base address of the NV variable range in flash device
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0|UINT32|0x30000001
|
|
||||||
|
|
||||||
## Size of the NV variable range.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x0|UINT32|0x30000002
|
|
||||||
|
|
||||||
## Base address of the FTW spare block range in flash device.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0|UINT32|0x30000013
|
|
||||||
|
|
||||||
## Size of the FTW spare block range.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x0|UINT32|0x30000014
|
|
||||||
|
|
||||||
## Base address of the FTW working block range in flash device.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0|UINT32|0x30000010
|
|
||||||
|
|
||||||
## Size of the FTW working block range.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x0|UINT32|0x30000011
|
|
||||||
|
|
||||||
## Default timeout value for displaying progressing bar in before boot OS.
|
## Default timeout value for displaying progressing bar in before boot OS.
|
||||||
# This value can be changed in BDS.
|
# This value can be changed in BDS.
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPlatformBootTimeOutDefault|0xffff|UINT16|0x40000001
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPlatformBootTimeOutDefault|0xffff|UINT16|0x40000001
|
||||||
|
|
|
@ -151,12 +151,6 @@
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
|
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
|
gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
|
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDxePcdDatabaseTraverseEnabled|TRUE
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseTraverseEnabled|TRUE
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseSetEnabled|TRUE
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseGetSizeEnabled|TRUE
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseCallbackOnSetEnabled|TRUE
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseExEnabled|TRUE
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|FALSE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|FALSE
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|FALSE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|FALSE
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathToText|FALSE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathToText|FALSE
|
||||||
|
|
|
@ -948,10 +948,6 @@ DxePcdGetNextToken (
|
||||||
BOOLEAN PeiExMapTableEmpty;
|
BOOLEAN PeiExMapTableEmpty;
|
||||||
BOOLEAN DxeExMapTableEmpty;
|
BOOLEAN DxeExMapTableEmpty;
|
||||||
|
|
||||||
if (!FeaturePcdGet (PcdDxePcdDatabaseTraverseEnabled)) {
|
|
||||||
return EFI_UNSUPPORTED;
|
|
||||||
}
|
|
||||||
|
|
||||||
Status = EFI_NOT_FOUND;
|
Status = EFI_NOT_FOUND;
|
||||||
PeiExMapTableEmpty = PEI_EXMAP_TABLE_EMPTY;
|
PeiExMapTableEmpty = PEI_EXMAP_TABLE_EMPTY;
|
||||||
DxeExMapTableEmpty = DXE_EXMAP_TABLE_EMPTY;
|
DxeExMapTableEmpty = DXE_EXMAP_TABLE_EMPTY;
|
||||||
|
@ -1065,14 +1061,11 @@ GetDistinctTokenSpace (
|
||||||
/**
|
/**
|
||||||
Get next token space in PCD database according to given token space guid.
|
Get next token space in PCD database according to given token space guid.
|
||||||
|
|
||||||
This routine is enable only when feature flag PCD PcdDxePcdDatabaseTraverseEnabled
|
|
||||||
is TRUE.
|
|
||||||
|
|
||||||
@param Guid Given token space guid. If NULL, then Guid will be set to
|
@param Guid Given token space guid. If NULL, then Guid will be set to
|
||||||
the first PCD token space in PCD database, If not NULL, then
|
the first PCD token space in PCD database, If not NULL, then
|
||||||
Guid will be set to next PCD token space.
|
Guid will be set to next PCD token space.
|
||||||
|
|
||||||
@retval EFI_UNSUPPORTED If feature flag PCD PcdDxePcdDatabaseTraverseEnabled is FALSE.
|
@retval EFI_UNSUPPORTED
|
||||||
@retval EFI_NOT_FOUND If PCD database has no token space table or can not find given
|
@retval EFI_NOT_FOUND If PCD database has no token space table or can not find given
|
||||||
token space in PCD database.
|
token space in PCD database.
|
||||||
@retval EFI_SUCCESS Success to get next token space guid.
|
@retval EFI_SUCCESS Success to get next token space guid.
|
||||||
|
@ -1094,10 +1087,6 @@ DxePcdGetNextTokenSpace (
|
||||||
BOOLEAN PeiExMapTableEmpty;
|
BOOLEAN PeiExMapTableEmpty;
|
||||||
BOOLEAN DxeExMapTableEmpty;
|
BOOLEAN DxeExMapTableEmpty;
|
||||||
|
|
||||||
if (!FeaturePcdGet (PcdDxePcdDatabaseTraverseEnabled)) {
|
|
||||||
return EFI_UNSUPPORTED;
|
|
||||||
}
|
|
||||||
|
|
||||||
ASSERT (Guid != NULL);
|
ASSERT (Guid != NULL);
|
||||||
|
|
||||||
PeiExMapTableEmpty = PEI_EXMAP_TABLE_EMPTY;
|
PeiExMapTableEmpty = PEI_EXMAP_TABLE_EMPTY;
|
||||||
|
|
|
@ -57,9 +57,6 @@
|
||||||
[Protocols]
|
[Protocols]
|
||||||
gPcdProtocolGuid ## PRODUCES
|
gPcdProtocolGuid ## PRODUCES
|
||||||
|
|
||||||
[FeaturePcd.common]
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDxePcdDatabaseTraverseEnabled
|
|
||||||
|
|
||||||
[FixedPcd.common]
|
[FixedPcd.common]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress
|
gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress
|
||||||
|
|
||||||
|
|
|
@ -260,15 +260,6 @@ PeiPcdGetSize (
|
||||||
UINTN Size;
|
UINTN Size;
|
||||||
UINTN MaxSize;
|
UINTN MaxSize;
|
||||||
|
|
||||||
//
|
|
||||||
// If DebugAssertEnabled is TRUE, we still need to provide the GET size
|
|
||||||
// function as GetWorker and SetWoker need this function to do ASSERT.
|
|
||||||
//
|
|
||||||
if ((!FeaturePcdGet(PcdPeiPcdDatabaseGetSizeEnabled)) &&
|
|
||||||
(!DebugAssertEnabled ())) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
PeiPcdDb = GetPcdDatabase ();
|
PeiPcdDb = GetPcdDatabase ();
|
||||||
//
|
//
|
||||||
// TokenNumber Zero is reserved as PCD_INVALID_TOKEN_NUMBER.
|
// TokenNumber Zero is reserved as PCD_INVALID_TOKEN_NUMBER.
|
||||||
|
@ -458,10 +449,6 @@ PeiPcdGetSizeEx (
|
||||||
IN UINTN ExTokenNumber
|
IN UINTN ExTokenNumber
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if ((!FeaturePcdGet (PcdPeiPcdDatabaseGetSizeEnabled)) || !FeaturePcdGet (PcdPeiPcdDatabaseExEnabled)) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return PeiPcdGetSize (GetExPcdTokenNumber (Guid, ExTokenNumber));
|
return PeiPcdGetSize (GetExPcdTokenNumber (Guid, ExTokenNumber));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -831,7 +818,7 @@ PeiRegisterCallBackOnSet (
|
||||||
IN PCD_PPI_CALLBACK CallBackFunction
|
IN PCD_PPI_CALLBACK CallBackFunction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (!FeaturePcdGet(PcdPeiPcdDatabaseCallbackOnSetEnabled)) {
|
if (!FeaturePcdGet(PcdPeiFullPcdDatabaseEnable)) {
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -862,7 +849,7 @@ PcdUnRegisterCallBackOnSet (
|
||||||
IN PCD_PPI_CALLBACK CallBackFunction
|
IN PCD_PPI_CALLBACK CallBackFunction
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (!FeaturePcdGet(PcdPeiPcdDatabaseCallbackOnSetEnabled)) {
|
if (!FeaturePcdGet(PcdPeiFullPcdDatabaseEnable)) {
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -906,7 +893,7 @@ PeiPcdGetNextToken (
|
||||||
BOOLEAN Found;
|
BOOLEAN Found;
|
||||||
BOOLEAN PeiExMapTableEmpty;
|
BOOLEAN PeiExMapTableEmpty;
|
||||||
|
|
||||||
if (!FeaturePcdGet (PcdPeiPcdDatabaseTraverseEnabled)) {
|
if (!FeaturePcdGet (PcdPeiFullPcdDatabaseEnable)) {
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1023,7 +1010,7 @@ PeiPcdGetNextTokenSpace (
|
||||||
BOOLEAN Found;
|
BOOLEAN Found;
|
||||||
BOOLEAN PeiExMapTableEmpty;
|
BOOLEAN PeiExMapTableEmpty;
|
||||||
|
|
||||||
if (!FeaturePcdGet (PcdPeiPcdDatabaseTraverseEnabled)) {
|
if (!FeaturePcdGet (PcdPeiFullPcdDatabaseEnable)) {
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,15 +55,11 @@
|
||||||
gPcdPpiGuid ## PRODUCES
|
gPcdPpiGuid ## PRODUCES
|
||||||
|
|
||||||
[FeaturePcd.common]
|
[FeaturePcd.common]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseSetEnabled
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiFullPcdDatabaseEnable
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseExEnabled
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseCallbackOnSetEnabled
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseGetSizeEnabled
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiPcdDatabaseTraverseEnabled
|
|
||||||
|
|
||||||
[FixedPcd.common]
|
[FixedPcd.common]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress
|
gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPcdCallBackNumberPerPcdEntry || PcdPeiPcdDatabaseCallbackOnSetEnabled
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxPeiPcdCallBackNumberPerPcdEntry || PcdPeiFullPcdDatabaseEnable
|
||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
TRUE
|
TRUE
|
||||||
|
|
|
@ -360,7 +360,7 @@ SetWorker (
|
||||||
VOID *InternalData;
|
VOID *InternalData;
|
||||||
UINTN MaxSize;
|
UINTN MaxSize;
|
||||||
|
|
||||||
if (!FeaturePcdGet(PcdPeiPcdDatabaseSetEnabled)) {
|
if (!FeaturePcdGet(PcdPeiFullPcdDatabaseEnable)) {
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -514,7 +514,7 @@ ExSetWorker (
|
||||||
{
|
{
|
||||||
UINTN TokenNumber;
|
UINTN TokenNumber;
|
||||||
|
|
||||||
if (!FeaturePcdGet(PcdPeiPcdDatabaseSetEnabled)) {
|
if (!FeaturePcdGet(PcdPeiFullPcdDatabaseEnable)) {
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -543,11 +543,6 @@ ExGetWorker (
|
||||||
IN UINTN GetSize
|
IN UINTN GetSize
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (!FeaturePcdGet (PcdPeiPcdDatabaseExEnabled)) {
|
|
||||||
ASSERT (FALSE);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return GetWorker (GetExPcdTokenNumber (Guid, ExTokenNumber), GetSize);
|
return GetWorker (GetExPcdTokenNumber (Guid, ExTokenNumber), GetSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -204,7 +204,7 @@ CreateQuestion (
|
||||||
// Take a look at next OpCode to see whether it is a GUIDed opcode to support
|
// Take a look at next OpCode to see whether it is a GUIDed opcode to support
|
||||||
// Framework Compatibility
|
// Framework Compatibility
|
||||||
//
|
//
|
||||||
if (FeaturePcdGet (PcdFrameworkHiiCompatibilitySupport)) {
|
if (FeaturePcdGet (PcdFrameworkCompatibilitySupport)) {
|
||||||
if ((*OpCodeData == EFI_IFR_NUMERIC_OP) && IsNextOpCodeGuidedVarEqName (OpCodeData)) {
|
if ((*OpCodeData == EFI_IFR_NUMERIC_OP) && IsNextOpCodeGuidedVarEqName (OpCodeData)) {
|
||||||
Status = UpdateCheckBoxStringToken (FormSet, Statement);
|
Status = UpdateCheckBoxStringToken (FormSet, Statement);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
gEfiConsoleControlProtocolGuid ## CONSUMES
|
gEfiConsoleControlProtocolGuid ## CONSUMES
|
||||||
|
|
||||||
[FeaturePcd.common]
|
[FeaturePcd.common]
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkHiiCompatibilitySupport
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport
|
||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
gEfiHiiDatabaseProtocolGuid AND gEfiHiiConfigRoutingProtocolGuid
|
gEfiHiiDatabaseProtocolGuid AND gEfiHiiConfigRoutingProtocolGuid
|
||||||
|
|
Loading…
Reference in New Issue