]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/HiiDatabaseDxe: Support EfiVarStore to get AltCfg from Driver
authorDandan Bi <dandan.bi@intel.com>
Wed, 13 Apr 2016 08:47:25 +0000 (16:47 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 19 Apr 2016 09:53:59 +0000 (17:53 +0800)
commit74e8963c9b661eaa4e828b0ad2d8925e1622ac49
tree26f3de507d73e5ab6d790a183d6cd22a6c8e8901
parent9b72af13e294600faa6819c63b3808d5c3803275
MdeModulePkg/HiiDatabaseDxe: Support EfiVarStore to get AltCfg from Driver

Allow EfiVarStore to get <AltResp> from Hii Driver, and enhance code logic
in MergeDefaultString function to get a full AltCfgResp.
The logic in function MergeDefaultString after enhancement:
(1) If there are no <AltResp> in AltCfgResp, merge the <AltResp> in
DefaultAltCfgResp to AltCfgResp.
(2) If there are <AltResp> in AltCfgResp, for the same <AltConfigHdr>, if
the <ConfigElement> already in AltCfgResp, don't need to merge from
DefaultAltCfgResp, else merge the <ConfigElement> in the DefaultAltCfgResp
to the related <AltResp> in AltCfgResp.
AltCfgResp: Generated by Driver.
DefaultAltCfgResp: Generated by HiiDatabase.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c