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