blob: 60488658b718b350bc76233add184f86de586766 [file] [log] [blame]
qhuang846375802009-08-24 15:32:15 +00001#/** @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. Intel Corporation
7#
8# All rights reserved. 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
AJFISH532339b2009-11-10 17:54:08 +000024 SUPPORTED_ARCHITECTURES = IA32|IPF|X64|ARM
qhuang846375802009-08-24 15:32:15 +000025 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#
33DEFINE EDK_SHELL_DIR = Shell # when "Shell" directory is directly under $(WORKSPACE)
34
AJFISH532339b2009-11-10 17:54:08 +000035define 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
36define 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
37define 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\"
qhuang846375802009-08-24 15:32:15 +000038
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
AJFISH532339b2009-11-10 17:54:08 +000047 EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/EfiCommonLib_Edk2.inf
qhuang846375802009-08-24 15:32:15 +000048 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
AJFISH532339b2009-11-10 17:54:08 +000085[Libraries.IA32]
86 EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib_Edk2.inf
87
88[Libraries.X64]
89 EdkCompatibilityPkg/Foundation/Cpu/Itanium/CpuIa64Lib/CpuIA64Lib.inf
90
91
qhuang846375802009-08-24 15:32:15 +000092###################################################################################################
93#
94# Components Section - list of the modules and components that will be processed by compilation
95# tools and the EDK II tools to generate PE32/PE32+/Coff image files.
96#
97# Note: The EDK II DSC file is not used to specify how compiled binary images get placed
98# into firmware volume images. This section is just a list of modules to compile from
99# source into UEFI-compliant binaries.
100# It is the FDF file that contains information on combining binary files into firmware
101# volume images, whose concept is beyond UEFI and is described in PI specification.
102# Binary modules do not need to be listed in this section, as they should be
103# specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
104# Logo (Logo.bmp), and etc.
105# There may also be modules listed in this section that are not required in the FDF file,
106# When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
107# generated for it, but the binary will not be put into any firmware volume.
108#
109###################################################################################################
110
111[Components]
AJFISH532339b2009-11-10 17:54:08 +0000112 $(EDK_SHELL_DIR)/Shell.inf {
113 <BuildOptions>
114 #
115 # Can not do this in nmake section of edk INF
116 #
117 GCC:*_*_*_CC_FLAGS = -DEFI_MONOSHELL
118 GCC:*_*_*_VFRPP_FLAGS = -DEFI_MONOSHELL
119 GCC:*_*_*_APP_FLAGS = -DEFI_MONOSHELL
120 GCC:*_*_*_PP_FLAGS = -DEFI_MONOSHELL
121
122 RVCT:*_*_ARM_CC_FLAGS = -DEFI_MONOSHELL
123 RVCT:*_*_ARM_VFRPP_FLAGS = -DEFI_MONOSHELL
124 RVCT:*_*_ARM_APP_FLAGS = -DEFI_MONOSHELL
125 RVCT:*_*_ARM_PP_FLAGS = -DEFI_MONOSHELL
126 }
127
128 $(EDK_SHELL_DIR)/ShellFull.inf {
129 <BuildOptions>
130 GCC:*_*_*_CC_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
131 GCC:*_*_*_VFRPP_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
132 GCC:*_*_*_APP_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
133 GCC:*_*_*_PP_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
134
135 RVCT:*_*_ARM_CC_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
136 RVCT:*_*_ARM_VFRPP_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
137 RVCT:*_*_ARM_APP_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
138 RVCT:*_*_ARM_PP_FLAGS = -DEFI_MONOSHELL -DEFI_FULLSHELL
139 }
140
qhuang846375802009-08-24 15:32:15 +0000141 $(EDK_SHELL_DIR)/attrib/attrib.inf
142 $(EDK_SHELL_DIR)/cls/cls.inf
143 $(EDK_SHELL_DIR)/comp/comp.inf
144 $(EDK_SHELL_DIR)/cp/cp.inf
145 $(EDK_SHELL_DIR)/date/date.inf
146 $(EDK_SHELL_DIR)/dblk/dblk.inf
147 $(EDK_SHELL_DIR)/devices/devices.inf
148 $(EDK_SHELL_DIR)/DeviceTree/devicetree.inf
149 $(EDK_SHELL_DIR)/dmem/dmem.inf
150 $(EDK_SHELL_DIR)/dmpstore/dmpstore.inf
151 $(EDK_SHELL_DIR)/drivers/drivers.inf
152 $(EDK_SHELL_DIR)/drvcfg/drvcfg.inf
153 $(EDK_SHELL_DIR)/drvdiag/drvdiag.inf
154 $(EDK_SHELL_DIR)/edit/edit.inf
155 $(EDK_SHELL_DIR)/EfiCompress/compress.inf
156 $(EDK_SHELL_DIR)/EfiDecompress/Decompress.inf
157 $(EDK_SHELL_DIR)/err/err.inf
158 $(EDK_SHELL_DIR)/guid/guid.inf
159 $(EDK_SHELL_DIR)/hexedit/hexedit.inf
160 $(EDK_SHELL_DIR)/IfConfig/IfConfig.inf
161 $(EDK_SHELL_DIR)/IpConfig/IpConfig.inf
162 $(EDK_SHELL_DIR)/load/load.inf
163 $(EDK_SHELL_DIR)/LoadPciRom/LoadPciRom.inf
164 $(EDK_SHELL_DIR)/ls/ls.inf
165 $(EDK_SHELL_DIR)/mem/mem.inf
166 $(EDK_SHELL_DIR)/memmap/memmap.inf
167 $(EDK_SHELL_DIR)/mkdir/mkdir.inf
168 $(EDK_SHELL_DIR)/mm/mm.inf
169 $(EDK_SHELL_DIR)/mode/mode.inf
170 $(EDK_SHELL_DIR)/mount/mount.inf
171 $(EDK_SHELL_DIR)/mv/mv.inf
172 $(EDK_SHELL_DIR)/newshell/nshell.inf
173 $(EDK_SHELL_DIR)/openinfo/openinfo.inf
174 $(EDK_SHELL_DIR)/pci/pci.inf
175 $(EDK_SHELL_DIR)/Ping/Ping.inf
176 $(EDK_SHELL_DIR)/reset/reset.inf
177 $(EDK_SHELL_DIR)/rm/rm.inf
178 $(EDK_SHELL_DIR)/sermode/sermode.inf
179 $(EDK_SHELL_DIR)/SmbiosView/Smbiosview.inf
180 $(EDK_SHELL_DIR)/stall/stall.inf
181 $(EDK_SHELL_DIR)/TelnetMgmt/TelnetMgmt.inf
182 $(EDK_SHELL_DIR)/time/time.inf
183 $(EDK_SHELL_DIR)/touch/touch.inf
184 $(EDK_SHELL_DIR)/type/type.inf
185 $(EDK_SHELL_DIR)/tzone/timezone.inf
186 $(EDK_SHELL_DIR)/unload/unload.inf
187 $(EDK_SHELL_DIR)/ver/Ver.inf
188 $(EDK_SHELL_DIR)/vol/Vol.inf
189
190[BuildOptions]
191 MSFT:*_*_IA32_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
192 MSFT:*_*_IA32_ASM_FLAGS = /DEFI32
193 MSFT:*_*_IA32_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
194 MSFT:*_*_IA32_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
195 MSFT:*_*_IA32_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
196
197 MSFT:*_*_X64_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
198 MSFT:*_*_X64_ASM_FLAGS = /DEFIX64
199 MSFT:*_*_X64_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
200 MSFT:*_*_X64_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
201 MSFT:*_*_X64_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
202
203 MSFT:*_*_IPF_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
204 MSFT:*_*_IPF_ASM_FLAGS =
205 MSFT:*_*_IPF_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
206 MSFT:*_*_IPF_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
207 MSFT:*_*_IPF_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
208
209 MSFT:*_*_*_BUILD_FLAGS = -s
210
211 INTEL:*_*_IA32_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
212 INTEL:*_*_IA32_ASM_FLAGS = /DEFI32
213 INTEL:*_*_IA32_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
214 INTEL:*_*_IA32_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
215 INTEL:*_*_IA32_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
216
217 INTEL:*_*_X64_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
218 INTEL:*_*_X64_ASM_FLAGS = /DEFIX64
219 INTEL:*_*_X64_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
220 INTEL:*_*_X64_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
221 INTEL:*_*_X64_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
222
223 INTEL:*_*_IPF_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
224 INTEL:*_*_IPF_ASM_FLAGS =
225 INTEL:*_*_IPF_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
226 INTEL:*_*_IPF_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
227 INTEL:*_*_IPF_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
228
229 INTEL:*_*_*_BUILD_FLAGS = -s
230
AJFISH532339b2009-11-10 17:54:08 +0000231 GCC:*_*_IA32_CC_FLAGS = -DEFI32 $(GCC_MACRO)
232 GCC:*_*_IA32_VFRPP_FLAGS = -DEFI32 $(GCC_MACRO)
233 GCC:*_*_IA32_APP_FLAGS = -DEFI32 $(GCC_MACRO)
234 GCC:*_*_IA32_PP_FLAGS = -DEFI32 $(GCC_MACRO)
235
236 GCC:*_*_X64_CC_FLAGS = -DEFIX64 $(GCC_MACRO)
237 GCC:*_*_X64_VFRPP_FLAGS = -DEFIX64 $(GCC_MACRO)
238 GCC:*_*_X64_APP_FLAGS = -DEFIX64 $(GCC_MACRO)
239 GCC:*_*_X64_PP_FLAGS = -DEFIX64 $(GCC_MACRO)
240
241 GCC:*_*_IPF_CC_FLAGS = -DEFI64 $(GCC_MACRO)
242 GCC:*_*_IPF_VFRPP_FLAGS = -DEFI64 $(GCC_MACRO)
243 GCC:*_*_IPF_APP_FLAGS = -DEFI64 $(GCC_MACRO)
244 GCC:*_*_IPF_PP_FLAGS = -DEFI64 $(GCC_MACRO)
245
246 GCC:*_*_ARM_CC_FLAGS = -DEFIARM $(GCC_MACRO)
247 GCC:*_*_ARM_VFRPP_FLAGS = -DEFIARM $(GCC_MACRO)
248 GCC:*_*_ARM_APP_FLAGS = -DEFIARM $(GCC_MACRO)
249 GCC:*_*_ARM_PP_FLAGS = -DEFIARM $(GCC_MACRO)
250
251 RVCT:*_*_ARM_CC_FLAGS = -DEFIARM $(GCC_MACRO)
252 RVCT:*_*_ARM_VFRPP_FLAGS = -DEFIARM $(GCC_MACRO)
253 RVCT:*_*_ARM_APP_FLAGS = -DEFIARM $(GCC_MACRO)
254 RVCT:*_*_ARM_PP_FLAGS = -DEFIARM $(GCC_MACRO)
255
256
qhuang846375802009-08-24 15:32:15 +0000257