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