]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Vlv2TbltDevicePkg/Override/Bds: Add test key notification
authorKinney, Michael D <michael.d.kinney@intel.com>
Mon, 16 Apr 2018 04:59:40 +0000 (21:59 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Fri, 10 Aug 2018 16:29:34 +0000 (09:29 -0700)
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>
Vlv2TbltDevicePkg/Override/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsConsole.c
Vlv2TbltDevicePkg/Override/IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf

index 9c21cfcd59491e69327d803a5cce194dae492042..b8968048f4e2b7963f7debf84c7f8ade4d21f6bf 100644 (file)
@@ -568,6 +568,17 @@ BdsLibConnectAllDefaultConsoles (
           );\r
   }\r
 \r
+  //\r
+  // If any component set PcdTestKeyUsed to TRUE because use of a test key\r
+  // was detected, then display a warning message on the debug log and the console\r
+  //\r
+  if (PcdGetBool (PcdTestKeyUsed) == TRUE) {\r
+    DEBUG ((DEBUG_ERROR, "**********************************\n"));\r
+    DEBUG ((DEBUG_ERROR, "**  WARNING: Test Key is used.  **\n"));\r
+    DEBUG ((DEBUG_ERROR, "**********************************\n"));\r
+    Print (L"**  WARNING: Test Key is used.  **\n");\r
+  }\r
+\r
   return EFI_SUCCESS;\r
 \r
 }\r
index bd938479413f25a1a0a8af1195dcd3df92e0cbdc..a4a2a9db98d52ea270b25dacf7d369f463c40544 100644 (file)
   gEfiMdeModulePkgTokenSpaceGuid.PcdProgressCodeOsLoaderStart ## SOMETIMES_CONSUMES\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdErrorCodeSetVariable      ## CONSUMES\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile      ## CONSUMES\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed                       ## CONSUMES\r
 \r
 #\r
 # [BootMode] \r