ShellPkg: Use the new library for "bcfg" command
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Chris Phillips <chrisp@hp.com> Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com> Reviewed by: Tapan Shah <tapandshah@hp.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16093 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -13,6 +13,7 @@
|
||||
**/
|
||||
|
||||
#include "UefiShellDebug1CommandsLib.h"
|
||||
#include <Library/BcfgCommandLib.h>
|
||||
|
||||
STATIC CONST CHAR16 mFileName[] = L"Debug1Commands";
|
||||
EFI_HANDLE gShellDebug1HiiHandle = NULL;
|
||||
@ -84,18 +85,10 @@ UefiShellDebug1CommandsLibConstructor (
|
||||
ShellCommandRegisterCommandName(L"edit", ShellCommandRunEdit , ShellCommandGetManFileNameDebug1, 0, L"Debug1", TRUE, gShellDebug1HiiHandle, STRING_TOKEN(STR_GET_HELP_EDIT) );
|
||||
ShellCommandRegisterCommandName(L"hexedit", ShellCommandRunHexEdit , ShellCommandGetManFileNameDebug1, 0, L"Debug1", TRUE, gShellDebug1HiiHandle, STRING_TOKEN(STR_GET_HELP_HEXEDIT) );
|
||||
|
||||
//
|
||||
// check install profile bit of the profiles mask is set
|
||||
//
|
||||
if ((PcdGet8(PcdShellProfileMask) & BIT2) == 0) {
|
||||
ShellCommandRegisterCommandName(L"bcfg", ShellCommandRunBcfg , ShellCommandGetManFileNameDebug1, 0, L"Debug1", TRUE, gShellDebug1HiiHandle, STRING_TOKEN(STR_GET_HELP_BCFG) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
ShellCommandRegisterAlias(L"dmem", L"mem");
|
||||
|
||||
BcfgLibraryRegisterBcfgCommand(ImageHandle, SystemTable, L"Debug1");
|
||||
|
||||
return (EFI_SUCCESS);
|
||||
}
|
||||
|
||||
@ -115,6 +108,8 @@ UefiShellDebug1CommandsLibDestructor (
|
||||
if (gShellDebug1HiiHandle != NULL) {
|
||||
HiiRemovePackages(gShellDebug1HiiHandle);
|
||||
}
|
||||
|
||||
BcfgLibraryUnregisterBcfgCommand(ImageHandle, SystemTable);
|
||||
return (EFI_SUCCESS);
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,6 @@
|
||||
Mm.c
|
||||
SetVar.c
|
||||
SerMode.c
|
||||
Bcfg.c
|
||||
Pci.c
|
||||
Pci.h
|
||||
DmpStore.c
|
||||
@ -115,6 +114,7 @@
|
||||
UefiBootServicesTableLib
|
||||
SortLib
|
||||
PrintLib
|
||||
BcfgCommandLib
|
||||
|
||||
[Pcd]
|
||||
gEfiShellPkgTokenSpaceGuid.PcdShellProfileMask # ALWAYS_CONSUMED
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user