BaseTools/Capsule: Do not support -o with --dump-info
[mirror_edk2.git] / EdkShellPkg / EdkShellPkg.dsc
1 ## @file
2 # This package build validate file is used to build validate EDK Shell source,
3 # EDK Compatibility Package and the backward compatibility support of EDK II
4 # build tool.
5 #
6 # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>
7 #
8 # This program and the accompanying materials
9 # are licensed and made available under the terms and conditions of the BSD License
10 # which accompanies this distribution. The full text of the license may be found at
11 # http://opensource.org/licenses/bsd-license.php
12 #
13 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #
16 ##
17
18 [Defines]
19 PLATFORM_NAME = EdkShellPkg
20 PLATFORM_GUID = 761BEE8B-58E3-4014-B8F5-0214A8DFA7EE
21 PLATFORM_VERSION = 1.04
22 DSC_SPECIFICATION = 0x00010005
23 OUTPUT_DIRECTORY = Build/EdkShellPkg
24 SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64
25 BUILD_TARGETS = DEBUG|RELEASE
26 SKUID_IDENTIFIER = DEFAULT
27 #
28 # Change the macro to the directory containing the source code from EDK Shell Project.
29 # This is a workspace relative directory
30 #
31 # DEFINE EDK_SHELL_DIR = EdkShellPkg/Shell # when "Shell" directory is under $(WORKSPACE)/EdkShellPkg
32 #
33 DEFINE EDK_SHELL_DIR = Shell # when "Shell" directory is directly under $(WORKSPACE)
34
35 DEFINE MSFT_MACRO = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00009000 /D TIANO_RELEASE_VERSION=0x00080006 /D PCD_EDKII_GLUE_PciExpressBaseAddress=0xE0000000 /D EFI_DEBUG
36 DEFINE INTEL_MACRO = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00009000 /D TIANO_RELEASE_VERSION=0x00080006 /D PCD_EDKII_GLUE_PciExpressBaseAddress=0xE0000000 /D EFI_DEBUG
37 DEFINE GCC_MACRO = -DEFI_SPECIFICATION_VERSION=0x0002000A -DPI_SPECIFICATION_VERSION=0x00009000 -DTIANO_RELEASE_VERSION=0x00080006 -DPCD_EDKII_GLUE_PciExpressBaseAddress=0xE0000000 -DEFI_DEBUG -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings -DSTRING_DEFINES_FILE=\"$(BASE_NAME)StrDefs.h\"
38
39
40 [Libraries]
41 #
42 # Libraries common to PEI and DXE
43 #
44 EdkCompatibilityPkg/Foundation/Efi/Guid/EfiGuidLib.inf
45 EdkCompatibilityPkg/Foundation/Framework/Guid/EdkFrameworkGuidLib.inf
46 EdkCompatibilityPkg/Foundation/Guid/EdkGuidLib.inf
47 EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib_Edk2.inf
48 EdkCompatibilityPkg/Foundation/Library/CustomizedDecompress/CustomizedDecompress.inf
49 EdkCompatibilityPkg/Foundation/Library/Dxe/Hob/HobLib.inf
50 #
51 # PEI libraries
52 #
53 EdkCompatibilityPkg/Foundation/Framework/Ppi/EdkFrameworkPpiLib.inf
54 EdkCompatibilityPkg/Foundation/Ppi/EdkPpiLib.inf
55 EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/PeiLib.inf
56 EdkCompatibilityPkg/Foundation/Library/Pei/Hob/PeiHobLib.inf
57 #
58 # DXE libraries
59 #
60 EdkCompatibilityPkg/Foundation/Core/Dxe/ArchProtocol/ArchProtocolLib.inf
61 EdkCompatibilityPkg/Foundation/Efi/Protocol/EfiProtocolLib.inf
62 EdkCompatibilityPkg/Foundation/Framework/Protocol/EdkFrameworkProtocolLib.inf
63 EdkCompatibilityPkg/Foundation/Protocol/EdkProtocolLib.inf
64 EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/EfiDriverLib.inf
65 EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/EfiRuntimeLib.inf
66 EdkCompatibilityPkg/Foundation/Library/Dxe/Graphics/Graphics.inf
67 EdkCompatibilityPkg/Foundation/Library/Dxe/EfiIfrSupportLib/EfiIfrSupportLib.inf
68 EdkCompatibilityPkg/Foundation/Library/Dxe/UefiEfiIfrSupportLib/UefiEfiIfrSupportLib.inf
69 EdkCompatibilityPkg/Foundation/Library/Dxe/Print/PrintLib.inf
70 EdkCompatibilityPkg/Foundation/Library/Dxe/EfiScriptLib/EfiScriptLib.inf
71 EdkCompatibilityPkg/Foundation/Library/Dxe/EfiUiLib/EfiUiLib.inf
72 #
73 # Print/Graphics Library consume SetupBrowser Print Protocol
74 #
75 EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/PrintLib.inf
76 EdkCompatibilityPkg/Foundation/Library/Dxe/GraphicsLite/Graphics.inf
77 #
78 # Shell Library
79 #
80 $(EDK_SHELL_DIR)/Library/EfiShellLib.inf
81
82 [Libraries.IA32, Libraries.X64]
83 EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
84 EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib_Edk2.inf
85
86 [Libraries.ARM, Libraries.AARCH64]
87 EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf
88 ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
89
90 ###################################################################################################
91 #
92 # Components Section - list of the modules and components that will be processed by compilation
93 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
94 #
95 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
96 # into firmware volume images. This section is just a list of modules to compile from
97 # source into UEFI-compliant binaries.
98 # It is the FDF file that contains information on combining binary files into firmware
99 # volume images, whose concept is beyond UEFI and is described in PI specification.
100 # Binary modules do not need to be listed in this section, as they should be
101 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
102 # Logo (Logo.bmp), and etc.
103 # There may also be modules listed in this section that are not required in the FDF file,
104 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
105 # generated for it, but the binary will not be put into any firmware volume.
106 #
107 ###################################################################################################
108
109 [Components]
110 $(EDK_SHELL_DIR)/Shell.inf {
111 <BuildOptions>
112 #
113 # Can not do this in nmake section of edk INF
114 #
115 GCC:*_*_*_CC_FLAGS = -DEFI_MONOSHELL
116 GCC:*_*_*_VFRPP_FLAGS = -DEFI_MONOSHELL
117 GCC:*_*_*_APP_FLAGS = -DEFI_MONOSHELL
118 GCC:*_*_*_PP_FLAGS = -DEFI_MONOSHELL
119
120 RVCT:*_*_ARM_CC_FLAGS = -DEFI_MONOSHELL
121 RVCT:*_*_ARM_VFRPP_FLAGS = -DEFI_MONOSHELL
122 RVCT:*_*_ARM_APP_FLAGS = -DEFI_MONOSHELL
123 RVCT:*_*_ARM_PP_FLAGS = -DEFI_MONOSHELL
124 }
125
126 $(EDK_SHELL_DIR)/ShellFull.inf {
127 <BuildOptions>
128 GCC:*_*_*_CC_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
129 GCC:*_*_*_VFRPP_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
130 GCC:*_*_*_APP_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
131 GCC:*_*_*_PP_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
132
133 RVCT:*_*_ARM_CC_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
134 RVCT:*_*_ARM_VFRPP_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
135 RVCT:*_*_ARM_APP_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
136 RVCT:*_*_ARM_PP_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
137 }
138
139 $(EDK_SHELL_DIR)/attrib/attrib.inf
140 $(EDK_SHELL_DIR)/cls/cls.inf
141 $(EDK_SHELL_DIR)/comp/comp.inf
142 $(EDK_SHELL_DIR)/cp/cp.inf
143 $(EDK_SHELL_DIR)/date/date.inf
144 $(EDK_SHELL_DIR)/dblk/dblk.inf
145 $(EDK_SHELL_DIR)/devices/devices.inf
146 $(EDK_SHELL_DIR)/DeviceTree/devicetree.inf
147 $(EDK_SHELL_DIR)/dmem/dmem.inf
148 $(EDK_SHELL_DIR)/dmpstore/dmpstore.inf
149 $(EDK_SHELL_DIR)/drivers/drivers.inf
150 $(EDK_SHELL_DIR)/drvcfg/drvcfg.inf
151 $(EDK_SHELL_DIR)/drvdiag/drvdiag.inf
152 $(EDK_SHELL_DIR)/edit/edit.inf
153 $(EDK_SHELL_DIR)/EfiCompress/compress.inf
154 $(EDK_SHELL_DIR)/EfiDecompress/Decompress.inf
155 $(EDK_SHELL_DIR)/err/err.inf
156 $(EDK_SHELL_DIR)/guid/guid.inf
157 $(EDK_SHELL_DIR)/hexedit/hexedit.inf
158 $(EDK_SHELL_DIR)/IfConfig/IfConfig.inf
159 $(EDK_SHELL_DIR)/IpConfig/IpConfig.inf
160 $(EDK_SHELL_DIR)/load/load.inf
161 $(EDK_SHELL_DIR)/LoadPciRom/LoadPciRom.inf
162 $(EDK_SHELL_DIR)/ls/ls.inf
163 $(EDK_SHELL_DIR)/mem/mem.inf
164 $(EDK_SHELL_DIR)/memmap/memmap.inf
165 $(EDK_SHELL_DIR)/mkdir/mkdir.inf
166 $(EDK_SHELL_DIR)/mm/mm.inf
167 $(EDK_SHELL_DIR)/mode/mode.inf
168 $(EDK_SHELL_DIR)/mount/mount.inf
169 $(EDK_SHELL_DIR)/mv/mv.inf
170 $(EDK_SHELL_DIR)/newshell/nshell.inf
171 $(EDK_SHELL_DIR)/openinfo/openinfo.inf
172 $(EDK_SHELL_DIR)/pci/pci.inf
173 $(EDK_SHELL_DIR)/Ping/Ping.inf
174 $(EDK_SHELL_DIR)/reset/reset.inf
175 $(EDK_SHELL_DIR)/rm/rm.inf
176 $(EDK_SHELL_DIR)/sermode/sermode.inf
177 $(EDK_SHELL_DIR)/SmbiosView/Smbiosview.inf
178 $(EDK_SHELL_DIR)/stall/stall.inf
179 $(EDK_SHELL_DIR)/TelnetMgmt/TelnetMgmt.inf
180 $(EDK_SHELL_DIR)/time/time.inf
181 $(EDK_SHELL_DIR)/touch/touch.inf
182 $(EDK_SHELL_DIR)/type/type.inf
183 $(EDK_SHELL_DIR)/tzone/timezone.inf
184 $(EDK_SHELL_DIR)/unload/unload.inf
185 $(EDK_SHELL_DIR)/ver/Ver.inf
186 $(EDK_SHELL_DIR)/vol/Vol.inf
187
188 [BuildOptions.Common.EDK]
189 MSFT:*_*_IA32_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
190 MSFT:*_*_IA32_ASM_FLAGS = /DEFI32
191 MSFT:*_*_IA32_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
192 MSFT:*_*_IA32_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
193 MSFT:*_*_IA32_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
194
195 MSFT:*_*_X64_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
196 MSFT:*_*_X64_ASM_FLAGS = /DEFIX64
197 MSFT:*_*_X64_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
198 MSFT:*_*_X64_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
199 MSFT:*_*_X64_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
200
201 MSFT:*_*_*_BUILD_FLAGS = -s
202
203 INTEL:*_*_IA32_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
204 INTEL:*_*_IA32_ASM_FLAGS = /DEFI32
205 INTEL:*_*_IA32_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
206 INTEL:*_*_IA32_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
207 INTEL:*_*_IA32_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
208
209 INTEL:*_*_X64_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
210 INTEL:*_*_X64_ASM_FLAGS = /DEFIX64
211 INTEL:*_*_X64_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
212 INTEL:*_*_X64_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
213 INTEL:*_*_X64_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
214
215 INTEL:*_*_*_BUILD_FLAGS = -s
216
217 GCC:*_*_IA32_CC_FLAGS = -DEFI32 $(GCC_MACRO)
218 GCC:*_*_IA32_VFRPP_FLAGS = -DEFI32 $(GCC_MACRO)
219 GCC:*_*_IA32_APP_FLAGS = -DEFI32 $(GCC_MACRO)
220 GCC:*_*_IA32_PP_FLAGS = -DEFI32 $(GCC_MACRO)
221
222 GCC:*_*_X64_CC_FLAGS = -DEFIX64 $(GCC_MACRO)
223 GCC:*_*_X64_VFRPP_FLAGS = -DEFIX64 $(GCC_MACRO)
224 GCC:*_*_X64_APP_FLAGS = -DEFIX64 $(GCC_MACRO)
225 GCC:*_*_X64_PP_FLAGS = -DEFIX64 $(GCC_MACRO)
226
227 GCC:*_*_ARM_CC_FLAGS = -DEFIARM $(GCC_MACRO)
228 GCC:*_*_ARM_VFRPP_FLAGS = -DEFIARM $(GCC_MACRO)
229 GCC:*_*_ARM_APP_FLAGS = -DEFIARM $(GCC_MACRO)
230 GCC:*_*_ARM_PP_FLAGS = -DEFIARM $(GCC_MACRO)
231
232 RVCT:*_*_ARM_CC_FLAGS = -DEFIARM $(GCC_MACRO)
233 RVCT:*_*_ARM_VFRPP_FLAGS = -DEFIARM $(GCC_MACRO)
234 RVCT:*_*_ARM_APP_FLAGS = -DEFIARM $(GCC_MACRO)
235 RVCT:*_*_ARM_PP_FLAGS = -DEFIARM $(GCC_MACRO)
236
237 GCC:*_*_AARCH64_CC_FLAGS = -DEFIAARCH64 $(GCC_MACRO)
238 GCC:*_*_AARCH64_VFRPP_FLAGS = -DEFIAARCH64 $(GCC_MACRO)
239 GCC:*_*_AARCH64_APP_FLAGS = -DEFIAARCH64 $(GCC_MACRO)
240 GCC:*_*_AARCH64_PP_FLAGS = -DEFIAARCH64 $(GCC_MACRO)