3 # EFI/Framework Emulation Platform with UEFI HII interface supported.
5 # The Emulation Platform can be used to debug individual modules, prior to creating
6 # a real platform. This also provides an example for how an DSC is created.
7 # Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
8 # Portions copyright (c) 2010, Apple, Inc. All rights reserved.<BR>
10 # This program and the accompanying materials
11 # are licensed and made available under the terms and conditions of the BSD License
12 # which accompanies this distribution. The full text of the license may be found at
13 # http://opensource.org/licenses/bsd-license.php
15 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 ################################################################################
22 # Defines Section - statements that will be processed to create a Makefile.
24 ################################################################################
27 PLATFORM_GUID = 7b3c1fb4-8986-11db-b5b2-0040d02b1835
28 PLATFORM_VERSION = 0.3
29 DSC_SPECIFICATION = 0x00010005
30 OUTPUT_DIRECTORY = Build/UnixX64
31 SUPPORTED_ARCHITECTURES = X64
32 BUILD_TARGETS = DEBUG|RELEASE
33 SKUID_IDENTIFIER = DEFAULT
34 FLASH_DEFINITION = UnixPkg/UnixPkgX64.fdf
36 ################################################################################
38 # SKU Identification section - list of all SKU IDs supported by this Platform.
40 ################################################################################
44 ################################################################################
46 # Library Class section - list of all Library Classes needed by this Platform.
48 ################################################################################
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
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 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
68 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
72 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
73 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
74 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
75 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
76 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
77 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
78 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
79 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
80 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
81 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
82 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
83 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
87 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
88 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
89 IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
90 UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
91 DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
92 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
93 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
94 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
95 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
96 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
97 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
101 PlatformBdsLib|UnixPkg/Library/UnixBdsLib/PlatformBds.inf
105 DebugLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
106 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
107 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
108 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
109 SecDispatchTableLib|UnixPkg/Library/SecDispatchTableLib/SecDispatchTableLib.inf
110 LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
111 CpuExceptionHandlerLib|MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf
113 [LibraryClasses.common.USER_DEFINED]
114 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
115 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
116 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
117 OemHookStatusCodeLib|UnixPkg/Library/PeiUnixOemHookStatusCodeLib/PeiUnixOemHookStatusCodeLib.inf
118 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
120 [LibraryClasses.common.PEIM, LibraryClasses.common.PEI_CORE]
121 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
122 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
123 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
124 PeCoffGetEntryPointLib|UnixPkg/Library/EdkUnixPeiPeCoffGetEntryPointLib/EdkUnixPeiPeCoffGetEntryPointLib.inf
125 PeCoffExtraActionLib|UnixPkg/Library/PeiUnixPeCoffExtraActionLib/PeiUnixPeCoffExtraActionLib.inf
126 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
128 [LibraryClasses.common.PEIM]
129 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
130 OemHookStatusCodeLib|UnixPkg/Library/PeiUnixOemHookStatusCodeLib/PeiUnixOemHookStatusCodeLib.inf
132 [LibraryClasses.common.PEI_CORE]
133 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
135 [LibraryClasses.common.DXE_CORE]
136 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
137 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
138 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
139 PeCoffExtraActionLib|UnixPkg/Library/DxeUnixPeCoffExtraActionLib/DxeUnixPeCoffExtraActionLib.inf
140 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
142 [LibraryClasses.common.DXE_SMM_DRIVER]
143 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
144 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
145 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
146 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
147 OemHookStatusCodeLib|UnixPkg/Library/DxeUnixOemHookStatusCodeLib/DxeUnixOemHookStatusCodeLib.inf
148 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
150 [LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.DXE_DRIVER, LibraryClasses.common.UEFI_APPLICATION]
151 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
152 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
153 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
154 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
155 UnixLib|UnixPkg/Library/DxeUnixLib/DxeUnixLib.inf
156 OemHookStatusCodeLib|UnixPkg/Library/DxeUnixOemHookStatusCodeLib/DxeUnixOemHookStatusCodeLib.inf
157 PeCoffExtraActionLib|UnixPkg/Library/DxeUnixPeCoffExtraActionLib/DxeUnixPeCoffExtraActionLib.inf
159 [LibraryClasses.common.UEFI_APPLICATION]
160 PrintLib|MdeModulePkg/Library/DxePrintLibPrint2Protocol/DxePrintLibPrint2Protocol.inf
163 # turn off CR3 write so that DXE IPL will not crash emulator
164 BaseLib|UnixPkg/Library/UnixBaseLib/UnixBaseLib.inf
166 ################################################################################
168 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
170 ################################################################################
172 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
173 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
174 gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst|FALSE
175 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseOEM|TRUE
178 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
179 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000040
180 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0f
181 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x1f
182 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|0x0
183 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizePopulateCapsule|0x0
184 gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareFdSize|0x002a0000
185 gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareBlockSize|0x10000
186 gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareVolume|L"../FV/FV_RECOVERY.fd"
188 ################################################################################
190 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
192 ################################################################################
194 [PcdsDynamicDefault.common.DEFAULT]
195 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
196 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
197 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
198 gEfiUnixPkgTokenSpaceGuid.PcdUnixConsole|L"Bus Driver Console Window"
199 gEfiUnixPkgTokenSpaceGuid.PcdUnixUga|L"UGA Window"
200 gEfiUnixPkgTokenSpaceGuid.PcdUnixFileSystem|L".!../../../../EdkShellBinPkg/Bin/Ia32/Apps"
201 gEfiUnixPkgTokenSpaceGuid.PcdUnixVirtualDisk|L"disk1.img:FW"
202 gEfiUnixPkgTokenSpaceGuid.PcdUnixPhysicalDisk|L"E:RW;245760;512"
203 gEfiUnixPkgTokenSpaceGuid.PcdUnixCpuModel|L"Intel(R) Processor Model"
204 gEfiUnixPkgTokenSpaceGuid.PcdUnixCpuSpeed|L"3000"
205 gEfiUnixPkgTokenSpaceGuid.PcdUnixMemorySize|L"128!128"
206 gEfiUnixPkgTokenSpaceGuid.PcdUnixSerialPort|L"/dev/ttyS0!/dev/ttyS1"
207 gEfiUnixPkgTokenSpaceGuid.PcdUnixNetworkInterface|L"en0"
209 [PcdsDynamicHii.common.DEFAULT]
210 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdSetupConOutColumn|L"SetupConsoleConfig"|gEfiGlobalVariableGuid|0x0|80
211 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdSetupConOutRow|L"SetupConsoleConfig"|gEfiGlobalVariableGuid|0x4|25
212 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|10
215 # Magic to make system include files work
216 XCODE:*_XCLANG_*_CC_FLAGS = -U __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ -D __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1060 -D __APPLE__ -I/System/Library/Frameworks -I/Library/Frameworks
217 XCODE:*_XCLANG_*_PP_FLAGS = -U __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ -D __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__=1060 -D __APPLE__ -I/System/Library/Frameworks -I/Library/Frameworks
220 ###################################################################################################
222 # Components Section - list of the modules and components that will be processed by compilation
223 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
225 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
226 # into firmware volume images. This section is just a list of modules to compile from
227 # source into UEFI-compliant binaries.
228 # It is the FDF file that contains information on combining binary files into firmware
229 # volume images, whose concept is beyond UEFI and is described in PI specification.
230 # Binary modules do not need to be listed in this section, as they should be
231 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
232 # Logo (Logo.bmp), and etc.
233 # There may also be modules listed in this section that are not required in the FDF file,
234 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
235 # generated for it, but the binary will not be put into any firmware volume.
237 ###################################################################################################
243 UnixPkg/Sec/SecMain.inf
248 MdeModulePkg/Core/Pei/PeiMain.inf
249 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
251 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
253 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
254 UnixPkg/BootModePei/BootModePei.inf
255 UnixPkg/UnixFlashMapPei/FlashMap.inf
256 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
257 UnixPkg/UnixAutoScanPei/UnixAutoScan.inf
258 UnixPkg/UnixFirmwareVolumePei/UnixFwh.inf
259 UnixPkg/UnixThunkPpiToProtocolPei/UnixThunkPpiToProtocol.inf
260 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
265 MdeModulePkg/Core/Dxe/DxeMain.inf {
267 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
268 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
270 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
272 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
275 UnixPkg/MetronomeDxe/Metronome.inf
276 UnixPkg/RealTimeClockRuntimeDxe/RealTimeClock.inf
277 UnixPkg/ResetRuntimeDxe/Reset.inf
278 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
279 UnixPkg/FvbServicesRuntimeDxe/UnixFwh.inf
280 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
281 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
282 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
283 UnixPkg/UnixThunkDxe/UnixThunk.inf
284 UnixPkg/CpuRuntimeDxe/Cpu.inf
285 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
286 UnixPkg/MiscSubClassPlatformDxe/MiscSubClassDriver.inf
287 UnixPkg/TimerDxe/Timer.inf
288 IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
289 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
290 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
291 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
292 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
293 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
294 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
295 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
296 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
297 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
298 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
299 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
300 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
301 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
302 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
303 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
304 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
305 IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
306 UnixPkg/UnixBusDriverDxe/UnixBusDriver.inf
308 UnixPkg/UnixBlockIoDxe/UnixBlockIo.inf
309 UnixPkg/UnixSerialIoDxe/UnixSerialIo.inf
310 UnixPkg/UnixUgaDxe/UnixUga.inf
311 UnixPkg/UnixGopDxe/UnixGop.inf
312 UnixPkg/UnixConsoleDxe/UnixConsole.inf
313 UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.inf
314 MdeModulePkg/Application/HelloWorld/HelloWorld.inf
317 # Network stack drivers
319 !if $(NETWORK_SUPPORT)
320 UnixPkg/UnixSnpDxe/UnixSnpDxe.inf
322 MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
323 MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
324 MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
325 MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
326 MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
327 MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
328 MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
329 MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
330 MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
331 MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
333 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
334 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
335 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
336 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
337 MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf {
339 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
343 FatPkg/EnhancedFatDxe/Fat.inf