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