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