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