* [VFR support REST_STYLE PATCH v4 0/4] VFR support REST_STYLE
@ 2020-11-06 2:49 Abner Chang
2020-11-06 2:49 ` [VFR support REST_STYLE PATCH v4 1/4] MdePkg: Add GUID for REST Style Formset Abner Chang
` (7 more replies)
0 siblings, 8 replies; 10+ messages in thread
From: Abner Chang @ 2020-11-06 2:49 UTC (permalink / raw)
To: devel
Cc: Jiaxin Wu, Siyuan Fu, Fan Wang, Jiewen Yao, Dandan Bi, Eric Dong,
Nickle Wang, Bob Feng, Liming Gao, Yuwei Chen, Michael D Kinney,
Zhiguang Liu
In v4:
- We keep QuestionAboutTreeHugging option for the EFI keyword
test.
QuestionXUefiKeywordRestStyle for the EFI keyword with
REST_STYLE.
QuestionNonXUefiKeywordRestStyle for the non EFI keyword with
REST_STYLE.
- Change commit subject of 3/4 to
"Revise HiiLib to check REST_STYLE"
In v3, the patch includes the changes on HiiLib to support
REST_STYLE flag.
In v2, a typo found. Rename gEfiHiiResetStyleFormsetGuid to
gEfiHiiRestStyleFormsetGuid.
VFR compiler and other related changes to support REST_STYLE in VFR
language for HII options to be configured in out-of-band management
such as the Redfish service. Add two HII options in the Sample driver
for REST_STYLE use cases.
Signed-off-by: Abner Chang <abner.chang@hpe.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Fan Wang <fan.wang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Nickle Wang <nickle.wang@hpe.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Abner Chang (4):
MdePkg: Add GUID for REST Style Formset
BaseTools/VfrCompile: VFR compiler supports REST_STYLE in HII option
MdeModulePkg/Library: Revise HiiLib to check REST_STYLE
MdeModulePkg/DriverSampleDxe: Add HII sample options
BaseTools/Source/C/VfrCompile/VfrSyntax.g | 25 +++++++++++--
MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 14 ++++----
.../Universal/DriverSampleDxe/NVDataStruc.h | 5 ++-
.../Universal/DriverSampleDxe/Vfr.vfr | 36 +++++++++++++++++++
.../Universal/DriverSampleDxe/VfrStrings.uni | 8 +++++
MdePkg/MdePkg.dec | 2 +-
6 files changed, 78 insertions(+), 12 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [VFR support REST_STYLE PATCH v4 1/4] MdePkg: Add GUID for REST Style Formset
2020-11-06 2:49 [VFR support REST_STYLE PATCH v4 0/4] VFR support REST_STYLE Abner Chang
@ 2020-11-06 2:49 ` Abner Chang
2020-11-06 2:49 ` [VFR support REST_STYLE PATCH v4 2/4] BaseTools/VfrCompile: VFR compiler supports REST_STYLE in HII option Abner Chang
` (6 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Abner Chang @ 2020-11-06 2:49 UTC (permalink / raw)
To: devel; +Cc: Michael D Kinney, Liming Gao, Zhiguang Liu, Nickle Wang
BZ: 2916
https://bugzilla.tianocore.org/show_bug.cgi?id=2916
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Signed-off-by: Ye Ting <ting.ye@intel.com>
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Signed-off-by: Wang Fan <fan.wang@intel.com>
Signed-off-by: Abner Chang <abner.chang@hpe.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Nickle Wang <nickle.wang@hpe.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
---
MdePkg/MdePkg.dec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec
index 645f61b80e..3928db65d1 100644
--- a/MdePkg/MdePkg.dec
+++ b/MdePkg/MdePkg.dec
@@ -669,7 +669,7 @@
gEfiJsonCapsuleIdGuid = { 0x67d6f4cd, 0xd6b8, 0x4573, { 0xbf, 0x4a, 0xde, 0x5e, 0x25, 0x2d, 0x61, 0xae }}
## Include/Guid/HiiPlatformSetupFormset.h
- gEfiHiiResetStyleFormsetGuid = { 0x790217bd, 0xbecf, 0x485b, { 0x91, 0x70, 0x5f, 0xf7, 0x11, 0x31, 0x8b, 0x27 }}
+ gEfiHiiRestStyleFormsetGuid = { 0x790217bd, 0xbecf, 0x485b, { 0x91, 0x70, 0x5f, 0xf7, 0x11, 0x31, 0x8b, 0x27 }}
# GUIDs defined in UEFI2.8a
#
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [VFR support REST_STYLE PATCH v4 2/4] BaseTools/VfrCompile: VFR compiler supports REST_STYLE in HII option
2020-11-06 2:49 [VFR support REST_STYLE PATCH v4 0/4] VFR support REST_STYLE Abner Chang
2020-11-06 2:49 ` [VFR support REST_STYLE PATCH v4 1/4] MdePkg: Add GUID for REST Style Formset Abner Chang
@ 2020-11-06 2:49 ` Abner Chang
2020-11-06 2:49 ` [VFR support REST_STYLE PATCH v4 3/4] MdeModulePkg/Library: Revise HiiLib to check REST_STYLE Abner Chang
` (5 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Abner Chang @ 2020-11-06 2:49 UTC (permalink / raw)
To: devel; +Cc: Bob Feng, Liming Gao, Yuwei Chen, Nickle Wang
Add REST_STYLE support on VFR language
BZ: 2916
https://bugzilla.tianocore.org/show_bug.cgi?id=2916
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Signed-off-by: Ye Ting <ting.ye@intel.com>
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Signed-off-by: Wang Fan <fan.wang@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Cc: Nickle Wang <nickle.wang@hpe.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
---
BaseTools/Source/C/VfrCompile/VfrSyntax.g | 25 ++++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/BaseTools/Source/C/VfrCompile/VfrSyntax.g b/BaseTools/Source/C/VfrCompile/VfrSyntax.g
index 127cb8b2b2..3f896c6f1a 100644
--- a/BaseTools/Source/C/VfrCompile/VfrSyntax.g
+++ b/BaseTools/Source/C/VfrCompile/VfrSyntax.g
@@ -192,6 +192,7 @@ VfrParserStart (
#token LateCheckFlag("LATE_CHECK") "LATE_CHECK"
#token ReadOnlyFlag("READ_ONLY") "READ_ONLY"
#token OptionOnlyFlag("OPTIONS_ONLY") "OPTIONS_ONLY"
+#token RestStyleFlag("REST_STYLE") "REST_STYLE"
#token Class("class") "class"
#token Subclass("subclass") "subclass"
#token ClassGuid("classguid") "classguid"
@@ -584,7 +585,7 @@ vfrFormSetDefinition :
<<
EFI_GUID Guid;
EFI_GUID DefaultClassGuid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID;
- EFI_GUID ClassGuid1, ClassGuid2, ClassGuid3;
+ EFI_GUID ClassGuid1, ClassGuid2, ClassGuid3, ClassGuid4;
UINT8 ClassGuidNum = 0;
CIfrFormSet *FSObj = NULL;
UINT16 C, SC;
@@ -600,13 +601,16 @@ vfrFormSetDefinition :
"\|" guidDefinition[ClassGuid2] << ++ClassGuidNum; >>
{
"\|" guidDefinition[ClassGuid3] << ++ClassGuidNum; >>
+ {
+ "\|" guidDefinition[ClassGuid4] << ++ClassGuidNum; >>
+ }
}
}
","
}
<<
- if (mOverrideClassGuid != NULL && ClassGuidNum >= 3) {
- _PCATCH (VFR_RETURN_INVALID_PARAMETER, L->getLine(), "Already has 3 class guids, can't add extra class guid!");
+ if (mOverrideClassGuid != NULL && ClassGuidNum >= 4) {
+ _PCATCH (VFR_RETURN_INVALID_PARAMETER, L->getLine(), "Already has 4 class guids, can't add extra class guid!");
}
switch (ClassGuidNum) {
case 0:
@@ -643,10 +647,23 @@ vfrFormSetDefinition :
}
break;
case 3:
+ if (mOverrideClassGuid != NULL) {
+ ClassGuidNum ++;
+ }
+ FSObj = new CIfrFormSet(sizeof(EFI_IFR_FORM_SET) + ClassGuidNum * sizeof(EFI_GUID));
+ FSObj->SetClassGuid(&ClassGuid1);
+ FSObj->SetClassGuid(&ClassGuid2);
+ FSObj->SetClassGuid(&ClassGuid3);
+ if (mOverrideClassGuid != NULL) {
+ FSObj->SetClassGuid(mOverrideClassGuid);
+ }
+ break;
+ case 4:
FSObj = new CIfrFormSet(sizeof(EFI_IFR_FORM_SET) + ClassGuidNum * sizeof(EFI_GUID));
FSObj->SetClassGuid(&ClassGuid1);
FSObj->SetClassGuid(&ClassGuid2);
FSObj->SetClassGuid(&ClassGuid3);
+ FSObj->SetClassGuid(&ClassGuid4);
break;
default:
break;
@@ -1321,6 +1338,7 @@ questionheaderFlagsField[UINT8 & Flags] :
ReadOnlyFlag << $Flags |= 0x01; >>
| InteractiveFlag << $Flags |= 0x04; >>
| ResetRequiredFlag << $Flags |= 0x10; >>
+ | RestStyleFlag << $Flags |= 0x20; >>
| ReconnectRequiredFlag << $Flags |= 0x40; >>
| O:OptionOnlyFlag <<
gCVfrErrorHandle.HandleWarning (
@@ -3766,6 +3784,7 @@ oneofoptionFlagsField [UINT8 & HFlags, UINT8 & LFlags] :
| "OPTION_DEFAULT_MFG" << $LFlags |= 0x20; >>
| InteractiveFlag << $HFlags |= 0x04; >>
| ResetRequiredFlag << $HFlags |= 0x10; >>
+ | RestStyleFlag << $HFlags |= 0x20; >>
| ReconnectRequiredFlag << $HFlags |= 0x40; >>
| ManufacturingFlag << $LFlags |= 0x20; >>
| DefaultFlag << $LFlags |= 0x10; >>
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [VFR support REST_STYLE PATCH v4 3/4] MdeModulePkg/Library: Revise HiiLib to check REST_STYLE
2020-11-06 2:49 [VFR support REST_STYLE PATCH v4 0/4] VFR support REST_STYLE Abner Chang
2020-11-06 2:49 ` [VFR support REST_STYLE PATCH v4 1/4] MdePkg: Add GUID for REST Style Formset Abner Chang
2020-11-06 2:49 ` [VFR support REST_STYLE PATCH v4 2/4] BaseTools/VfrCompile: VFR compiler supports REST_STYLE in HII option Abner Chang
@ 2020-11-06 2:49 ` Abner Chang
2020-11-06 2:49 ` [VFR support REST_STYLE PATCH v4 4/4] MdeModulePkg/DriverSampleDxe: Add HII sample options Abner Chang
` (4 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Abner Chang @ 2020-11-06 2:49 UTC (permalink / raw)
To: devel; +Cc: Dandan Bi, Eric Dong, Nickle Wang
This change checks REST_STYLE flag.
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Signed-off-by: Ting Ye <ting.ye@intel.com>
Signed-off-by: Siyuan Fu <siyuan.fu@intel.com>
Signed-off-by: Fan Wang <fan.wang@intel.com>
Signed-off-by: Abner Chang <abner.chang@hpe.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Nickle Wang <nickle.wang@hpe.com>
---
MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
index 564169bc14..57602828fe 100644
--- a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
+++ b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
@@ -3605,7 +3605,7 @@ HiiCreateCheckBoxOpCode (
EFI_IFR_CHECKBOX OpCode;
UINTN Position;
- ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED))) == 0);
+ ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED | EFI_IFR_FLAG_REST_STYLE))) == 0);
ZeroMem (&OpCode, sizeof (OpCode));
OpCode.Question.QuestionId = QuestionId;
@@ -3674,7 +3674,7 @@ HiiCreateNumericOpCode (
UINTN Position;
UINTN Length;
- ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED))) == 0);
+ ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED | EFI_IFR_FLAG_REST_STYLE))) == 0);
Length = 0;
ZeroMem (&OpCode, sizeof (OpCode));
@@ -3773,7 +3773,7 @@ HiiCreateStringOpCode (
EFI_IFR_STRING OpCode;
UINTN Position;
- ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED))) == 0);
+ ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED | EFI_IFR_FLAG_REST_STYLE))) == 0);
ZeroMem (&OpCode, sizeof (OpCode));
OpCode.Question.Header.Prompt = Prompt;
@@ -3841,7 +3841,7 @@ HiiCreateOneOfOpCode (
UINTN Length;
ASSERT (OptionsOpCodeHandle != NULL);
- ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED | EFI_IFR_FLAG_OPTIONS_ONLY))) == 0);
+ ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED | EFI_IFR_FLAG_REST_STYLE | EFI_IFR_FLAG_OPTIONS_ONLY))) == 0);
ZeroMem (&OpCode, sizeof (OpCode));
OpCode.Question.Header.Prompt = Prompt;
@@ -3912,7 +3912,7 @@ HiiCreateOrderedListOpCode (
UINTN Position;
ASSERT (OptionsOpCodeHandle != NULL);
- ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED | EFI_IFR_FLAG_OPTIONS_ONLY))) == 0);
+ ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED | EFI_IFR_FLAG_REST_STYLE | EFI_IFR_FLAG_OPTIONS_ONLY))) == 0);
ZeroMem (&OpCode, sizeof (OpCode));
OpCode.Question.Header.Prompt = Prompt;
@@ -4009,7 +4009,7 @@ HiiCreateDateOpCode (
EFI_IFR_DATE OpCode;
UINTN Position;
- ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED))) == 0);
+ ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED | EFI_IFR_FLAG_REST_STYLE))) == 0);
ASSERT ((DateFlags & (~(EFI_QF_DATE_YEAR_SUPPRESS | EFI_QF_DATE_MONTH_SUPPRESS | EFI_QF_DATE_DAY_SUPPRESS | EFI_QF_DATE_STORAGE))) == 0);
ZeroMem (&OpCode, sizeof (OpCode));
@@ -4074,7 +4074,7 @@ HiiCreateTimeOpCode (
EFI_IFR_TIME OpCode;
UINTN Position;
- ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED))) == 0);
+ ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY | EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED | EFI_IFR_FLAG_REST_STYLE))) == 0);
ASSERT ((TimeFlags & (~(QF_TIME_HOUR_SUPPRESS | QF_TIME_MINUTE_SUPPRESS | QF_TIME_SECOND_SUPPRESS | QF_TIME_STORAGE))) == 0);
ZeroMem (&OpCode, sizeof (OpCode));
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [VFR support REST_STYLE PATCH v4 4/4] MdeModulePkg/DriverSampleDxe: Add HII sample options
2020-11-06 2:49 [VFR support REST_STYLE PATCH v4 0/4] VFR support REST_STYLE Abner Chang
` (2 preceding siblings ...)
2020-11-06 2:49 ` [VFR support REST_STYLE PATCH v4 3/4] MdeModulePkg/Library: Revise HiiLib to check REST_STYLE Abner Chang
@ 2020-11-06 2:49 ` Abner Chang
[not found] ` <1644CDDEC21AD05F.25549@groups.io>
` (3 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Abner Chang @ 2020-11-06 2:49 UTC (permalink / raw)
To: devel
Cc: Jiaxin Wu, Siyuan Fu, Fan Wang, Jiewen Yao, Dandan Bi, Eric Dong,
Nickle Wang
Add x-uefi-ns keyword REST_STYLE HII option and non
x-uefi keyword REST_STYLE HII option.
Signed-off-by: Abner Chang <abner.chang@hpe.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Fan Wang <fan.wang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Nickle Wang <nickle.wang@hpe.com>
---
.../Universal/DriverSampleDxe/NVDataStruc.h | 5 ++-
.../Universal/DriverSampleDxe/Vfr.vfr | 36 +++++++++++++++++++
.../Universal/DriverSampleDxe/VfrStrings.uni | 8 +++++
3 files changed, 48 insertions(+), 1 deletion(-)
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h b/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
index 8617617684..a4ec1b4bd1 100644
--- a/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
+++ b/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
@@ -1,6 +1,7 @@
/** @file
-Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>*
+(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
Module Name:
@@ -92,6 +93,8 @@ typedef struct {
UINT16 BitNumeric : 12;
MY_BITS_DATA MyBitData;
MY_EFI_UNION_DATA MyUnionData;
+ UINT8 QuestionXUefiKeywordRestStyle;
+ UINT8 QuestionNonXUefiKeywordRestStyle;
} DRIVER_SAMPLE_CONFIGURATION;
//
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr b/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
index 65a65d4d1d..5323e2b411 100644
--- a/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
+++ b/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
@@ -3,6 +3,7 @@
// Sample Setup formset.
//
// Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
+// (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
//**/
@@ -289,6 +290,41 @@ formset
option text = STRING_TOKEN(STR_ONE_OF_TEXT3), value = 3, flags = 0;
endoneof;
+ //
+ // This is an HII option which has REST_STYLE flag and x-UEFI namespace
+ // UNI string associated. This HII option could be configured by either in-band
+ // edk2 setup browser or the remote management in out-of-band such as Redfish
+ // service. This HII option is configured through EFI_KEYWORD_HANDLER_PROTOCOL.
+ //
+ oneof varid = MyIfrNVData.QuestionXUefiKeywordRestStyle,
+ prompt = STRING_TOKEN(STR_ONE_OF_PROMPT_X_UEFI),
+ help = STRING_TOKEN(STR_ONE_OF_PROMPT_X_UEFI_HELP),
+ flags = RESET_REQUIRED | REST_STYLE,
+ option text = STRING_TOKEN(STR_ONE_OF_TEXT1), value = 0, flags = 0;
+ option text = STRING_TOKEN(STR_ONE_OF_TEXT2), value = 1, flags = DEFAULT;
+ option text = STRING_TOKEN(STR_ONE_OF_TEXT3), value = 3, flags = 0;
+ endoneof;
+
+
+ //
+ // This is a HII option which has REST_STYLE flag but without the x-UEFI namespace
+ // UNI string associated. This HII option could be configured by either
+ // setup browser or the remote management in out-of-band such as Redfish
+ // service. This HII option is configured through EFI HII Configuration Routing
+ // Protocol becasue it doesn't have x-UEFI namespace UNI string.
+ //
+ numeric varid = MyIfrNVData.QuestionNonXUefiKeywordRestStyle,
+ prompt = STRING_TOKEN(STR_ONE_OF_PROMPT_NON_X_UEFI),
+ help = STRING_TOKEN(STR_ONE_OF_PROMPT_NON_X_UEFI_HELP),
+ flags = RESET_REQUIRED | REST_STYLE,
+ minimum = 0,
+ maximum = 0xf0,
+ step = 0, // Stepping of 0 equates to a manual entering
+ // of a value, otherwise it will be adjusted by "+"/"-"
+ default = 0, // defaultstore could be used to specify the default type
+ // If no defaultstore is specified, it implies Standard Default
+ endnumeric;
+
//
// Define a string (EFI_IFR_STRING)
//
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni b/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni
index bafa194c63..9587e935a6 100644
--- a/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni
+++ b/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni
@@ -1,6 +1,7 @@
// *++
//
// Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
+// (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
// Module Name:
@@ -56,6 +57,13 @@
#language x-UEFI-ns "iSCSIBootEnable"
#string STR_CHECK_KEYWORD_SUPPORT #language en-US "Check iSCSI Boot Enable"
#language fr-FR "Check iSCSI Boot Enable"
+#string STR_ONE_OF_PROMPT_X_UEFI #language en-US "x-UEFI HII Option"
+ #language fr-FR "x-UEFI HII Option"
+ #language x-UEFI-ns "xUefiHiiOption"
+#string STR_ONE_OF_PROMPT_X_UEFI_HELP #language en-US "This is an HII option which has REST_STYLE flag and x-UEFI namespace UNI string associated. This HII option could be configured by either in-band edk2 setup browser or the remote management in out-of-band such as Redfish service. This HII option is configured through EFI_KEYWORD_HANDLER_PROTOCOL."
+#string STR_ONE_OF_PROMPT_NON_X_UEFI #language en-US "Non x-UEFI HII Option"
+ #language fr-FR "Non x-UEFI HII Option"
+#string STR_ONE_OF_PROMPT_NON_X_UEFI_HELP #language en-US "This is a HII option which has REST_STYLE flag but without the x-UEFI namespace UNI string associated. This HII option could be configured by either setup browser or the remote management in out-of-band such as Redfish service. This HII option is configured through EFI HII Configuration Routing Protocol becasue it doesn't have x-UEFI namespace UNI string."
#string STR_ONE_OF_HELP #language en-US "My one-of help is going to be a long string to test out the efficiency of the ability of the I am tired of typing capabilities"
#language fr-FR "Mi uno- de ayuda va a ser una cadena larga a probar fuera de la eficacia de la capacidad del yo es cansada de capacidades el pulsar."
#string STR_ONE_OF_TEXT1 #language en-US "My one-of text #1"
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [edk2-devel] [VFR support REST_STYLE PATCH v4 3/4] MdeModulePkg/Library: Revise HiiLib to check REST_STYLE
[not found] ` <1644CDDEC21AD05F.25549@groups.io>
@ 2020-11-06 3:55 ` Abner Chang
0 siblings, 0 replies; 10+ messages in thread
From: Abner Chang @ 2020-11-06 3:55 UTC (permalink / raw)
To: devel@edk2.groups.io, Chang, Abner (HPS SW/FW Technologist)
Cc: Dandan Bi, Eric Dong, Wang, Nickle (HPS SW), gaoliming
Add Limming.
> -----Original Message-----
> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of
> Abner Chang
> Sent: Friday, November 6, 2020 10:50 AM
> To: devel@edk2.groups.io
> Cc: Dandan Bi <dandan.bi@intel.com>; Eric Dong <eric.dong@intel.com>;
> Wang, Nickle (HPS SW) <nickle.wang@hpe.com>
> Subject: [edk2-devel] [VFR support REST_STYLE PATCH v4 3/4]
> MdeModulePkg/Library: Revise HiiLib to check REST_STYLE
>
> This change checks REST_STYLE flag.
>
> Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
> Signed-off-by: Ting Ye <ting.ye@intel.com>
> Signed-off-by: Siyuan Fu <siyuan.fu@intel.com>
> Signed-off-by: Fan Wang <fan.wang@intel.com>
> Signed-off-by: Abner Chang <abner.chang@hpe.com>
> Cc: Dandan Bi <dandan.bi@intel.com>
> Cc: Eric Dong <eric.dong@intel.com>
> Cc: Nickle Wang <nickle.wang@hpe.com>
> ---
> MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
> b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
> index 564169bc14..57602828fe 100644
> --- a/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
> +++ b/MdeModulePkg/Library/UefiHiiLib/HiiLib.c
> @@ -3605,7 +3605,7 @@ HiiCreateCheckBoxOpCode (
> EFI_IFR_CHECKBOX OpCode;
> UINTN Position;
>
> - ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED))) == 0);
> + ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED |
> EFI_IFR_FLAG_REST_STYLE))) == 0);
>
> ZeroMem (&OpCode, sizeof (OpCode));
> OpCode.Question.QuestionId = QuestionId;
> @@ -3674,7 +3674,7 @@ HiiCreateNumericOpCode (
> UINTN Position;
> UINTN Length;
>
> - ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED))) == 0);
> + ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED |
> EFI_IFR_FLAG_REST_STYLE))) == 0);
>
> Length = 0;
> ZeroMem (&OpCode, sizeof (OpCode));
> @@ -3773,7 +3773,7 @@ HiiCreateStringOpCode (
> EFI_IFR_STRING OpCode;
> UINTN Position;
>
> - ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED))) == 0);
> + ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED |
> EFI_IFR_FLAG_REST_STYLE))) == 0);
>
> ZeroMem (&OpCode, sizeof (OpCode));
> OpCode.Question.Header.Prompt = Prompt;
> @@ -3841,7 +3841,7 @@ HiiCreateOneOfOpCode (
> UINTN Length;
>
> ASSERT (OptionsOpCodeHandle != NULL);
> - ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED |
> EFI_IFR_FLAG_OPTIONS_ONLY))) == 0);
> + ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED |
> EFI_IFR_FLAG_REST_STYLE | EFI_IFR_FLAG_OPTIONS_ONLY))) == 0);
>
> ZeroMem (&OpCode, sizeof (OpCode));
> OpCode.Question.Header.Prompt = Prompt;
> @@ -3912,7 +3912,7 @@ HiiCreateOrderedListOpCode (
> UINTN Position;
>
> ASSERT (OptionsOpCodeHandle != NULL);
> - ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED |
> EFI_IFR_FLAG_OPTIONS_ONLY))) == 0);
> + ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED |
> EFI_IFR_FLAG_REST_STYLE | EFI_IFR_FLAG_OPTIONS_ONLY))) == 0);
>
> ZeroMem (&OpCode, sizeof (OpCode));
> OpCode.Question.Header.Prompt = Prompt;
> @@ -4009,7 +4009,7 @@ HiiCreateDateOpCode (
> EFI_IFR_DATE OpCode;
> UINTN Position;
>
> - ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED))) == 0);
> + ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED |
> EFI_IFR_FLAG_REST_STYLE))) == 0);
> ASSERT ((DateFlags & (~(EFI_QF_DATE_YEAR_SUPPRESS |
> EFI_QF_DATE_MONTH_SUPPRESS | EFI_QF_DATE_DAY_SUPPRESS |
> EFI_QF_DATE_STORAGE))) == 0);
>
> ZeroMem (&OpCode, sizeof (OpCode));
> @@ -4074,7 +4074,7 @@ HiiCreateTimeOpCode (
> EFI_IFR_TIME OpCode;
> UINTN Position;
>
> - ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED))) == 0);
> + ASSERT ((QuestionFlags & (~(EFI_IFR_FLAG_READ_ONLY |
> EFI_IFR_FLAG_CALLBACK | EFI_IFR_FLAG_RESET_REQUIRED |
> EFI_IFR_FLAG_REST_STYLE))) == 0);
> ASSERT ((TimeFlags & (~(QF_TIME_HOUR_SUPPRESS |
> QF_TIME_MINUTE_SUPPRESS | QF_TIME_SECOND_SUPPRESS |
> QF_TIME_STORAGE))) == 0);
>
> ZeroMem (&OpCode, sizeof (OpCode));
> --
> 2.17.1
>
>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [edk2-devel] [VFR support REST_STYLE PATCH v4 4/4] MdeModulePkg/DriverSampleDxe: Add HII sample options
[not found] ` <1644CDDF508612CA.7247@groups.io>
@ 2020-11-06 3:56 ` Abner Chang
0 siblings, 0 replies; 10+ messages in thread
From: Abner Chang @ 2020-11-06 3:56 UTC (permalink / raw)
To: devel@edk2.groups.io, Chang, Abner (HPS SW/FW Technologist)
Cc: Jiaxin Wu, Siyuan Fu, Fan Wang, Jiewen Yao, Dandan Bi, Eric Dong,
Wang, Nickle (HPS SW), gaoliming
Add Liming.
> -----Original Message-----
> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of
> Abner Chang
> Sent: Friday, November 6, 2020 10:50 AM
> To: devel@edk2.groups.io
> Cc: Jiaxin Wu <jiaxin.wu@intel.com>; Siyuan Fu <siyuan.fu@intel.com>; Fan
> Wang <fan.wang@intel.com>; Jiewen Yao <jiewen.yao@intel.com>; Dandan
> Bi <dandan.bi@intel.com>; Eric Dong <eric.dong@intel.com>; Wang, Nickle
> (HPS SW) <nickle.wang@hpe.com>
> Subject: [edk2-devel] [VFR support REST_STYLE PATCH v4 4/4]
> MdeModulePkg/DriverSampleDxe: Add HII sample options
>
> Add x-uefi-ns keyword REST_STYLE HII option and non x-uefi keyword
> REST_STYLE HII option.
>
> Signed-off-by: Abner Chang <abner.chang@hpe.com>
> Cc: Jiaxin Wu <jiaxin.wu@intel.com>
> Cc: Siyuan Fu <siyuan.fu@intel.com>
> Cc: Fan Wang <fan.wang@intel.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Dandan Bi <dandan.bi@intel.com>
> Cc: Eric Dong <eric.dong@intel.com>
> Cc: Nickle Wang <nickle.wang@hpe.com>
> ---
> .../Universal/DriverSampleDxe/NVDataStruc.h | 5 ++-
> .../Universal/DriverSampleDxe/Vfr.vfr | 36 +++++++++++++++++++
> .../Universal/DriverSampleDxe/VfrStrings.uni | 8 +++++
> 3 files changed, 48 insertions(+), 1 deletion(-)
>
> diff --git a/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
> b/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
> index 8617617684..a4ec1b4bd1 100644
> --- a/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
> +++ b/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
> @@ -1,6 +1,7 @@
> /** @file
>
> -Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
> +Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>*
> +(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
> SPDX-License-Identifier: BSD-2-Clause-Patent
>
> Module Name:
> @@ -92,6 +93,8 @@ typedef struct {
> UINT16 BitNumeric : 12;
> MY_BITS_DATA MyBitData;
> MY_EFI_UNION_DATA MyUnionData;
> + UINT8 QuestionXUefiKeywordRestStyle;
> + UINT8 QuestionNonXUefiKeywordRestStyle;
> } DRIVER_SAMPLE_CONFIGURATION;
>
> //
> diff --git a/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
> b/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
> index 65a65d4d1d..5323e2b411 100644
> --- a/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
> +++ b/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
> @@ -3,6 +3,7 @@
> // Sample Setup formset.
> //
> // Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
> +// (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
> // SPDX-License-Identifier: BSD-2-Clause-Patent // //**/ @@ -289,6
> +290,41 @@ formset
> option text = STRING_TOKEN(STR_ONE_OF_TEXT3), value = 3, flags = 0;
> endoneof;
>
> + //
> + // This is an HII option which has REST_STYLE flag and x-UEFI namespace
> + // UNI string associated. This HII option could be configured by either in-
> band
> + // edk2 setup browser or the remote management in out-of-band such as
> Redfish
> + // service. This HII option is configured through
> EFI_KEYWORD_HANDLER_PROTOCOL.
> + //
> + oneof varid = MyIfrNVData.QuestionXUefiKeywordRestStyle,
> + prompt = STRING_TOKEN(STR_ONE_OF_PROMPT_X_UEFI),
> + help = STRING_TOKEN(STR_ONE_OF_PROMPT_X_UEFI_HELP),
> + flags = RESET_REQUIRED | REST_STYLE,
> + option text = STRING_TOKEN(STR_ONE_OF_TEXT1), value = 0, flags = 0;
> + option text = STRING_TOKEN(STR_ONE_OF_TEXT2), value = 1, flags =
> DEFAULT;
> + option text = STRING_TOKEN(STR_ONE_OF_TEXT3), value = 3, flags = 0;
> + endoneof;
> +
> +
> + //
> + // This is a HII option which has REST_STYLE flag but without the x-UEFI
> namespace
> + // UNI string associated. This HII option could be configured by either
> + // setup browser or the remote management in out-of-band such as
> Redfish
> + // service. This HII option is configured through EFI HII Configuration
> Routing
> + // Protocol becasue it doesn't have x-UEFI namespace UNI string.
> + //
> + numeric varid = MyIfrNVData.QuestionNonXUefiKeywordRestStyle,
> + prompt = STRING_TOKEN(STR_ONE_OF_PROMPT_NON_X_UEFI),
> + help = STRING_TOKEN(STR_ONE_OF_PROMPT_NON_X_UEFI_HELP),
> + flags = RESET_REQUIRED | REST_STYLE,
> + minimum = 0,
> + maximum = 0xf0,
> + step = 0, // Stepping of 0 equates to a manual entering
> + // of a value, otherwise it will be adjusted by "+"/"-"
> + default = 0, // defaultstore could be used to specify the default
> type
> + // If no defaultstore is specified, it implies Standard Default
> + endnumeric;
> +
> //
> // Define a string (EFI_IFR_STRING)
> //
> diff --git a/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni
> b/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni
> index bafa194c63..9587e935a6 100644
> --- a/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni
> +++ b/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni
> @@ -1,6 +1,7 @@
> // *++
> //
> // Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
> +// (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
> // SPDX-License-Identifier: BSD-2-Clause-Patent // // Module Name:
> @@ -56,6 +57,13 @@
> #language x-UEFI-ns "iSCSIBootEnable"
> #string STR_CHECK_KEYWORD_SUPPORT #language en-US "Check iSCSI
> Boot Enable"
> #language fr-FR "Check iSCSI Boot Enable"
> +#string STR_ONE_OF_PROMPT_X_UEFI #language en-US "x-UEFI HII
> Option"
> + #language fr-FR "x-UEFI HII Option"
> + #language x-UEFI-ns "xUefiHiiOption"
> +#string STR_ONE_OF_PROMPT_X_UEFI_HELP #language en-US "This is an
> HII option which has REST_STYLE flag and x-UEFI namespace UNI string
> associated. This HII option could be configured by either in-band edk2 setup
> browser or the remote management in out-of-band such as Redfish service.
> This HII option is configured through EFI_KEYWORD_HANDLER_PROTOCOL."
> +#string STR_ONE_OF_PROMPT_NON_X_UEFI #language en-US "Non x-
> UEFI HII Option"
> + #language fr-FR "Non x-UEFI HII Option"
> +#string STR_ONE_OF_PROMPT_NON_X_UEFI_HELP #language en-US "This
> is a HII option which has REST_STYLE flag but without the x-UEFI namespace
> UNI string associated. This HII option could be configured by either setup
> browser or the remote management in out-of-band such as Redfish service.
> This HII option is configured through EFI HII Configuration Routing Protocol
> becasue it doesn't have x-UEFI namespace UNI string."
> #string STR_ONE_OF_HELP #language en-US "My one-of help is
> going to be a long string to test out the efficiency of the ability of the I am
> tired of typing capabilities"
> #language fr-FR "Mi uno- de ayuda va a ser una cadena
> larga a probar fuera de la eficacia de la capacidad del yo es cansada de
> capacidades el pulsar."
> #string STR_ONE_OF_TEXT1 #language en-US "My one-of text #1"
> --
> 2.17.1
>
>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* 回复: [edk2-devel] [VFR support REST_STYLE PATCH v4 0/4] VFR support REST_STYLE
2020-11-06 2:49 [VFR support REST_STYLE PATCH v4 0/4] VFR support REST_STYLE Abner Chang
` (5 preceding siblings ...)
[not found] ` <1644CDDF508612CA.7247@groups.io>
@ 2020-11-09 1:17 ` gaoliming
[not found] ` <1645B211979911D7.24110@groups.io>
7 siblings, 0 replies; 10+ messages in thread
From: gaoliming @ 2020-11-09 1:17 UTC (permalink / raw)
To: devel, abner.chang
Cc: 'Jiaxin Wu', 'Siyuan Fu', 'Fan Wang',
'Jiewen Yao', 'Dandan Bi', 'Eric Dong',
'Nickle Wang', 'Bob Feng', 'Yuwei Chen',
'Michael D Kinney', 'Zhiguang Liu'
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
> -----邮件原件-----
> 发件人: bounce+27952+67070+4905953+8761045@groups.io
> <bounce+27952+67070+4905953+8761045@groups.io> 代表 Abner Chang
> 发送时间: 2020年11月6日 10:50
> 收件人: devel@edk2.groups.io
> 抄送: Jiaxin Wu <jiaxin.wu@intel.com>; Siyuan Fu <siyuan.fu@intel.com>;
Fan
> Wang <fan.wang@intel.com>; Jiewen Yao <jiewen.yao@intel.com>; Dandan
> Bi <dandan.bi@intel.com>; Eric Dong <eric.dong@intel.com>; Nickle Wang
> <nickle.wang@hpe.com>; Bob Feng <bob.c.feng@intel.com>; Liming Gao
> <gaoliming@byosoft.com.cn>; Yuwei Chen <yuwei.chen@intel.com>; Michael
> D Kinney <michael.d.kinney@intel.com>; Zhiguang Liu
> <zhiguang.liu@intel.com>
> 主题: [edk2-devel] [VFR support REST_STYLE PATCH v4 0/4] VFR support
> REST_STYLE
>
> In v4:
> - We keep QuestionAboutTreeHugging option for the EFI keyword
> test.
> QuestionXUefiKeywordRestStyle for the EFI keyword with
> REST_STYLE.
> QuestionNonXUefiKeywordRestStyle for the non EFI keyword with
> REST_STYLE.
> - Change commit subject of 3/4 to
> "Revise HiiLib to check REST_STYLE"
>
> In v3, the patch includes the changes on HiiLib to support
> REST_STYLE flag.
>
> In v2, a typo found. Rename gEfiHiiResetStyleFormsetGuid to
> gEfiHiiRestStyleFormsetGuid.
>
> VFR compiler and other related changes to support REST_STYLE in VFR
> language for HII options to be configured in out-of-band management
> such as the Redfish service. Add two HII options in the Sample driver
> for REST_STYLE use cases.
>
> Signed-off-by: Abner Chang <abner.chang@hpe.com>
> Cc: Jiaxin Wu <jiaxin.wu@intel.com>
> Cc: Siyuan Fu <siyuan.fu@intel.com>
> Cc: Fan Wang <fan.wang@intel.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Dandan Bi <dandan.bi@intel.com>
> Cc: Eric Dong <eric.dong@intel.com>
> Cc: Nickle Wang <nickle.wang@hpe.com>
> Cc: Bob Feng <bob.c.feng@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Yuwei Chen <yuwei.chen@intel.com>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
>
> Abner Chang (4):
> MdePkg: Add GUID for REST Style Formset
> BaseTools/VfrCompile: VFR compiler supports REST_STYLE in HII option
> MdeModulePkg/Library: Revise HiiLib to check REST_STYLE
> MdeModulePkg/DriverSampleDxe: Add HII sample options
>
> BaseTools/Source/C/VfrCompile/VfrSyntax.g | 25 +++++++++++--
> MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 14 ++++----
> .../Universal/DriverSampleDxe/NVDataStruc.h | 5 ++-
> .../Universal/DriverSampleDxe/Vfr.vfr | 36
> +++++++++++++++++++
> .../Universal/DriverSampleDxe/VfrStrings.uni | 8 +++++
> MdePkg/MdePkg.dec | 2 +-
> 6 files changed, 78 insertions(+), 12 deletions(-)
>
> --
> 2.17.1
>
>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* 回复: [edk2-devel] [VFR support REST_STYLE PATCH v4 0/4] VFR support REST_STYLE
[not found] ` <1645B211979911D7.24110@groups.io>
@ 2020-11-11 0:49 ` gaoliming
2020-11-11 1:03 ` Abner Chang
0 siblings, 1 reply; 10+ messages in thread
From: gaoliming @ 2020-11-11 0:49 UTC (permalink / raw)
To: devel, gaoliming, abner.chang
Cc: 'Jiaxin Wu', 'Siyuan Fu', 'Fan Wang',
'Jiewen Yao', 'Dandan Bi', 'Eric Dong',
'Nickle Wang', 'Bob Feng', 'Yuwei Chen',
'Michael D Kinney', 'Zhiguang Liu'
Create PR https://github.com/tianocore/edk2/pull/1112 for this patch set.
> -----邮件原件-----
> 发件人: bounce+27952+67128+4905953+8761045@groups.io
> <bounce+27952+67128+4905953+8761045@groups.io> 代表 gaoliming
> 发送时间: 2020年11月9日 9:17
> 收件人: devel@edk2.groups.io; abner.chang@hpe.com
> 抄送: 'Jiaxin Wu' <jiaxin.wu@intel.com>; 'Siyuan Fu'
<siyuan.fu@intel.com>;
> 'Fan Wang' <fan.wang@intel.com>; 'Jiewen Yao' <jiewen.yao@intel.com>;
> 'Dandan Bi' <dandan.bi@intel.com>; 'Eric Dong' <eric.dong@intel.com>;
> 'Nickle Wang' <nickle.wang@hpe.com>; 'Bob Feng' <bob.c.feng@intel.com>;
> 'Yuwei Chen' <yuwei.chen@intel.com>; 'Michael D Kinney'
> <michael.d.kinney@intel.com>; 'Zhiguang Liu' <zhiguang.liu@intel.com>
> 主题: 回复: [edk2-devel] [VFR support REST_STYLE PATCH v4 0/4] VFR
> support REST_STYLE
>
> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
>
> > -----邮件原件-----
> > 发件人: bounce+27952+67070+4905953+8761045@groups.io
> > <bounce+27952+67070+4905953+8761045@groups.io> 代表 Abner
> Chang
> > 发送时间: 2020年11月6日 10:50
> > 收件人: devel@edk2.groups.io
> > 抄送: Jiaxin Wu <jiaxin.wu@intel.com>; Siyuan Fu <siyuan.fu@intel.com>;
> Fan
> > Wang <fan.wang@intel.com>; Jiewen Yao <jiewen.yao@intel.com>;
> Dandan
> > Bi <dandan.bi@intel.com>; Eric Dong <eric.dong@intel.com>; Nickle Wang
> > <nickle.wang@hpe.com>; Bob Feng <bob.c.feng@intel.com>; Liming Gao
> > <gaoliming@byosoft.com.cn>; Yuwei Chen <yuwei.chen@intel.com>;
> Michael
> > D Kinney <michael.d.kinney@intel.com>; Zhiguang Liu
> > <zhiguang.liu@intel.com>
> > 主题: [edk2-devel] [VFR support REST_STYLE PATCH v4 0/4] VFR support
> > REST_STYLE
> >
> > In v4:
> > - We keep QuestionAboutTreeHugging option for the EFI keyword
> > test.
> > QuestionXUefiKeywordRestStyle for the EFI keyword with
> > REST_STYLE.
> > QuestionNonXUefiKeywordRestStyle for the non EFI keyword
> with
> > REST_STYLE.
> > - Change commit subject of 3/4 to
> > "Revise HiiLib to check REST_STYLE"
> >
> > In v3, the patch includes the changes on HiiLib to support
> > REST_STYLE flag.
> >
> > In v2, a typo found. Rename gEfiHiiResetStyleFormsetGuid to
> > gEfiHiiRestStyleFormsetGuid.
> >
> > VFR compiler and other related changes to support REST_STYLE in VFR
> > language for HII options to be configured in out-of-band management
> > such as the Redfish service. Add two HII options in the Sample driver
> > for REST_STYLE use cases.
> >
> > Signed-off-by: Abner Chang <abner.chang@hpe.com>
> > Cc: Jiaxin Wu <jiaxin.wu@intel.com>
> > Cc: Siyuan Fu <siyuan.fu@intel.com>
> > Cc: Fan Wang <fan.wang@intel.com>
> > Cc: Jiewen Yao <jiewen.yao@intel.com>
> > Cc: Dandan Bi <dandan.bi@intel.com>
> > Cc: Eric Dong <eric.dong@intel.com>
> > Cc: Nickle Wang <nickle.wang@hpe.com>
> > Cc: Bob Feng <bob.c.feng@intel.com>
> > Cc: Liming Gao <gaoliming@byosoft.com.cn>
> > Cc: Yuwei Chen <yuwei.chen@intel.com>
> > Cc: Michael D Kinney <michael.d.kinney@intel.com>
> > Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> >
> > Abner Chang (4):
> > MdePkg: Add GUID for REST Style Formset
> > BaseTools/VfrCompile: VFR compiler supports REST_STYLE in HII option
> > MdeModulePkg/Library: Revise HiiLib to check REST_STYLE
> > MdeModulePkg/DriverSampleDxe: Add HII sample options
> >
> > BaseTools/Source/C/VfrCompile/VfrSyntax.g | 25 +++++++++++--
> > MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 14 ++++----
> > .../Universal/DriverSampleDxe/NVDataStruc.h | 5 ++-
> > .../Universal/DriverSampleDxe/Vfr.vfr | 36
> > +++++++++++++++++++
> > .../Universal/DriverSampleDxe/VfrStrings.uni | 8 +++++
> > MdePkg/MdePkg.dec | 2 +-
> > 6 files changed, 78 insertions(+), 12 deletions(-)
> >
> > --
> > 2.17.1
> >
> >
> >
> >
> >
>
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [edk2-devel] [VFR support REST_STYLE PATCH v4 0/4] VFR support REST_STYLE
2020-11-11 0:49 ` gaoliming
@ 2020-11-11 1:03 ` Abner Chang
0 siblings, 0 replies; 10+ messages in thread
From: Abner Chang @ 2020-11-11 1:03 UTC (permalink / raw)
To: devel@edk2.groups.io, gaoliming@byosoft.com.cn
Cc: 'Jiaxin Wu', 'Siyuan Fu', 'Fan Wang',
'Jiewen Yao', 'Dandan Bi', 'Eric Dong',
Wang, Nickle (HPS SW), 'Bob Feng', 'Yuwei Chen',
'Michael D Kinney', 'Zhiguang Liu'
Thanks Liming!
> -----Original Message-----
> From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of
> gaoliming
> Sent: Wednesday, November 11, 2020 8:49 AM
> To: devel@edk2.groups.io; gaoliming@byosoft.com.cn; Chang, Abner (HPS
> SW/FW Technologist) <abner.chang@hpe.com>
> Cc: 'Jiaxin Wu' <jiaxin.wu@intel.com>; 'Siyuan Fu' <siyuan.fu@intel.com>;
> 'Fan Wang' <fan.wang@intel.com>; 'Jiewen Yao' <jiewen.yao@intel.com>;
> 'Dandan Bi' <dandan.bi@intel.com>; 'Eric Dong' <eric.dong@intel.com>;
> Wang, Nickle (HPS SW) <nickle.wang@hpe.com>; 'Bob Feng'
> <bob.c.feng@intel.com>; 'Yuwei Chen' <yuwei.chen@intel.com>; 'Michael D
> Kinney' <michael.d.kinney@intel.com>; 'Zhiguang Liu'
> <zhiguang.liu@intel.com>
> Subject: 回复: [edk2-devel] [VFR support REST_STYLE PATCH v4 0/4] VFR
> support REST_STYLE
>
> Create PR https://github.com/tianocore/edk2/pull/1112 for this patch set.
>
> > -----邮件原件-----
> > 发件人: bounce+27952+67128+4905953+8761045@groups.io
> > <bounce+27952+67128+4905953+8761045@groups.io> 代表 gaoliming
> > 发送时间: 2020年11月9日 9:17
> > 收件人: devel@edk2.groups.io; abner.chang@hpe.com
> > 抄送: 'Jiaxin Wu' <jiaxin.wu@intel.com>; 'Siyuan Fu'
> <siyuan.fu@intel.com>;
> > 'Fan Wang' <fan.wang@intel.com>; 'Jiewen Yao' <jiewen.yao@intel.com>;
> > 'Dandan Bi' <dandan.bi@intel.com>; 'Eric Dong' <eric.dong@intel.com>;
> > 'Nickle Wang' <nickle.wang@hpe.com>; 'Bob Feng'
> > <bob.c.feng@intel.com>; 'Yuwei Chen' <yuwei.chen@intel.com>; 'Michael
> D Kinney'
> > <michael.d.kinney@intel.com>; 'Zhiguang Liu' <zhiguang.liu@intel.com>
> > 主题: 回复: [edk2-devel] [VFR support REST_STYLE PATCH v4 0/4] VFR
> support
> > REST_STYLE
> >
> > Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
> >
> > > -----邮件原件-----
> > > 发件人: bounce+27952+67070+4905953+8761045@groups.io
> > > <bounce+27952+67070+4905953+8761045@groups.io> 代表 Abner
> > Chang
> > > 发送时间: 2020年11月6日 10:50
> > > 收件人: devel@edk2.groups.io
> > > 抄送: Jiaxin Wu <jiaxin.wu@intel.com>; Siyuan Fu
> > > <siyuan.fu@intel.com>;
> > Fan
> > > Wang <fan.wang@intel.com>; Jiewen Yao <jiewen.yao@intel.com>;
> > Dandan
> > > Bi <dandan.bi@intel.com>; Eric Dong <eric.dong@intel.com>; Nickle
> > > Wang <nickle.wang@hpe.com>; Bob Feng <bob.c.feng@intel.com>;
> Liming
> > > Gao <gaoliming@byosoft.com.cn>; Yuwei Chen
> <yuwei.chen@intel.com>;
> > Michael
> > > D Kinney <michael.d.kinney@intel.com>; Zhiguang Liu
> > > <zhiguang.liu@intel.com>
> > > 主题: [edk2-devel] [VFR support REST_STYLE PATCH v4 0/4] VFR support
> > > REST_STYLE
> > >
> > > In v4:
> > > - We keep QuestionAboutTreeHugging option for the EFI keyword
> > > test.
> > > QuestionXUefiKeywordRestStyle for the EFI keyword with
> > > REST_STYLE.
> > > QuestionNonXUefiKeywordRestStyle for the non EFI keyword
> > with
> > > REST_STYLE.
> > > - Change commit subject of 3/4 to
> > > "Revise HiiLib to check REST_STYLE"
> > >
> > > In v3, the patch includes the changes on HiiLib to support
> > > REST_STYLE flag.
> > >
> > > In v2, a typo found. Rename gEfiHiiResetStyleFormsetGuid to
> > > gEfiHiiRestStyleFormsetGuid.
> > >
> > > VFR compiler and other related changes to support REST_STYLE in VFR
> > > language for HII options to be configured in out-of-band management
> > > such as the Redfish service. Add two HII options in the Sample
> > > driver for REST_STYLE use cases.
> > >
> > > Signed-off-by: Abner Chang <abner.chang@hpe.com>
> > > Cc: Jiaxin Wu <jiaxin.wu@intel.com>
> > > Cc: Siyuan Fu <siyuan.fu@intel.com>
> > > Cc: Fan Wang <fan.wang@intel.com>
> > > Cc: Jiewen Yao <jiewen.yao@intel.com>
> > > Cc: Dandan Bi <dandan.bi@intel.com>
> > > Cc: Eric Dong <eric.dong@intel.com>
> > > Cc: Nickle Wang <nickle.wang@hpe.com>
> > > Cc: Bob Feng <bob.c.feng@intel.com>
> > > Cc: Liming Gao <gaoliming@byosoft.com.cn>
> > > Cc: Yuwei Chen <yuwei.chen@intel.com>
> > > Cc: Michael D Kinney <michael.d.kinney@intel.com>
> > > Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> > >
> > > Abner Chang (4):
> > > MdePkg: Add GUID for REST Style Formset
> > > BaseTools/VfrCompile: VFR compiler supports REST_STYLE in HII option
> > > MdeModulePkg/Library: Revise HiiLib to check REST_STYLE
> > > MdeModulePkg/DriverSampleDxe: Add HII sample options
> > >
> > > BaseTools/Source/C/VfrCompile/VfrSyntax.g | 25 +++++++++++--
> > > MdeModulePkg/Library/UefiHiiLib/HiiLib.c | 14 ++++----
> > > .../Universal/DriverSampleDxe/NVDataStruc.h | 5 ++-
> > > .../Universal/DriverSampleDxe/Vfr.vfr | 36
> > > +++++++++++++++++++
> > > .../Universal/DriverSampleDxe/VfrStrings.uni | 8 +++++
> > > MdePkg/MdePkg.dec | 2 +-
> > > 6 files changed, 78 insertions(+), 12 deletions(-)
> > >
> > > --
> > > 2.17.1
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2020-11-11 1:03 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-06 2:49 [VFR support REST_STYLE PATCH v4 0/4] VFR support REST_STYLE Abner Chang
2020-11-06 2:49 ` [VFR support REST_STYLE PATCH v4 1/4] MdePkg: Add GUID for REST Style Formset Abner Chang
2020-11-06 2:49 ` [VFR support REST_STYLE PATCH v4 2/4] BaseTools/VfrCompile: VFR compiler supports REST_STYLE in HII option Abner Chang
2020-11-06 2:49 ` [VFR support REST_STYLE PATCH v4 3/4] MdeModulePkg/Library: Revise HiiLib to check REST_STYLE Abner Chang
2020-11-06 2:49 ` [VFR support REST_STYLE PATCH v4 4/4] MdeModulePkg/DriverSampleDxe: Add HII sample options Abner Chang
[not found] ` <1644CDDEC21AD05F.25549@groups.io>
2020-11-06 3:55 ` [edk2-devel] [VFR support REST_STYLE PATCH v4 3/4] MdeModulePkg/Library: Revise HiiLib to check REST_STYLE Abner Chang
[not found] ` <1644CDDF508612CA.7247@groups.io>
2020-11-06 3:56 ` [edk2-devel] [VFR support REST_STYLE PATCH v4 4/4] MdeModulePkg/DriverSampleDxe: Add HII sample options Abner Chang
2020-11-09 1:17 ` 回复: [edk2-devel] [VFR support REST_STYLE PATCH v4 0/4] VFR support REST_STYLE gaoliming
[not found] ` <1645B211979911D7.24110@groups.io>
2020-11-11 0:49 ` gaoliming
2020-11-11 1:03 ` Abner Chang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox