Refine BdsDxe driver and GenericBdsLib library so that the GenericBdsLib doesn't depend on the BdsDxe implementation.
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13418 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -232,6 +232,14 @@ CallBootManager (
|
||||
|
||||
BdsLibEnumerateAllBootOption (&mBootOptionsList);
|
||||
|
||||
//
|
||||
// Group the legacy boot options for the same device type
|
||||
//
|
||||
GroupMultipleLegacyBootOption4SameType ();
|
||||
|
||||
InitializeListHead (&mBootOptionsList);
|
||||
BdsLibBuildOptionFromVar (&mBootOptionsList, L"BootOrder");
|
||||
|
||||
HiiHandle = gBootManagerPrivate.HiiHandle;
|
||||
|
||||
//
|
||||
@@ -268,9 +276,9 @@ CallBootManager (
|
||||
mKeyInput++;
|
||||
|
||||
//
|
||||
// Don't display the boot option marked as LOAD_OPTION_HIDDEN
|
||||
// Don't display the hidden/inactive boot option
|
||||
//
|
||||
if ((Option->Attribute & LOAD_OPTION_HIDDEN) != 0) {
|
||||
if (((Option->Attribute & LOAD_OPTION_HIDDEN) != 0) || ((Option->Attribute & LOAD_OPTION_ACTIVE) == 0)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user