VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.c@ 85716

Last change on this file since 85716 was 80721, checked in by vboxsync, 6 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1/** @file
2 Main file for NULL named library for install1 shell command functions.
3
4 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9#include <Library/BcfgCommandLib.h>
10
11/**
12 Constructor for the Shell Level 1 Commands library.
13
14 Install the handlers for level 1 UEFI Shell 2.0 commands.
15
16 @param ImageHandle the image handle of the process
17 @param SystemTable the EFI System Table pointer
18
19 @retval EFI_SUCCESS the shell command handlers were installed sucessfully
20 @retval EFI_UNSUPPORTED the shell level required was not found.
21**/
22EFI_STATUS
23EFIAPI
24ShellInstall1CommandsLibConstructor (
25 IN EFI_HANDLE ImageHandle,
26 IN EFI_SYSTEM_TABLE *SystemTable
27 )
28{
29 //
30 // check our bit of the profiles mask
31 //
32 if ((PcdGet8(PcdShellProfileMask) & BIT2) == 0) {
33 return (EFI_SUCCESS);
34 }
35
36 return (BcfgLibraryRegisterBcfgCommand(ImageHandle, SystemTable, L"Install1"));
37}
38
39/**
40 Destructor for the library. free any resources.
41
42 @param ImageHandle The image handle of the process.
43 @param SystemTable The EFI System Table pointer.
44**/
45EFI_STATUS
46EFIAPI
47ShellInstall1CommandsLibDestructor (
48 IN EFI_HANDLE ImageHandle,
49 IN EFI_SYSTEM_TABLE *SystemTable
50 )
51{
52 return (BcfgLibraryUnregisterBcfgCommand(ImageHandle, SystemTable));
53}
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette