SecurityPkg Tcg2ConfigDxe: Add setup option to configure PPI version
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=288 gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer was introduced to configure physical presence interface version. but test or user needs to build different images to support different versions separately as the PCD does not support Dynamic types. This patch is to extend the PCD to support Dynamic types and add a setup option in Tcg2ConfigDxe driver to configure the physical presence interface version, the PCD needs to be DynamicHii type and maps to the setup option. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Chao Zhang <chao.b.zhang@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
This commit is contained in:
@@ -32,6 +32,12 @@ formset
|
||||
name = TCG2_CONFIGURATION,
|
||||
guid = TCG2_CONFIG_FORM_SET_GUID;
|
||||
|
||||
efivarstore TCG2_VERSION,
|
||||
varid = TCG2_VERSION_VARSTORE_ID,
|
||||
attribute = 0x03, // EFI variable attribures EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE
|
||||
name = TCG2_VERSION,
|
||||
guid = TCG2_CONFIG_FORM_SET_GUID;
|
||||
|
||||
form formid = TCG2_CONFIGURATION_FORM_ID,
|
||||
title = STRING_TOKEN(STR_TCG2_TITLE);
|
||||
|
||||
@@ -104,6 +110,20 @@ formset
|
||||
subtitle text = STRING_TOKEN(STR_NULL);
|
||||
subtitle text = STRING_TOKEN(STR_TCG2_PP_OPERATION);
|
||||
|
||||
text
|
||||
help = STRING_TOKEN(STR_TCG2_PPI_VERSION_STATE_HELP),
|
||||
text = STRING_TOKEN(STR_TCG2_PPI_VERSION_STATE_PROMPT),
|
||||
text = STRING_TOKEN(STR_TCG2_PPI_VERSION_STATE_CONTENT);
|
||||
|
||||
oneof varid = TCG2_VERSION.PpiVersion,
|
||||
questionid = KEY_TCG2_PPI_VERSION,
|
||||
prompt = STRING_TOKEN(STR_TCG2_PPI_VERSION_PROMPT),
|
||||
help = STRING_TOKEN(STR_TCG2_PPI_VERSION_HELP),
|
||||
flags = INTERACTIVE,
|
||||
option text = STRING_TOKEN(STR_TCG2_PPI_VERSION_1_2), value = TCG2_PPI_VERSION_1_2, flags = RESET_REQUIRED;
|
||||
option text = STRING_TOKEN(STR_TCG2_PPI_VERSION_1_3), value = TCG2_PPI_VERSION_1_3, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED;
|
||||
endoneof;
|
||||
|
||||
oneof name = Tpm2Operation,
|
||||
questionid = KEY_TPM2_OPERATION,
|
||||
prompt = STRING_TOKEN(STR_TCG2_OPERATION),
|
||||
|
Reference in New Issue
Block a user