Vlv2TbltDevicePkg/Override/Bds: Add test key notification

Cc: David Wei <david.wei@intel.com>
Cc: Mang Guo <mang.guo@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Guo Mang <mang.guo@intel.com>
This commit is contained in:
Kinney, Michael D 2018-04-15 21:59:40 -07:00 committed by Michael D Kinney
parent 10ea1b6853
commit 45e076b7a7
2 changed files with 12 additions and 0 deletions

View File

@ -568,6 +568,17 @@ BdsLibConnectAllDefaultConsoles (
); );
} }
//
// If any component set PcdTestKeyUsed to TRUE because use of a test key
// was detected, then display a warning message on the debug log and the console
//
if (PcdGetBool (PcdTestKeyUsed) == TRUE) {
DEBUG ((DEBUG_ERROR, "**********************************\n"));
DEBUG ((DEBUG_ERROR, "** WARNING: Test Key is used. **\n"));
DEBUG ((DEBUG_ERROR, "**********************************\n"));
Print (L"** WARNING: Test Key is used. **\n");
}
return EFI_SUCCESS; return EFI_SUCCESS;
} }

View File

@ -138,6 +138,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdProgressCodeOsLoaderStart ## SOMETIMES_CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdProgressCodeOsLoaderStart ## SOMETIMES_CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdErrorCodeSetVariable ## CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdErrorCodeSetVariable ## CONSUMES
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile ## CONSUMES gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed ## CONSUMES
# #
# [BootMode] # [BootMode]