Files
slimbootloader/BootloaderCommonPkg/Library/ShellLib/ShellLib.inf
T
Maurice Ma 12f6f62630 Add MiniShell support for debug purpose
Soemtimes when JTAG based debug is not available, it might be easier
to have Shell access in earlier stage to check lots of platform
settings. Today it is impossible because full Shell has lots of other
dependencies which might not satisfy in early stage. This patch added
a PCD PcdMiniShellEnabled to build a mini Shell with very few
dependencies. This mini Shell can be used in early debug phase for SBL.

To use it, add the following to override the PCD for a specific stage
in BootloaderCorePkg.dsc.
EX:
    $(PLATFORM_PACKAGE)/Stage1B/Stage1B.inf {
      <PcdsFeatureFlag>
        gPlatformCommonLibTokenSpaceGuid.PcdMiniShellEnabled | TRUE
      ...
    }
Then include ShellLib.h in stage C code and add ShellLib in related
stage INF file. If adding it into Stage1A, it needs to be after the
Stage1A banner print out.

Signed-off-by: Maurice Ma <maurice.ma@intel.com>
2019-12-18 21:29:07 -07:00

83 lines
1.5 KiB
INI

## @file
#
# Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = ShellLib
FILE_GUID = C0297BE1-944B-4134-AC79-AA928F74AE31
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = ShellLib
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64 IPF
#
[Sources]
CmdBoot.c
CmdCpuid.c
CmdDmesg.c
CmdExit.c
CmdHelp.c
CmdHob.c
CmdMm.c
CmdMmap.c
CmdMmcDll.c
CmdMsr.c
CmdMtrr.c
CmdPci.c
CmdPciUtil.c
CmdPerf.c
CmdReset.c
CmdUcode.c
CmdCdata.c
CmdCls.c
CmdFs.c
ShellCmds.c
Parsing.c
Printing.c
History.c
Shell.c
[Packages]
MdePkg/MdePkg.dec
BootloaderCommonPkg/BootloaderCommonPkg.dec
[LibraryClasses]
BaseLib
BaseMemoryLib
DebugLib
ConsoleInLib
ConsoleOutLib
PrintLib
IoLib
MmcAccessLib
MmcTuningLib
TimerLib
PciExpressLib
HobLib
BootOptionLib
ResetSystemLib
BootloaderCommonLib
MemoryAllocationLib
SortLib
FileSystemLib
PartitionLib
ShellExtensionLib
[Pcd]
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress
gPlatformCommonLibTokenSpaceGuid.PcdMiniShellEnabled
[Guids]
gLoaderPerformanceInfoGuid
gLoaderMemoryMapInfoGuid
gOsBootOptionGuid
gLoaderFspInfoGuid