blob: 76c1e843267def342e09fe96944a18c4f180e16e [file] [log] [blame]
lgao4ec0ae8f2010-02-23 23:43:55 +00001## @file
qhuang846375802009-08-24 15:32:15 +00002# 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#
hhtian74bdcc32010-04-24 10:14:16 +00006# Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR>
qhuang846375802009-08-24 15:32:15 +00007#
hhtian74bdcc32010-04-24 10:14:16 +00008# This program and the accompanying materials
qhuang846375802009-08-24 15:32:15 +00009# 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#
lgao4ec0ae8f2010-02-23 23:43:55 +000016##
qhuang846375802009-08-24 15:32:15 +000017
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
AJFISH532339b2009-11-10 17:54:08 +000084 EdkCompatibilityPkg/Foundation/Cpu/Pentium/CpuIA32Lib/CpuIA32Lib_Edk2.inf
85
qhuang86bbd64e2009-11-18 06:31:04 +000086[Libraries.IPF]
AJFISH532339b2009-11-10 17:54:08 +000087 EdkCompatibilityPkg/Foundation/Cpu/Itanium/CpuIa64Lib/CpuIA64Lib.inf
88
89
qhuang846375802009-08-24 15:32:15 +000090###################################################################################################
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]
AJFISH532339b2009-11-10 17:54:08 +0000110 $(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
qhuang846375802009-08-24 15:32:15 +0000139 $(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]
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:*_*_IPF_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
202 MSFT:*_*_IPF_ASM_FLAGS =
203 MSFT:*_*_IPF_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
204 MSFT:*_*_IPF_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
205 MSFT:*_*_IPF_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
206
207 MSFT:*_*_*_BUILD_FLAGS = -s
208
209 INTEL:*_*_IA32_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
210 INTEL:*_*_IA32_ASM_FLAGS = /DEFI32
211 INTEL:*_*_IA32_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
212 INTEL:*_*_IA32_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
213 INTEL:*_*_IA32_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI32
214
215 INTEL:*_*_X64_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
216 INTEL:*_*_X64_ASM_FLAGS = /DEFIX64
217 INTEL:*_*_X64_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
218 INTEL:*_*_X64_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
219 INTEL:*_*_X64_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFIX64
220
221 INTEL:*_*_IPF_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
222 INTEL:*_*_IPF_ASM_FLAGS =
223 INTEL:*_*_IPF_VFRPP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
224 INTEL:*_*_IPF_APP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
225 INTEL:*_*_IPF_PP_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D PI_SPECIFICATION_VERSION=0x00010000 /D TIANO_RELEASE_VERSION=0x00080006 /D EFI64
226
227 INTEL:*_*_*_BUILD_FLAGS = -s
228
AJFISH532339b2009-11-10 17:54:08 +0000229 GCC:*_*_IA32_CC_FLAGS = -DEFI32 $(GCC_MACRO)
230 GCC:*_*_IA32_VFRPP_FLAGS = -DEFI32 $(GCC_MACRO)
231 GCC:*_*_IA32_APP_FLAGS = -DEFI32 $(GCC_MACRO)
232 GCC:*_*_IA32_PP_FLAGS = -DEFI32 $(GCC_MACRO)
233
234 GCC:*_*_X64_CC_FLAGS = -DEFIX64 $(GCC_MACRO)
235 GCC:*_*_X64_VFRPP_FLAGS = -DEFIX64 $(GCC_MACRO)
236 GCC:*_*_X64_APP_FLAGS = -DEFIX64 $(GCC_MACRO)
237 GCC:*_*_X64_PP_FLAGS = -DEFIX64 $(GCC_MACRO)
238
239 GCC:*_*_IPF_CC_FLAGS = -DEFI64 $(GCC_MACRO)
240 GCC:*_*_IPF_VFRPP_FLAGS = -DEFI64 $(GCC_MACRO)
241 GCC:*_*_IPF_APP_FLAGS = -DEFI64 $(GCC_MACRO)
242 GCC:*_*_IPF_PP_FLAGS = -DEFI64 $(GCC_MACRO)
243
244 GCC:*_*_ARM_CC_FLAGS = -DEFIARM $(GCC_MACRO)
245 GCC:*_*_ARM_VFRPP_FLAGS = -DEFIARM $(GCC_MACRO)
246 GCC:*_*_ARM_APP_FLAGS = -DEFIARM $(GCC_MACRO)
247 GCC:*_*_ARM_PP_FLAGS = -DEFIARM $(GCC_MACRO)
248
249 RVCT:*_*_ARM_CC_FLAGS = -DEFIARM $(GCC_MACRO)
250 RVCT:*_*_ARM_VFRPP_FLAGS = -DEFIARM $(GCC_MACRO)
251 RVCT:*_*_ARM_APP_FLAGS = -DEFIARM $(GCC_MACRO)
252 RVCT:*_*_ARM_PP_FLAGS = -DEFIARM $(GCC_MACRO)
253
254
qhuang846375802009-08-24 15:32:15 +0000255