SecurityPkg OpalPasswordDxe: Install menu without device dependency.

Change design to always install opal menu.
Current implementation only install menu when device connect.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
Eric Dong
2016-05-04 10:29:26 +08:00
committed by Star Zeng
parent 12087ff6d6
commit f14307489f
3 changed files with 6 additions and 59 deletions

View File

@@ -24,10 +24,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
OPAL_DRIVER mOpalDriver;
// flag to track hii installation
BOOLEAN gHiiInstalled = FALSE;
#define MAX_PASSWORD_SIZE 32
#define MAX_PASSWORD_TRY_COUNT 5
@@ -732,6 +728,11 @@ EfiDriverEntryPoint(
&ReadyToBootEvent
);
//
// Install Hii packages.
//
HiiInstall();
return Status;
}
@@ -965,14 +966,6 @@ OpalEfiDriverBindingStart(
AddDeviceToTail(Dev);
//
// Install Hii if it hasn't already been installed
//
if (!gHiiInstalled) {
HiiInstall();
gHiiInstalled = TRUE;
}
//
// check if device is locked and prompt for password
//