mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/BdsDxe: Move display of test key usage into BDS module
Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
4d0f2dce76
commit
6fb8b96d9b
|
@ -100,6 +100,7 @@
|
|||
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareRevision ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdErrorCodeSetVariable ## SOMETIMES_CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed ## CONSUMES
|
||||
|
||||
[Depex]
|
||||
TRUE
|
||||
|
|
|
@ -884,6 +884,18 @@ BdsEntry (
|
|||
PERF_INMODULE_BEGIN("PlatformBootManagerAfterConsole");
|
||||
PlatformBootManagerAfterConsole ();
|
||||
PERF_INMODULE_END("PlatformBootManagerAfterConsole");
|
||||
|
||||
//
|
||||
// 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)) {
|
||||
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");
|
||||
}
|
||||
|
||||
//
|
||||
// Boot to Boot Manager Menu when EFI_OS_INDICATIONS_BOOT_TO_FW_UI is set. Skip HotkeyBoot
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue