**/\r
\r
#include "UefiShellDebug1CommandsLib.h"\r
+#include <Library/BcfgCommandLib.h>\r
\r
STATIC CONST CHAR16 mFileName[] = L"Debug1Commands";\r
EFI_HANDLE gShellDebug1HiiHandle = NULL;\r
ShellCommandRegisterCommandName(L"edit", ShellCommandRunEdit , ShellCommandGetManFileNameDebug1, 0, L"Debug1", TRUE, gShellDebug1HiiHandle, STRING_TOKEN(STR_GET_HELP_EDIT) );\r
ShellCommandRegisterCommandName(L"hexedit", ShellCommandRunHexEdit , ShellCommandGetManFileNameDebug1, 0, L"Debug1", TRUE, gShellDebug1HiiHandle, STRING_TOKEN(STR_GET_HELP_HEXEDIT) );\r
\r
- //\r
- // check install profile bit of the profiles mask is set\r
- //\r
- if ((PcdGet8(PcdShellProfileMask) & BIT2) == 0) {\r
- ShellCommandRegisterCommandName(L"bcfg", ShellCommandRunBcfg , ShellCommandGetManFileNameDebug1, 0, L"Debug1", TRUE, gShellDebug1HiiHandle, STRING_TOKEN(STR_GET_HELP_BCFG) );\r
- }\r
-\r
-\r
-\r
-\r
ShellCommandRegisterAlias(L"dmem", L"mem");\r
\r
+ BcfgLibraryRegisterBcfgCommand(ImageHandle, SystemTable, L"Debug1");\r
+\r
return (EFI_SUCCESS);\r
}\r
\r
if (gShellDebug1HiiHandle != NULL) {\r
HiiRemovePackages(gShellDebug1HiiHandle);\r
}\r
+\r
+ BcfgLibraryUnregisterBcfgCommand(ImageHandle, SystemTable);\r
return (EFI_SUCCESS);\r
}\r
\r