BaseTools/BinToPcd: Fix Python 2.7.x compatibility issue
[mirror_edk2.git] / DuetPkg / DuetPkgIa32.dsc
1 ## @file
2 # An EFI/Framework Emulation Platform with UEFI HII interface supported.
3 #
4 # Developer's UEFI Emulation. DUET provides an EFI/UEFI IA32/X64 environment on legacy BIOS,
5 # to help developing and debugging native EFI/UEFI drivers.
6 #
7 # Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
8 #
9 # This program and the accompanying materials
10 # are licensed and made available under the terms and conditions of the BSD License
11 # which accompanies this distribution. The full text of the license may be found at
12 # http://opensource.org/licenses/bsd-license.php
13 #
14 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #
17 ##
18
19 ################################################################################
20 #
21 # Defines Section - statements that will be processed to create a Makefile.
22 #
23 ################################################################################
24 [Defines]
25 PLATFORM_NAME = DuetPkg
26 PLATFORM_GUID = 199E24E0-0989-42aa-87F2-611A8C397E72
27 PLATFORM_VERSION = 0.4
28 DSC_SPECIFICATION = 0x00010005
29 OUTPUT_DIRECTORY = Build/DuetPkgIA32
30 SUPPORTED_ARCHITECTURES = IA32
31 BUILD_TARGETS = DEBUG
32 SKUID_IDENTIFIER = DEFAULT
33 FLASH_DEFINITION = DuetPkg/DuetPkg.fdf
34 !if $(TOOL_CHAIN_TAG) == GCC47 || $(TOOL_CHAIN_TAG) == GCC48 || $(TOOL_CHAIN_TAG) == GCC49 || $(TOOL_CHAIN_TAG) == GCC5
35 POSTBUILD = DuetPkg/PostBuild.sh
36 !else
37 POSTBUILD = DuetPkg/PostBuild.bat
38 !endif
39
40 ################################################################################
41 #
42 # Library Class section - list of all Library Classes needed by this Platform.
43 #
44 ################################################################################
45 [LibraryClasses]
46 #
47 # Entry point
48 #
49 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
50 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
51 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
52 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
53 #
54 # Basic
55 #
56 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
57 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
58 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
59 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
60 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
61 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
62 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
63 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
64 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
65 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
66 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
67 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
68 #
69 # UEFI & PI
70 #
71 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
72 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
73 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
74 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
75 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
76 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
77 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
78 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
79 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
80 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
81 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
82
83 #
84 # Generic Modules
85 #
86 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
87 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
88 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
89 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
90 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
91 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
92 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
93 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
94 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
95 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
96 #
97 # Platform
98 #
99 PlatformBdsLib|DuetPkg/Library/DuetBdsLib/PlatformBds.inf
100 TimerLib|DuetPkg/Library/DuetTimerLib/DuetTimerLib.inf
101 #
102 # Misc
103 #
104 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
105 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
106 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
107 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
108 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
109 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
110 PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
111 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
112 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
113 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
114 LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
115 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
116 SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
117 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
118
119 #
120 # To save size, use NULL library for DebugLib and ReportStatusCodeLib.
121 # If need status code output, do library instance overriden as below DxeMain.inf does
122 #
123 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
124 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
125 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
126
127 [LibraryClasses.common.DXE_CORE]
128 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
129 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
130
131 ################################################################################
132 #
133 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
134 #
135 ################################################################################
136 [PcdsFixedAtBuild]
137 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0
138 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0
139 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x0
140 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
141
142 [PcdsFeatureFlag]
143 gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
144
145 ###################################################################################################
146 #
147 # Components Section - list of the modules and components that will be processed by compilation
148 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
149 #
150 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
151 # into firmware volume images. This section is just a list of modules to compile from
152 # source into UEFI-compliant binaries.
153 # It is the FDF file that contains information on combining binary files into firmware
154 # volume images, whose concept is beyond UEFI and is described in PI specification.
155 # Binary modules do not need to be listed in this section, as they should be
156 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
157 # Logo (Logo.bmp), and etc.
158 # There may also be modules listed in this section that are not required in the FDF file,
159 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
160 # generated for it, but the binary will not be put into any firmware volume.
161 #
162 ###################################################################################################
163 [Components]
164 DuetPkg/DxeIpl/DxeIpl.inf {
165 <LibraryClasses>
166 #
167 # If no following overriden for ReportStatusCodeLib library class,
168 # All other module can *not* output debug information even they are use not NULL library
169 # instance for DebugLib and ReportStatusCodeLib
170 #
171 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
172 }
173
174 MdeModulePkg/Core/Dxe/DxeMain.inf {
175 #
176 # Enable debug output for DxeCore module, this is a sample for how to enable debug output
177 # for a module. If need turn on debug output for other module, please copy following overriden
178 # PCD and library instance to other module's override section.
179 #
180 <PcdsFixedAtBuild>
181 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
182 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
183 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000042
184 <LibraryClasses>
185 DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
186 ReportStatusCodeLib|DuetPkg/Library/DxeCoreReportStatusCodeLibFromHob/DxeCoreReportStatusCodeLibFromHob.inf
187 }
188
189 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
190 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
191 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
192 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
193
194 DuetPkg/FSVariable/FSVariable.inf
195 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
196 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
197 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
198 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
199 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf {
200 <LibraryClasses>
201 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
202 }
203 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
204 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
205 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
206
207 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
208 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
209 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
210 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
211
212
213 DuetPkg/SmbiosGenDxe/SmbiosGen.inf
214 #DuetPkg/FvbRuntimeService/DUETFwh.inf
215 DuetPkg/EfiLdr/EfiLdr.inf {
216 <LibraryClasses>
217 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
218 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
219 }
220 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf {
221 <LibraryClasses>
222 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
223 }
224 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
225 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
226 UefiCpuPkg/CpuDxe/CpuDxe.inf
227 PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
228 DuetPkg/AcpiResetDxe/Reset.inf
229 DuetPkg/LegacyMetronome/Metronome.inf
230
231 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
232 PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
233 DuetPkg/PciRootBridgeNoEnumerationDxe/PciRootBridgeNoEnumeration.inf
234 DuetPkg/PciBusNoEnumerationDxe/PciBusNoEnumeration.inf
235 IntelFrameworkModulePkg/Bus/Pci/VgaMiniPortDxe/VgaMiniPortDxe.inf
236 IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClassDxe.inf
237
238 # IDE/AHCI Support
239 DuetPkg/SataControllerDxe/SataControllerDxe.inf
240 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
241 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
242 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
243 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
244
245 # Usb Support
246 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
247 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
248 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
249 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
250 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
251
252 # ISA Support
253 PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
254 IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
255 IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
256 IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
257 IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
258
259 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
260 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
261 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
262 FatPkg/EnhancedFatDxe/Fat.inf
263
264 # Bios Thunk
265 DuetPkg/BiosVideoThunkDxe/BiosVideo.inf
266
267 #
268 # Sample Application
269 #
270 MdeModulePkg/Application/HelloWorld/HelloWorld.inf
271
272 ###################################################################################################
273 #
274 # BuildOptions Section - Define the module specific tool chain flags that should be used as
275 # the default flags for a module. These flags are appended to any
276 # standard flags that are defined by the build process. They can be
277 # applied for any modules or only those modules with the specific
278 # module style (EDK or EDKII) specified in [Components] section.
279 #
280 ###################################################################################################
281 [BuildOptions]
282 MSFT:*_*_*_CC_FLAGS = /FAsc /FR$(@R).SBR
283