mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
The UEFI Shell specification classifies shell commands into various shell
levels / profiles.
Currently the DumpHex() internal function is only used by commands that
belong to the Debug1 profile exclusively (i.e., they are not required to
be present in other than Debug1 profiles):
- SMBIOSVIEW
- PCI
- DMPSTORE
- DMEM
- DBLK
In the next patch, we'd like to call DumpHex() from BCFG as well. However,
BCFG is not only required to be present in the Debug1 profile; the
Install1 profile contains BCFG as well. For this reason, move DumpHex()
from UefiShellDebug1CommandsLib to the more generic UefiShellCommandLib,
which "Provides interface to shell internal functions for shell commands".
The matching header file is "ShellPkg/Include/Library/ShellCommandLib.h".
Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ryan Harkin <ryan.harkin@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19717 6f19259b-4bc3-4df7-8a09-765794883524
(cherry picked from commit 3bd8960362)
69 lines
2.4 KiB
INI
69 lines
2.4 KiB
INI
## @file
|
|
# Provides interface to shell internal functions for shell commands.
|
|
#
|
|
# Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved. <BR>
|
|
#
|
|
# This program and the accompanying materials
|
|
# are licensed and made available under the terms and conditions of the BSD License
|
|
# which accompanies this distribution. The full text of the license may be found at
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
#
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010006
|
|
BASE_NAME = UefiShellCommandLib
|
|
FILE_GUID = 5C12F31F-EBAC-466e-A400-FCA8C9EA3A05
|
|
MODULE_TYPE = UEFI_DRIVER
|
|
VERSION_STRING = 1.1
|
|
LIBRARY_CLASS = ShellCommandLib|UEFI_APPLICATION UEFI_DRIVER DXE_RUNTIME_DRIVER
|
|
CONSTRUCTOR = ShellCommandLibConstructor
|
|
DESTRUCTOR = ShellCommandLibDestructor
|
|
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
|
|
#
|
|
|
|
[Sources.common]
|
|
UefiShellCommandLib.c
|
|
UefiShellCommandLib.h
|
|
ConsistMapping.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
ShellPkg/ShellPkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
|
|
[LibraryClasses]
|
|
MemoryAllocationLib
|
|
BaseLib
|
|
BaseMemoryLib
|
|
DebugLib
|
|
PrintLib
|
|
UefiBootServicesTableLib
|
|
ShellLib
|
|
HiiLib
|
|
HandleParsingLib
|
|
|
|
[Protocols]
|
|
gEfiUnicodeCollation2ProtocolGuid ## CONSUMES
|
|
gEfiShellProtocolGuid ## CONSUMES
|
|
gEfiShellParametersProtocolGuid ## CONSUMES
|
|
gEfiShellDynamicCommandProtocolGuid ## SOMETIMES_CONSUMES
|
|
gEfiUsbIoProtocolGuid ## SOMETIMES_CONSUMES
|
|
|
|
[Guids]
|
|
gEfiSasDevicePathGuid ## CONSUMES ## GUID
|
|
|
|
[Pcd.common]
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellSupportLevel ## CONSUMES
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellMapNameLength ## CONSUMES
|
|
gEfiShellPkgTokenSpaceGuid.PcdUsbExtendedDecode ## SOMETIMES_CONSUMES
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellDecodeIScsiMapNames ## SOMETIMES_CONSUMES
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellVendorExtendedDecode ## SOMETIMES_CONSUMES
|
|
|
|
[Depex]
|
|
gEfiUnicodeCollation2ProtocolGuid
|