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