Files
slimbootloader/BootloaderCommonPkg/Library/ConsoleInLib/ConsoleInLib.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

34 lines
794 B
INI

## @file
# INF for console input library
#
# Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = ConsoleInLib
FILE_GUID = 1F78F562-79BB-4090-9110-729E870B84F4
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = ConsoleInLib
[Sources]
ConsoleInLib.c
[Packages]
MdePkg/MdePkg.dec
BootloaderCommonPkg/BootloaderCommonPkg.dec
[LibraryClasses]
BaseLib
SerialPortLib
UsbKbLib
[Guids]
[Pcd]
gPlatformCommonLibTokenSpaceGuid.PcdConsoleInDeviceMask
gPlatformCommonLibTokenSpaceGuid.PcdSourceDebugEnabled