2010-09-14 07:18:09 +02:00
|
|
|
## @file
|
2009-05-07 20:46:18 +02:00
|
|
|
# Shell Package
|
|
|
|
#
|
2021-03-12 06:33:26 +01:00
|
|
|
# Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>
|
2020-06-19 13:59:54 +02:00
|
|
|
# Copyright (c) 2018 - 2020, Arm Limited. All rights reserved.<BR>
|
2020-02-28 15:26:38 +01:00
|
|
|
# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
|
2009-05-07 20:46:18 +02:00
|
|
|
#
|
2019-04-04 01:07:06 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2009-05-07 20:46:18 +02:00
|
|
|
#
|
2010-02-24 00:58:38 +01:00
|
|
|
##
|
2009-05-07 20:46:18 +02:00
|
|
|
|
|
|
|
[Defines]
|
|
|
|
PLATFORM_NAME = Shell
|
|
|
|
PLATFORM_GUID = E1DC9BF8-7013-4c99-9437-795DAA45F3BD
|
2018-01-24 06:51:10 +01:00
|
|
|
PLATFORM_VERSION = 1.02
|
2009-05-11 20:02:16 +02:00
|
|
|
DSC_SPECIFICATION = 0x00010006
|
2009-05-07 20:46:18 +02:00
|
|
|
OUTPUT_DIRECTORY = Build/Shell
|
2020-02-28 15:26:38 +01:00
|
|
|
SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64
|
2016-01-19 05:07:34 +01:00
|
|
|
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
2009-05-07 20:46:18 +02:00
|
|
|
SKUID_IDENTIFIER = DEFAULT
|
|
|
|
|
2021-03-12 06:33:26 +01:00
|
|
|
!include MdePkg/MdeLibs.dsc.inc
|
|
|
|
|
2010-09-14 07:18:09 +02:00
|
|
|
[LibraryClasses.common]
|
2009-05-07 20:46:18 +02:00
|
|
|
UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
|
2017-10-31 03:47:31 +01:00
|
|
|
UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
|
2009-05-07 20:46:18 +02:00
|
|
|
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
2013-07-26 05:14:08 +02:00
|
|
|
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf
|
2016-05-05 07:35:42 +02:00
|
|
|
!if $(TARGET) == RELEASE
|
|
|
|
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
|
|
|
!else
|
2011-05-17 00:12:20 +02:00
|
|
|
DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
|
2016-05-05 07:35:42 +02:00
|
|
|
!endif
|
2016-03-02 03:13:54 +01:00
|
|
|
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
2009-05-07 20:46:18 +02:00
|
|
|
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
|
|
|
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
|
|
|
|
BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
|
2009-05-11 20:02:16 +02:00
|
|
|
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
2010-09-14 07:18:09 +02:00
|
|
|
PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
|
2015-01-13 02:04:07 +01:00
|
|
|
FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
|
|
|
|
SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
|
2009-05-07 20:46:18 +02:00
|
|
|
UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
|
2009-06-16 02:23:19 +02:00
|
|
|
UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
|
|
|
|
HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
|
2019-05-17 10:50:34 +02:00
|
|
|
!include NetworkPkg/NetworkLibs.dsc.inc
|
2010-09-14 07:18:09 +02:00
|
|
|
|
2009-06-16 01:45:12 +02:00
|
|
|
ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
|
2010-09-14 07:18:09 +02:00
|
|
|
ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
|
2009-06-16 02:23:19 +02:00
|
|
|
ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
|
2010-09-14 07:18:09 +02:00
|
|
|
HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
|
ShellPkg/ShellCommandLib: add ShellSortFileList()
Introduce the ShellSortFileList() function, for sorting an
EFI_SHELL_FILE_INFO list, by FileName or by FullName.
Duplicates can be kept in the same list, or separated out to a new list.
In either case, the relative order between duplicates does not change (the
sorting is stable).
For the sorting, use OrderedCollectionLib rather than SortLib:
- The PerformQuickSort() function from the latter has quadratic worst-case
time complexity, plus it is implemented recursively (see
"MdeModulePkg/Library/UefiSortLib/UefiSortLib.c"). It can also not
return an error on memory allocation failure.
- In comparison, the Red-Black Tree instance of OrderedCollectionLib sorts
in O(n*log(n)) worst-case time, contains no recursion with the default
PcdValidateOrderedCollection=FALSE setting, and the OrderedCollectionLib
class APIs return errors appropriately.
The OrderedCollectionLib APIs do not permit duplicates natively, but by
using lists as collection entries, stable sorting of duplicates can be
achieved.
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3151
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Message-Id: <20210113085453.10168-7-lersek@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
2021-01-13 09:54:49 +01:00
|
|
|
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
2016-03-02 03:13:54 +01:00
|
|
|
|
2010-11-16 21:55:07 +01:00
|
|
|
PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
|
2014-09-10 22:30:38 +02:00
|
|
|
BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
|
2020-06-19 13:59:54 +02:00
|
|
|
AcpiViewCommandLib|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
|
2015-12-10 05:18:35 +01:00
|
|
|
IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
|
2009-07-13 21:33:35 +02:00
|
|
|
|
2017-02-23 07:03:43 +01:00
|
|
|
UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
|
|
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
|
|
|
PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
|
|
|
|
DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
|
|
|
|
DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
|
|
|
|
ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
|
|
|
|
|
2019-09-04 18:30:47 +02:00
|
|
|
[LibraryClasses.ARM,LibraryClasses.AARCH64]
|
2011-04-07 23:50:16 +02:00
|
|
|
#
|
|
|
|
# It is not possible to prevent the ARM compiler for generic intrinsic functions.
|
|
|
|
# This library provides the instrinsic functions generate by a given compiler.
|
|
|
|
# [LibraryClasses.ARM] and NULL mean link this library into all ARM images.
|
|
|
|
#
|
|
|
|
NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
|
|
|
|
|
2014-09-16 20:21:24 +02:00
|
|
|
# Add support for GCC stack protector
|
|
|
|
NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
|
|
|
|
|
2011-05-17 00:12:20 +02:00
|
|
|
[PcdsFixedAtBuild]
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|16000
|
|
|
|
!ifdef $(NO_SHELL_PROFILES)
|
|
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellProfileMask|0x00
|
2013-03-04 23:02:59 +01:00
|
|
|
!endif #$(NO_SHELL_PROFILES)
|
2011-04-07 23:50:16 +02:00
|
|
|
|
2011-05-17 00:12:20 +02:00
|
|
|
[Components]
|
2015-09-28 04:18:05 +02:00
|
|
|
#
|
|
|
|
# Build all the libraries when building this package.
|
|
|
|
# This helps developers test changes and how they affect the package.
|
|
|
|
#
|
2009-06-16 02:23:19 +02:00
|
|
|
ShellPkg/Library/UefiShellLib/UefiShellLib.inf
|
2018-07-17 12:59:25 +02:00
|
|
|
ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
|
2010-09-14 07:18:09 +02:00
|
|
|
ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
|
2016-10-18 08:30:42 +02:00
|
|
|
ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
|
2010-09-14 07:18:09 +02:00
|
|
|
ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
|
2016-10-18 08:30:42 +02:00
|
|
|
ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
|
2015-09-28 04:18:05 +02:00
|
|
|
ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
|
|
|
|
ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
|
|
|
|
ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
|
|
|
|
ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
|
|
|
|
ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
|
|
|
|
ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
|
|
|
|
ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
|
2016-03-02 03:13:54 +01:00
|
|
|
ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
|
2010-09-14 07:18:09 +02:00
|
|
|
|
|
|
|
ShellPkg/Application/Shell/Shell.inf {
|
2017-10-31 03:47:31 +01:00
|
|
|
<PcdsFixedAtBuild>
|
|
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
|
2010-09-14 07:18:09 +02:00
|
|
|
<LibraryClasses>
|
|
|
|
NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
|
2011-05-17 00:12:20 +02:00
|
|
|
!ifndef $(NO_SHELL_PROFILES)
|
2010-11-16 21:55:07 +01:00
|
|
|
NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
|
2011-03-25 23:24:20 +01:00
|
|
|
NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
|
2016-03-02 03:13:54 +01:00
|
|
|
NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
|
2013-03-04 23:02:59 +01:00
|
|
|
!endif #$(NO_SHELL_PROFILES)
|
2010-09-14 07:18:09 +02:00
|
|
|
}
|
|
|
|
|
2019-08-01 22:38:39 +02:00
|
|
|
#
|
|
|
|
# Build a second version of the shell with all commands integrated
|
|
|
|
#
|
|
|
|
ShellPkg/Application/Shell/Shell.inf {
|
|
|
|
<Defines>
|
|
|
|
FILE_GUID = EA4BB293-2D7F-4456-A681-1F22F42CD0BC
|
|
|
|
<PcdsFixedAtBuild>
|
|
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
|
|
|
|
<LibraryClasses>
|
|
|
|
NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
|
|
|
|
}
|
|
|
|
|
2017-11-28 12:43:16 +01:00
|
|
|
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
|
|
|
|
<PcdsFixedAtBuild>
|
|
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
|
|
|
|
}
|
2017-10-31 03:47:31 +01:00
|
|
|
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpApp.inf
|
2020-09-24 22:40:56 +02:00
|
|
|
ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
|
|
|
|
<PcdsFixedAtBuild>
|
|
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
|
|
|
|
}
|
|
|
|
ShellPkg/DynamicCommand/HttpDynamicCommand/HttpApp.inf
|
2017-11-24 10:26:24 +01:00
|
|
|
ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {
|
2017-11-28 12:43:16 +01:00
|
|
|
<PcdsFixedAtBuild>
|
|
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
|
2017-11-24 10:26:24 +01:00
|
|
|
}
|
2018-07-17 04:10:49 +02:00
|
|
|
ShellPkg/DynamicCommand/DpDynamicCommand/DpApp.inf
|
2020-06-19 13:59:54 +02:00
|
|
|
ShellPkg/Application/AcpiViewApp/AcpiViewApp.inf
|
2017-10-31 03:47:31 +01:00
|
|
|
|
2016-08-01 08:14:22 +02:00
|
|
|
[BuildOptions]
|
|
|
|
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|