]> git.proxmox.com Git - mirror_edk2.git/blob - EmulatorPkg/EmulatorPkg.dsc
c48e36a72c6097b648a15ad08fbc1ed04200d16e
[mirror_edk2.git] / EmulatorPkg / EmulatorPkg.dsc
1 ## @file
2 # UEFI/PI Emulation Platform with UEFI HII interface supported.
3 #
4 # The Emulation Platform can be used to debug individual modules, prior to creating
5 # a real platform. This also provides an example for how an DSC is created.
6 #
7 # Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.<BR>
8 # Portions copyright (c) 2010 - 2011, Apple Inc. All rights reserved.<BR>
9 # Copyright (c) Microsoft Corporation.
10 #
11 # SPDX-License-Identifier: BSD-2-Clause-Patent
12 #
13 ##
14
15 [Defines]
16 PLATFORM_NAME = EmulatorPkg
17 PLATFORM_GUID = 05FD064D-1073-E844-936C-A0E16317107D
18 PLATFORM_VERSION = 0.3
19 DSC_SPECIFICATION = 0x00010005
20 OUTPUT_DIRECTORY = Build/Emulator$(ARCH)
21
22 SUPPORTED_ARCHITECTURES = X64|IA32
23 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
24 SKUID_IDENTIFIER = DEFAULT
25 FLASH_DEFINITION = EmulatorPkg/EmulatorPkg.fdf
26
27
28 #
29 # Network definition
30 #
31 DEFINE NETWORK_SNP_ENABLE = FALSE
32 DEFINE NETWORK_IP6_ENABLE = FALSE
33 DEFINE NETWORK_TLS_ENABLE = FALSE
34 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
35 DEFINE NETWORK_ISCSI_ENABLE = FALSE
36 DEFINE SECURE_BOOT_ENABLE = FALSE
37
38 [SkuIds]
39 0|DEFAULT
40
41 [LibraryClasses]
42 #
43 # Entry point
44 #
45 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
46 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
47 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
48 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
49 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
50 #
51 # Basic
52 #
53 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
54 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
55 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
56 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
57 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
58 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
59 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
60 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
61
62 #
63 # UEFI & PI
64 #
65 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
66 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
67 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
68 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
69 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
70 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
71 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
72 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
73
74 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
75 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
76 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
77 SmbiosLib|EmulatorPkg/Library/SmbiosLib/SmbiosLib.inf
78
79 #
80 # Generic Modules
81 #
82 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
83 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
84 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
85 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
86 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
87 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
88 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
89 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
90 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
91 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
92 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
93 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
94 #
95 # Platform
96 #
97 PlatformBootManagerLib|EmulatorPkg/Library/PlatformBmLib/PlatformBmLib.inf
98 KeyMapLib|EmulatorPkg/Library/KeyMapLibNull/KeyMapLibNull.inf
99
100 #
101 # Misc
102 #
103 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
104 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
105 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
106 PeiServicesTablePointerLib|EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointerLibMagicPage.inf
107 DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
108 LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
109 CpuExceptionHandlerLib|MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf
110 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
111 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
112 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
113 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
114 SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
115 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
116 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
117
118 !if $(SECURE_BOOT_ENABLE) == TRUE
119 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
120 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
121 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
122 PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
123 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
124 !else
125 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
126 !endif
127
128 [LibraryClasses.common.SEC]
129 PeiServicesLib|EmulatorPkg/Library/SecPeiServicesLib/SecPeiServicesLib.inf
130 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
131 PeCoffGetEntryPointLib|EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.inf
132 PeCoffExtraActionLib|EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.inf
133 SerialPortLib|EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.inf
134 PpiListLib|EmulatorPkg/Library/SecPpiListLib/SecPpiListLib.inf
135 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
136 TimerLib|EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.inf
137
138 [LibraryClasses.common.USER_DEFINED, LibraryClasses.common.BASE]
139 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
140 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
141 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
142 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
143 PpiListLib|EmulatorPkg/Library/SecPpiListLib/SecPpiListLib.inf
144 ThunkPpiList|EmulatorPkg/Library/ThunkPpiList/ThunkPpiList.inf
145 ThunkProtocolList|EmulatorPkg/Library/ThunkProtocolList/ThunkProtocolList.inf
146 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
147 PpiListLib|EmulatorPkg/Library/SecPpiListLib/SecPpiListLib.inf
148 PeiServicesLib|EmulatorPkg/Library/SecPeiServicesLib/SecPeiServicesLib.inf
149
150
151 [LibraryClasses.common.PEIM, LibraryClasses.common.PEI_CORE]
152 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
153 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
154 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
155 PeCoffGetEntryPointLib|EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.inf
156 PeCoffExtraActionLib|EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.inf
157 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
158 SerialPortLib|EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.inf
159 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
160 TimerLib|EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.inf
161
162 [LibraryClasses.common.PEI_CORE]
163 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
164
165 [LibraryClasses.common.PEIM]
166 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
167
168 [LibraryClasses.common.DXE_CORE]
169 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
170 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
171 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
172 PeCoffExtraActionLib|EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.inf
173 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
174 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
175 TimerLib|EmulatorPkg/Library/DxeCoreTimerLib/DxeCoreTimerLib.inf
176 EmuThunkLib|EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.inf
177
178 [LibraryClasses.common.DXE_DRIVER, LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION]
179 !if $(SECURE_BOOT_ENABLE) == TRUE
180 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
181 !endif
182
183 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
184 !if $(SECURE_BOOT_ENABLE) == TRUE
185 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
186 !endif
187
188 [LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.DXE_DRIVER, LibraryClasses.common.UEFI_APPLICATION]
189 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
190 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
191 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
192 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
193 EmuThunkLib|EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.inf
194 PeCoffExtraActionLib|EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.inf
195 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
196 TimerLib|EmulatorPkg/Library/DxeTimerLib/DxeTimerLib.inf
197
198 [PcdsFeatureFlag]
199 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
200 gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst|FALSE
201 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplBuildPageTables|FALSE
202
203 [PcdsFixedAtBuild]
204 gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x00000000
205 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
206 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000040
207 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0f
208 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x1f
209 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|0x0
210 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizePopulateCapsule|0x0
211 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
212
213 gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareFdSize|0x002a0000
214 gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareBlockSize|0x10000
215 gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareVolume|L"../FV/FV_RECOVERY.fd"
216 !if $(SECURE_BOOT_ENABLE) == TRUE
217 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
218 gEfiSecurityPkgTokenSpaceGuid.PcdUserPhysicalPresence|TRUE
219 !endif
220
221 gEmulatorPkgTokenSpaceGuid.PcdEmuMemorySize|L"64!64"
222
223 # Change PcdBootManagerMenuFile to UiApp
224 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
225
226
227 #define BOOT_WITH_FULL_CONFIGURATION 0x00
228 #define BOOT_WITH_MINIMAL_CONFIGURATION 0x01
229 #define BOOT_ASSUMING_NO_CONFIGURATION_CHANGES 0x02
230 #define BOOT_WITH_FULL_CONFIGURATION_PLUS_DIAGNOSTICS 0x03
231 #define BOOT_WITH_DEFAULT_SETTINGS 0x04
232 #define BOOT_ON_S4_RESUME 0x05
233 #define BOOT_ON_S5_RESUME 0x06
234 #define BOOT_ON_S2_RESUME 0x10
235 #define BOOT_ON_S3_RESUME 0x11
236 #define BOOT_ON_FLASH_UPDATE 0x12
237 #define BOOT_IN_RECOVERY_MODE 0x20
238 gEmulatorPkgTokenSpaceGuid.PcdEmuBootMode|0
239
240 gEmulatorPkgTokenSpaceGuid.PcdEmuApCount|L"1"
241
242 # For a CD-ROM/DVD use L"diag.dmg:RO:2048"
243 gEmulatorPkgTokenSpaceGuid.PcdEmuVirtualDisk|L"disk.dmg:FW"
244 gEmulatorPkgTokenSpaceGuid.PcdEmuGop|L"GOP Window"
245 gEmulatorPkgTokenSpaceGuid.PcdEmuFileSystem|L"."
246 gEmulatorPkgTokenSpaceGuid.PcdEmuSerialPort|L"/dev/ttyS0"
247 gEmulatorPkgTokenSpaceGuid.PcdEmuNetworkInterface|L"en0"
248
249 gEmulatorPkgTokenSpaceGuid.PcdEmuCpuModel|L"Intel(R) Processor Model"
250 gEmulatorPkgTokenSpaceGuid.PcdEmuCpuSpeed|L"3000"
251
252 # 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
253 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1
254
255 [PcdsDynamicDefault.common.DEFAULT]
256 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
257 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
258 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
259
260 [PcdsDynamicHii.common.DEFAULT]
261 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|L"Setup"|gEmuSystemConfigGuid|0x0|80
262 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|L"Setup"|gEmuSystemConfigGuid|0x4|25
263 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|10
264
265 [Components]
266 !if "IA32" in $(ARCH) || "X64" in $(ARCH)
267 !if "MSFT" in $(FAMILY) || $(WIN_HOST_BUILD) == TRUE
268 ##
269 # Emulator, OS WIN application
270 # CLANGPDB is cross OS tool chain. It depends on WIN_HOST_BUILD flag
271 # to build WinHost application.
272 ##
273 EmulatorPkg/Win/Host/WinHost.inf
274 !else
275 ##
276 # Emulator, OS POSIX application
277 ##
278 EmulatorPkg/Unix/Host/Host.inf
279 !endif
280 !endif
281
282 !ifndef $(SKIP_MAIN_BUILD)
283 #
284 # Generic SEC
285 #
286 EmulatorPkg/Sec/Sec.inf
287
288 ##
289 # PEI Phase modules
290 ##
291 MdeModulePkg/Core/Pei/PeiMain.inf
292 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
293 <LibraryClasses>
294 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
295 }
296 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
297 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
298
299 EmulatorPkg/BootModePei/BootModePei.inf
300 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
301 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
302 EmulatorPkg/AutoScanPei/AutoScanPei.inf
303 EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.inf
304 EmulatorPkg/FlashMapPei/FlashMapPei.inf
305 EmulatorPkg/ThunkPpiToProtocolPei/ThunkPpiToProtocolPei.inf
306 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
307
308 ##
309 # DXE Phase modules
310 ##
311 MdeModulePkg/Core/Dxe/DxeMain.inf {
312 <LibraryClasses>
313 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
314 SerialPortLib|EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.inf
315 DxeEmuLib|EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.inf
316 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
317 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
318 }
319 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
320 <LibraryClasses>
321 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
322 }
323
324 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
325 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf {
326 <LibraryClasses>
327 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
328 SerialPortLib|EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.inf
329 }
330
331 MdeModulePkg/Universal/Metronome/Metronome.inf
332 EmulatorPkg/RealTimeClockRuntimeDxe/RealTimeClock.inf
333 EmulatorPkg/ResetRuntimeDxe/Reset.inf
334 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
335 EmulatorPkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
336
337 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
338 <LibraryClasses>
339 !if $(SECURE_BOOT_ENABLE) == TRUE
340 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
341 !endif
342 }
343
344 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
345 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
346 EmulatorPkg/EmuThunkDxe/EmuThunk.inf
347 EmulatorPkg/CpuRuntimeDxe/Cpu.inf
348 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
349 EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.inf
350 EmulatorPkg/TimerDxe/Timer.inf
351
352 !if $(SECURE_BOOT_ENABLE) == TRUE
353 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
354 !endif
355
356 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
357 <LibraryClasses>
358 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
359 }
360 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
361 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
362 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
363 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
364 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
365 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
366 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf {
367 <LibraryClasses>
368 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
369 SerialPortLib|EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.inf
370 }
371
372 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
373 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
374 !if "XCODE5" not in $(TOOL_CHAIN_TAG)
375 MdeModulePkg/Logo/LogoDxe.inf
376 !endif
377 MdeModulePkg/Universal/LoadFileOnFv2/LoadFileOnFv2.inf
378 MdeModulePkg/Application/UiApp/UiApp.inf {
379 <LibraryClasses>
380 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
381 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
382 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
383 }
384 MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf
385
386 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
387 #{
388 # <LibraryClasses>
389 # NULL|EmulatorPkg/Library/DevicePathTextLib/DevicePathTextLib.inf
390 #}
391
392 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
393 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
394 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
395 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
396 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
397 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
398
399 EmulatorPkg/EmuBusDriverDxe/EmuBusDriverDxe.inf
400 EmulatorPkg/EmuGopDxe/EmuGopDxe.inf
401 EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystemDxe.inf
402 EmulatorPkg/EmuBlockIoDxe/EmuBlockIoDxe.inf
403 EmulatorPkg/EmuSnpDxe/EmuSnpDxe.inf
404
405 MdeModulePkg/Application/HelloWorld/HelloWorld.inf
406
407 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
408 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
409 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
410 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
411 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
412 MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf {
413 <LibraryClasses>
414 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
415 }
416
417 FatPkg/EnhancedFatDxe/Fat.inf
418
419 !if "XCODE5" not in $(TOOL_CHAIN_TAG)
420 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
421 <PcdsFixedAtBuild>
422 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
423 }
424 !endif
425 ShellPkg/Application/Shell/Shell.inf {
426 <LibraryClasses>
427 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
428 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
429 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
430 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
431 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
432 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
433 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
434 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
435 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
436 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
437 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
438 # SafeBlockIoLib|ShellPkg/Library/SafeBlockIoLib/SafeBlockIoLib.inf
439 # SafeOpenProtocolLib|ShellPkg/Library/SafeOpenProtocolLib/SafeOpenProtocolLib.inf
440 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
441 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
442
443 <PcdsFixedAtBuild>
444 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
445 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
446 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
447 }
448
449 !endif
450
451 !include NetworkPkg/Network.dsc.inc
452
453 [BuildOptions]
454 #
455 # Disable deprecated APIs.
456 #
457 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
458
459 MSFT:DEBUG_*_*_CC_FLAGS = /Od /Oy-
460 MSFT:NOOPT_*_*_CC_FLAGS = /Od /Oy-
461 GCC:DEBUG_CLANGPDB_*_CC_FLAGS =-O0 -Wno-unused-command-line-argument -Wno-incompatible-pointer-types -Wno-enum-conversion -Wno-incompatible-pointer-types -Wno-sometimes-uninitialized -Wno-constant-conversion -Wno-main-return-type
462
463 MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096 /FILEALIGN:4096 /SUBSYSTEM:CONSOLE
464 MSFT:DEBUG_*_*_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /BASE:0x10000
465 MSFT:NOOPT_*_*_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /BASE:0x10000
466
467 !if $(WIN_HOST_BUILD) == TRUE
468 #
469 # CLANGPDB tool chain depends on WIN_HOST_BUILD flag to generate the windows application.
470 #
471 GCC:*_CLANGPDB_*_DLINK_FLAGS = /ALIGN:4096 /FILEALIGN:4096 /SUBSYSTEM:CONSOLE
472 GCC:DEBUG_CLANGPDB_*_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /BASE:0x10000
473 GCC:NOOPT_CLANGPDB_*_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /BASE:0x10000
474 !endif