Commit | Line | Data |
---|---|---|
a405b86d | 1 | ## @file\r |
94b17fa1 | 2 | # Shell Package\r |
94b17fa1 | 3 | #\r |
25b77b50 | 4 | # Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>\r |
db77d8f7 | 5 | # Copyright (c) 2018 - 2020, Arm Limited. All rights reserved.<BR>\r |
e4288891 | 6 | # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>\r |
78b08133 | 7 | # Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r |
94b17fa1 | 8 | #\r |
56ba3746 | 9 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r |
94b17fa1 | 10 | #\r |
7b202cb0 | 11 | ##\r |
94b17fa1 | 12 | \r |
13 | [Defines]\r | |
14 | PLATFORM_NAME = Shell\r | |
15 | PLATFORM_GUID = E1DC9BF8-7013-4c99-9437-795DAA45F3BD\r | |
74f3318c | 16 | PLATFORM_VERSION = 1.02\r |
d2b4564b | 17 | DSC_SPECIFICATION = 0x00010006\r |
94b17fa1 | 18 | OUTPUT_DIRECTORY = Build/Shell\r |
78b08133 | 19 | SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64\r |
2a65e410 | 20 | BUILD_TARGETS = DEBUG|RELEASE|NOOPT\r |
94b17fa1 | 21 | SKUID_IDENTIFIER = DEFAULT\r |
22 | \r | |
25b77b50 DB |
23 | !include MdePkg/MdeLibs.dsc.inc\r |
24 | \r | |
a405b86d | 25 | [LibraryClasses.common]\r |
94b17fa1 | 26 | UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r |
09610023 | 27 | UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r |
94b17fa1 | 28 | UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r |
863986b3 | 29 | DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf\r |
d454c18a QS |
30 | !if $(TARGET) == RELEASE\r |
31 | DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r | |
32 | !else\r | |
82571fb5 | 33 | DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf\r |
d454c18a | 34 | !endif\r |
43ca1753 | 35 | DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r |
94b17fa1 | 36 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r |
37 | MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r | |
38 | UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r | |
39 | BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r | |
d2b4564b | 40 | BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r |
a405b86d | 41 | PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r |
ae591c14 DM |
42 | FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r |
43 | SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf\r | |
94b17fa1 | 44 | UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r |
b1f95a06 | 45 | UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf\r |
46 | HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf\r | |
76b3d45b | 47 | VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf\r |
59f20e8d | 48 | !include NetworkPkg/NetworkLibs.dsc.inc\r |
a405b86d | 49 | \r |
14e96c29 | 50 | ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r |
a405b86d | 51 | ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r |
b1f95a06 | 52 | ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf\r |
a405b86d | 53 | HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r |
101c55ac | 54 | OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf\r |
43ca1753 | 55 | \r |
3a4932d0 | 56 | PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r |
7b01f0f3 | 57 | BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r |
db77d8f7 | 58 | AcpiViewCommandLib|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf\r |
304316f4 | 59 | IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r |
4983ca93 | 60 | \r |
5ab97a64 CC |
61 | UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf\r |
62 | HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r | |
5ab97a64 CC |
63 | PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf\r |
64 | DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r | |
65 | DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf\r | |
66 | ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf\r | |
67 | \r | |
23908d0f | 68 | [LibraryClasses.ARM,LibraryClasses.AARCH64]\r |
e0c2cc6f | 69 | #\r |
70 | # It is not possible to prevent the ARM compiler for generic intrinsic functions.\r | |
71 | # This library provides the instrinsic functions generate by a given compiler.\r | |
72 | # [LibraryClasses.ARM] and NULL mean link this library into all ARM images.\r | |
73 | #\r | |
74 | NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf\r | |
75 | \r | |
4152ed23 RC |
76 | # Add support for GCC stack protector\r |
77 | NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r | |
78 | \r | |
82571fb5 | 79 | [PcdsFixedAtBuild]\r |
80 | gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF\r | |
82571fb5 | 81 | gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|16000\r |
82 | !ifdef $(NO_SHELL_PROFILES)\r | |
83 | gEfiShellPkgTokenSpaceGuid.PcdShellProfileMask|0x00\r | |
d41bc92c | 84 | !endif #$(NO_SHELL_PROFILES)\r |
e0c2cc6f | 85 | \r |
82571fb5 | 86 | [Components]\r |
30634ed8 QS |
87 | #\r |
88 | # Build all the libraries when building this package.\r | |
89 | # This helps developers test changes and how they affect the package.\r | |
90 | #\r | |
b1f95a06 | 91 | ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r |
304a27e0 | 92 | ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf\r |
a405b86d | 93 | ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r |
28165f24 | 94 | ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf\r |
a405b86d | 95 | ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r |
28165f24 | 96 | ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r |
30634ed8 QS |
97 | ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r |
98 | ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r | |
99 | ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r | |
100 | ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r | |
101 | ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r | |
102 | ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r | |
103 | ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r | |
43ca1753 | 104 | ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf\r |
a405b86d | 105 | \r |
106 | ShellPkg/Application/Shell/Shell.inf {\r | |
09610023 RN |
107 | <PcdsFixedAtBuild>\r |
108 | gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r | |
a405b86d | 109 | <LibraryClasses>\r |
a405b86d | 110 | NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r |
111 | NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r | |
112 | NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r | |
82571fb5 | 113 | !ifndef $(NO_SHELL_PROFILES)\r |
3a4932d0 | 114 | NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r |
115 | NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r | |
4027c1dc | 116 | NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r |
117 | NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r | |
43ca1753 | 118 | NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf\r |
d41bc92c | 119 | !endif #$(NO_SHELL_PROFILES)\r |
a405b86d | 120 | }\r |
121 | \r | |
7c662c9e MK |
122 | #\r |
123 | # Build a second version of the shell with all commands integrated\r | |
124 | #\r | |
125 | ShellPkg/Application/Shell/Shell.inf {\r | |
126 | <Defines>\r | |
127 | FILE_GUID = EA4BB293-2D7F-4456-A681-1F22F42CD0BC\r | |
128 | <PcdsFixedAtBuild>\r | |
129 | gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r | |
130 | <LibraryClasses>\r | |
131 | NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r | |
132 | NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r | |
133 | NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r | |
134 | NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r | |
135 | NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r | |
136 | NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r | |
137 | NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r | |
138 | NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf\r | |
139 | NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf\r | |
140 | }\r | |
141 | \r | |
ff5a4bcf RN |
142 | ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {\r |
143 | <PcdsFixedAtBuild>\r | |
144 | gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r | |
145 | }\r | |
09610023 | 146 | ShellPkg/DynamicCommand/TftpDynamicCommand/TftpApp.inf\r |
d8ab884f VO |
147 | ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {\r |
148 | <PcdsFixedAtBuild>\r | |
149 | gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r | |
150 | }\r | |
151 | ShellPkg/DynamicCommand/HttpDynamicCommand/HttpApp.inf\r | |
92034c4c | 152 | ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {\r |
ff5a4bcf RN |
153 | <PcdsFixedAtBuild>\r |
154 | gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r | |
92034c4c | 155 | }\r |
29890da4 | 156 | ShellPkg/DynamicCommand/DpDynamicCommand/DpApp.inf\r |
00217f19 | 157 | ShellPkg/Application/AcpiViewApp/AcpiViewApp.inf\r |
09610023 | 158 | \r |
86776616 HW |
159 | [BuildOptions]\r |
160 | *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r |