The UiApp is updated to consume PcdTestKeyUsed to know if there is any
test key used in current BIOS, such as recovery key,
or capsule update key.
Then UiApp show warning information in front page.
Cc: Eric Dong <eric.dong@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Tested-by: Michael Kinney <michael.d.kinney@intel.com>
#include <Protocol/HiiConfigAccess.h>\r
#include <Library/BaseLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
#include <Protocol/HiiConfigAccess.h>\r
#include <Library/BaseLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
+#include "FrontPage.h"\r
#include "FrontPageCustomizedUiSupport.h"\r
\r
#include "FrontPageCustomizedUiSupport.h"\r
\r
+extern FRONT_PAGE_CALLBACK_DATA gFrontPagePrivate;\r
+\r
/**\r
Customize menus in the page.\r
\r
/**\r
Customize menus in the page.\r
\r
IN OUT EFI_STRING *BannerStr\r
)\r
{\r
IN OUT EFI_STRING *BannerStr\r
)\r
{\r
+ if ((LineIndex == 5) && LeftOrRight) {\r
+ // Update STR_CUSTOMIZE_BANNER_LINE5_LEFT\r
+ if (PcdGetBool(PcdTestKeyUsed)) {\r
+ if (BannerStr != NULL) {\r
+ FreePool(*BannerStr);\r
+ }\r
+ *BannerStr = HiiGetString(gFrontPagePrivate.HiiHandle, STRING_TOKEN(STR_TEST_KEY_USED), NULL);\r
+ }\r
+ }\r
+ return;\r
//\r
// String definitions for BdsPlatform formset.\r
//\r
//\r
// String definitions for BdsPlatform formset.\r
//\r
-// Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
// This program and the accompanying materials\r
// are licensed and made available under the terms and conditions of the BSD License\r
// which accompanies this distribution. The full text of the license may be found at\r
// This program and the accompanying materials\r
// are licensed and made available under the terms and conditions of the BSD License\r
// which accompanies this distribution. The full text of the license may be found at\r
#language fr-FR ""\r
#string STR_CUSTOMIZE_BANNER_LINE5_RIGHT #language en-US ""\r
#language fr-FR ""\r
#language fr-FR ""\r
#string STR_CUSTOMIZE_BANNER_LINE5_RIGHT #language en-US ""\r
#language fr-FR ""\r
+#string STR_TEST_KEY_USED #language en-US "WARNING: Test key detected."\r
+ #language fr-FR "WARNING: Test key detected."\r
#string STR_NULL_STRING #language en-US " "\r
#language fr-FR " "\r
#string STR_NULL_STRING #language en-US " "\r
#language fr-FR " "\r
## @file\r
# UiApp module is driver for BDS phase.\r
#\r
## @file\r
# UiApp module is driver for BDS phase.\r
#\r
-# Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2016, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution ## CONSUMES\r
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution ## CONSUMES\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString ## CONSUMES\r
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution ## CONSUMES\r
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution ## CONSUMES\r
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString ## CONSUMES\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed ## CONSUMES\r
\r
[UserExtensions.TianoCore."ExtraFiles"]\r
UiAppExtra.uni\r
\r
[UserExtensions.TianoCore."ExtraFiles"]\r
UiAppExtra.uni\r