Remove PCD for OSL corruption tool

Removes PCD for OSL corruption tool so that it
doesn't accidentally get enabled in production code

Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
This commit is contained in:
Sean McGinn
2023-06-12 21:38:12 -07:00
committed by Guo Dong
parent 7d17328191
commit 637f4b26b6
5 changed files with 1 additions and 10 deletions
@@ -328,6 +328,4 @@
# Control if X2APIC should be used or not
gPlatformCommonLibTokenSpaceGuid.PcdCpuX2ApicEnabled | FALSE | BOOLEAN | 0x20000220
gPlatformCommonLibTokenSpaceGuid.PcdTccEnabled | FALSE | BOOLEAN | 0x20000221
# This PCD will enable the SBL component corruption command
gPlatformCommonLibTokenSpaceGuid.PcdCmdCorruptShellAppEnabled | FALSE | BOOLEAN | 0x20000222
gPlatformCommonLibTokenSpaceGuid.PcdFspNoEop | FALSE | BOOLEAN | 0x20000223
@@ -57,10 +57,5 @@ LoadShellCommands (
}
}
if (FeaturePcdGet (PcdCmdCorruptShellAppEnabled)) {
// SBL component corruption command
ShellCommandRegister (Shell, &ShellCommandCorruptComp);
}
return EFI_SUCCESS;
}
@@ -87,7 +87,6 @@
gPlatformCommonLibTokenSpaceGuid.PcdMiniShellEnabled
gPlatformCommonLibTokenSpaceGuid.PcdConsoleInDeviceMask
gPlatformCommonLibTokenSpaceGuid.PcdBootPerformanceMask
gPlatformCommonLibTokenSpaceGuid.PcdCmdCorruptShellAppEnabled
[Guids]
gLoaderPerformanceInfoGuid
@@ -579,7 +579,7 @@ UpdateFspConfig (
DEBUG ((DEBUG_ERROR, "Unsupported PCH.\n"));
}
if (GetBootMode () != BOOT_ON_FLASH_UPDATE && !PcdGetBool (PcdCmdCorruptShellAppEnabled)) {
if (GetBootMode () != BOOT_ON_FLASH_UPDATE) {
BiosProtected = FALSE;
PrIndex = 0;
Status = SpiGetRegionAddress (FlashRegionBios, &BaseAddress, &TotalSize);
@@ -48,7 +48,6 @@
gPlatformModuleTokenSpaceGuid.PcdFastBootEnabled
gPlatformModuleTokenSpaceGuid.PcdSblResiliencyEnabled
gPlatformCommonLibTokenSpaceGuid.PcdMeasuredBootEnabled
gPlatformCommonLibTokenSpaceGuid.PcdCmdCorruptShellAppEnabled
[FixedPcd]
gPlatformCommonLibTokenSpaceGuid.PcdTccEnabled