mirror of https://github.com/acidanthera/audk.git
Add disableif statement example, and suppressif form example.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9653 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9fe425c9c8
commit
9c16959509
|
@ -84,7 +84,7 @@ formset
|
|||
// Define a EFI variable Storage (EFI_IFR_VARSTORE_EFI)
|
||||
//
|
||||
efivarstore MyEfiVar, // Define referenced name in vfr
|
||||
attribute = EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE, // EFI variable attribures
|
||||
attribute = EFI_VARIABLE_BOOTSERVICE_ACCESS, // EFI variable attribures
|
||||
name = STRING_TOKEN(STR_VAR_NAME), // EFI variable name
|
||||
varsize = 1, // Size of the EFI variable
|
||||
guid = FORMSET_GUID; // EFI variable GUID
|
||||
|
@ -209,7 +209,7 @@ formset
|
|||
|
||||
endif; // end suppressif
|
||||
|
||||
suppressif ideqval MyIfrNVData.SuppressGrayOutSomething == 0x2;
|
||||
disableif ideqval MyIfrNVData.SuppressGrayOutSomething == 0x2;
|
||||
orderedlist
|
||||
varid = MyIfrNVData.OrderedList,
|
||||
prompt = STRING_TOKEN(STR_TEST_OPCODE),
|
||||
|
@ -390,6 +390,7 @@ formset
|
|||
|
||||
endform;
|
||||
|
||||
suppressif ideqval MyIfrNVData.BootOrderLarge == 0;
|
||||
form formid = 2, // SecondSetupPage,
|
||||
title = STRING_TOKEN(STR_FORM2_TITLE); // note formid is a variable (for readability) (UINT16) - also added Form to the line to signify the Op-Code
|
||||
|
||||
|
@ -494,6 +495,7 @@ formset
|
|||
help = STRING_TOKEN(STR_GOTO_HELP);
|
||||
|
||||
endform;
|
||||
endif;
|
||||
|
||||
form formid = 3, title = STRING_TOKEN(STR_FORM3_TITLE); // note formid is a variable (for readability) (UINT16) - also added Form to the line to signify the Op-Code
|
||||
|
||||
|
|
Loading…
Reference in New Issue