Set TPM Device setup option to non-configurable. The default value of TPM 
device is disable.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Guo Mang <[email protected]>
CC: David Wei <[email protected]>
CC: Mike Wu  <[email protected]>
---
 .../Common/PlatformSettings/PlatformSetupDxe/Security.vfi             | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformSetupDxe/Security.vfi
 
b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformSetupDxe/Security.vfi
index d338a45..6f23613 100644
--- 
a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformSetupDxe/Security.vfi
+++ 
b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformSetupDxe/Security.vfi
@@ -1,7 +1,7 @@
 // /** @file
 //  Security Setup formset.
 //
-//  Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>
+//  Copyright (c) 1999 - 2018, Intel Corporation. All rights reserved.<BR>
 //
 //  This program and the accompanying materials
 //  are licensed and made available under the terms and conditions of the BSD 
License
@@ -112,12 +112,14 @@ form formid = SECURITY_CONFIGURATION_FORM_ID,
   //
   subtitle text = STRING_TOKEN(STR_TPM_CONFIGURATION_PROMPT);
 
+  grayoutif TRUE;
   oneof   varid   = Setup.TPM,
     prompt      = STRING_TOKEN(STR_TPM_PROMPT),
     help        = STRING_TOKEN(STR_TPM_HELP),
     option text = STRING_TOKEN(STR_DISABLE), value = 0x00, flags = DEFAULT | 
MANUFACTURING | RESET_REQUIRED;
     option text = STRING_TOKEN(STR_TPM_PTT), value = 0x01, flags = 
RESET_REQUIRED;
   endoneof;
+  endif;
 
   suppressif NOT ideqval Setup.TPM == 1;
     oneof varid  = Setup.TPMSupportedBanks,
-- 
2.10.1.windows.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to