Add a new implementation policy of get default value in HiiDatabaseDxe
and SetupBrowserDxe.
The new policy is only for the situation that a question has default
value but doesn't have default value for all supported default type.
In this case, we will choose the smallest default id from the existing
defaults, and share its value to other default id which has no
default value.

Notes:
v1->V2:
-Patch 1: Clarify that when the type of DefaultValueData is 
DefaultValueFromOtherDefault, it can be overrode by itself.
-Patch 2: Generate DefaultStoreList as ascending order directly instead of 
using function GetDefaultIdArray().

Cc: Liming Gao <liming....@intel.com>
Cc: Eric Dong <eric.d...@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan...@intel.com>

Dandan Bi (2):
  MdeModulePkg/HiiDB: Share default if some default value are not
    specified
  MdeModulePkg/Browser: Share default if some default value are not
    specified

 .../Universal/HiiDatabaseDxe/ConfigRouting.c       | 116 ++++++++++++++++++---
 .../Universal/HiiDatabaseDxe/HiiDatabase.h         |   2 +
 MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c  |  25 ++++-
 MdeModulePkg/Universal/SetupBrowserDxe/Setup.c     |  23 +++-
 4 files changed, 145 insertions(+), 21 deletions(-)

-- 
1.9.5.msysgit.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to