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