2 Main file for NULL named library for install1 shell command functions.
4 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include <Library/BcfgCommandLib.h>
12 Constructor for the Shell Level 1 Commands library.
14 Install the handlers for level 1 UEFI Shell 2.0 commands.
16 @param ImageHandle the image handle of the process
17 @param SystemTable the EFI System Table pointer
19 @retval EFI_SUCCESS the shell command handlers were installed sucessfully
20 @retval EFI_UNSUPPORTED the shell level required was not found.
24 ShellInstall1CommandsLibConstructor (
25 IN EFI_HANDLE ImageHandle
,
26 IN EFI_SYSTEM_TABLE
*SystemTable
30 // check our bit of the profiles mask
32 if ((PcdGet8 (PcdShellProfileMask
) & BIT2
) == 0) {
36 return (BcfgLibraryRegisterBcfgCommand (ImageHandle
, SystemTable
, L
"Install1"));
40 Destructor for the library. free any resources.
42 @param ImageHandle The image handle of the process.
43 @param SystemTable The EFI System Table pointer.
47 ShellInstall1CommandsLibDestructor (
48 IN EFI_HANDLE ImageHandle
,
49 IN EFI_SYSTEM_TABLE
*SystemTable
52 return (BcfgLibraryUnregisterBcfgCommand (ImageHandle
, SystemTable
));