Vlv2TbltDevicePkg/dsc/fdf: use Tcg2 instead of TrEE.
[mirror_edk2.git] / Vlv2TbltDevicePkg / PlatformPkgGcc.fdf
1 #/** @file
2 # FDF file of Platform.
3 #
4 # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>
5 #
6 # This program and the accompanying materials are licensed and made available under
7 # the terms and conditions of the BSD License that accompanies this distribution.
8 # The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php.
10 #
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 #
14 #
15 #**/
16
17 [Defines]
18 DEFINE FLASH_BASE = 0xFFC00000 #The base address of the 4Mb FLASH Device.
19 DEFINE FLASH_SIZE = 0x00400000 #The flash size in bytes of the 4Mb FLASH Device.
20 DEFINE FLASH_BLOCK_SIZE = 0x1000 #The block size in bytes of the 4Mb FLASH Device.
21 DEFINE FLASH_NUM_BLOCKS = 0x400 #The number of blocks in 4Mb FLASH Device.
22 DEFINE FLASH_AREA_BASE_ADDRESS = 0xFF800000
23 DEFINE FLASH_AREA_SIZE = 0x00800000
24
25 DEFINE FLASH_REGION_VLVMICROCODE_OFFSET = 0x00000000
26 DEFINE FLASH_REGION_VLVMICROCODE_SIZE = 0x00040000
27 DEFINE FLASH_REGION_VLVMICROCODE_BASE = 0xFFC00000
28
29 DEFINE FLASH_REGION_VPD_OFFSET = 0x00040000
30 DEFINE FLASH_REGION_VPD_SIZE = 0x0003E000
31
32 DEFINE FLASH_REGION_NVSTORAGE_SUBREGION_NV_FTW_WORKING_OFFSET = 0x0007E000
33 DEFINE FLASH_REGION_NVSTORAGE_SUBREGION_NV_FTW_WORKING_SIZE = 0x00002000
34
35
36 DEFINE FLASH_REGION_NVSTORAGE_SUBREGION_NV_FTW_SPARE_OFFSET = 0x00080000
37 DEFINE FLASH_REGION_NVSTORAGE_SUBREGION_NV_FTW_SPARE_SIZE = 0x00040000
38
39 !if $(MINNOW2_FSP_BUILD) == TRUE
40 DEFINE FLASH_REGION_FSPBIN_OFFSET = 0x000C0000
41 DEFINE FLASH_REGION_FSPBIN_SIZE = 0x00048000
42 DEFINE FLASH_REGION_FSPBIN_BASE = 0xFFCC0000
43
44 DEFINE FLASH_REGION_AZALIABIN_OFFSET = 0x00108000
45 DEFINE FLASH_REGION_AZALIABIN_SIZE = 0x00008000
46 DEFINE FLASH_REGION_AZALIABIN_BASE = 0xFFD08000
47
48 !endif
49
50 DEFINE FLASH_REGION_FVMAIN_OFFSET = 0x00110000
51 DEFINE FLASH_REGION_FVMAIN_SIZE = 0x00215000
52
53 DEFINE FLASH_REGION_FV_RECOVERY2_OFFSET = 0x00325000
54 DEFINE FLASH_REGION_FV_RECOVERY2_SIZE = 0x0006B000
55
56 DEFINE FLASH_REGION_FV_RECOVERY_OFFSET = 0x00390000
57 DEFINE FLASH_REGION_FV_RECOVERY_SIZE = 0x00070000
58
59 ################################################################################
60 #
61 # FD Section
62 # The [FD] Section is made up of the definition statements and a
63 # description of what goes into the Flash Device Image. Each FD section
64 # defines one flash "device" image. A flash device image may be one of
65 # the following: Removable media bootable image (like a boot floppy
66 # image,) an Option ROM image (that would be "flashed" into an add-in
67 # card,) a System "Flash" image (that would be burned into a system's
68 # flash) or an Update ("Capsule") image that will be used to update and
69 # existing system flash.
70 #
71 ################################################################################
72 [FD.Vlv]
73 BaseAddress = $(FLASH_BASE)|gPlatformModuleTokenSpaceGuid.PcdFlashAreaBaseAddress #The base address of the 3Mb FLASH Device.
74 Size = $(FLASH_SIZE)|gPlatformModuleTokenSpaceGuid.PcdFlashAreaSize #The flash size in bytes of the 3Mb FLASH Device.
75 ErasePolarity = 1
76 BlockSize = $(FLASH_BLOCK_SIZE) #The block size in bytes of the 3Mb FLASH Device.
77 NumBlocks = $(FLASH_NUM_BLOCKS) #The number of blocks in 3Mb FLASH Device.
78
79 #
80 #Flash location override based on actual flash map
81 #
82 SET gPlatformModuleTokenSpaceGuid.PcdFlashAreaBaseAddress = $(FLASH_AREA_BASE_ADDRESS)
83 SET gPlatformModuleTokenSpaceGuid.PcdFlashAreaSize = $(FLASH_AREA_SIZE)
84
85 SET gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchAddress = $(FLASH_REGION_VLVMICROCODE_BASE) + 0x60
86 SET gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize = $(FLASH_REGION_VLVMICROCODE_SIZE) - 0x60
87
88 !if $(MINNOW2_FSP_BUILD) == TRUE
89 # put below PCD value setting into dsc file
90 #SET gFspWrapperTokenSpaceGuid.PcdCpuMicrocodePatchAddress = $(FLASH_REGION_VLVMICROCODE_BASE)
91 #SET gFspWrapperTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize = $(FLASH_REGION_VLVMICROCODE_SIZE)
92 #SET gFspWrapperTokenSpaceGuid.PcdFlashMicroCodeOffset = 0x60
93 #SET gFspWrapperTokenSpaceGuid.PcdFlashCodeCacheAddress = $(FLASH_AREA_BASE_ADDRESS)
94 #SET gFspWrapperTokenSpaceGuid.PcdFlashCodeCacheSize = $(FLASH_AREA_SIZE)
95 #SET gFspWrapperTokenSpaceGuid.PcdFlashFvFspBase = $(FLASH_REGION_FSPBIN_BASE)
96 #SET gFspWrapperTokenSpaceGuid.PcdFlashFvFspSize = $(FLASH_REGION_FSPBIN_SIZE)
97
98 !endif
99 ################################################################################
100 #
101 # Following are lists of FD Region layout which correspond to the locations of different
102 # images within the flash device.
103 #
104 # Regions must be defined in ascending order and may not overlap.
105 #
106 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
107 # the pipe "|" character, followed by the size of the region, also in hex with the leading
108 # "0x" characters. Like:
109 # Offset|Size
110 # PcdOffsetCName|PcdSizeCName
111 # RegionType <FV, DATA, or FILE>
112 # Fv Size can be adjusted; FVMAIN_COMPACT can be reduced to 0x120000, and FV_RECOVERY can be enlarged to 0x80000
113 #
114 ################################################################################
115 # Since the Fce tool don't have gcc version, we can't handle default variable in Linux,
116 # so we hardcode the default value of variable here.
117 # Please note that we MUST update the binary once the default value is changed.
118
119 #
120 # CPU Microcodes
121 #
122
123 $(FLASH_REGION_VLVMICROCODE_OFFSET)|$(FLASH_REGION_VLVMICROCODE_SIZE)
124 gPlatformModuleTokenSpaceGuid.PcdFlashMicroCodeAddress|gPlatformModuleTokenSpaceGuid.PcdFlashMicroCodeSize
125 FV = MICROCODE_FV
126
127 $(FLASH_REGION_VPD_OFFSET)|$(FLASH_REGION_VPD_SIZE)
128 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
129 FILE = $(WORKSPACE)/Vlv2TbltDevicePkg/Stitch/Gcc/NvStorageVariable.bin
130
131 $(FLASH_REGION_NVSTORAGE_SUBREGION_NV_FTW_WORKING_OFFSET)|$(FLASH_REGION_NVSTORAGE_SUBREGION_NV_FTW_WORKING_SIZE)
132 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
133 FILE = $(WORKSPACE)/Vlv2TbltDevicePkg/Stitch/Gcc/NvStorageFtwWorking.bin
134
135 $(FLASH_REGION_NVSTORAGE_SUBREGION_NV_FTW_SPARE_OFFSET)|$(FLASH_REGION_NVSTORAGE_SUBREGION_NV_FTW_SPARE_SIZE)
136 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
137 FILE = $(WORKSPACE)/Vlv2TbltDevicePkg/Stitch/Gcc/NvStorageFtwSpare.bin
138
139 !if $(MINNOW2_FSP_BUILD) == TRUE
140
141 $(FLASH_REGION_FSPBIN_OFFSET)|$(FLASH_REGION_FSPBIN_SIZE)
142 gFspWrapperTokenSpaceGuid.PcdFlashFvFspBase|gFspWrapperTokenSpaceGuid.PcdFlashFvFspSize
143 FILE = Vlv2MiscBinariesPkg/FspBinary/FvFsp.bin
144
145
146 $(FLASH_REGION_AZALIABIN_OFFSET)|$(FLASH_REGION_AZALIABIN_SIZE)
147 FILE = Vlv2TbltDevicePkg/FspAzaliaConfigData/AzaliaConfig.bin
148
149 !endif
150
151 #
152 # Main Block
153 #
154 $(FLASH_REGION_FVMAIN_OFFSET)|$(FLASH_REGION_FVMAIN_SIZE)
155 gPlatformModuleTokenSpaceGuid.PcdFlashFvMainBase|gPlatformModuleTokenSpaceGuid.PcdFlashFvMainSize
156 FV = FVMAIN_COMPACT
157
158 #
159 # FV Recovery#2
160 #
161 $(FLASH_REGION_FV_RECOVERY2_OFFSET)|$(FLASH_REGION_FV_RECOVERY2_SIZE)
162 gPlatformModuleTokenSpaceGuid.PcdFlashFvRecovery2Base|gPlatformModuleTokenSpaceGuid.PcdFlashFvRecovery2Size
163 FV = FVRECOVERY2
164
165 #
166 # FV Recovery
167 #
168 $(FLASH_REGION_FV_RECOVERY_OFFSET)|$(FLASH_REGION_FV_RECOVERY_SIZE)
169 gPlatformModuleTokenSpaceGuid.PcdFlashFvRecoveryBase|gPlatformModuleTokenSpaceGuid.PcdFlashFvRecoverySize
170 FV = FVRECOVERY
171
172 ################################################################################
173 #
174 # FV Section
175 #
176 # [FV] section is used to define what components or modules are placed within a flash
177 # device file. This section also defines order the components and modules are positioned
178 # within the image. The [FV] section consists of define statements, set statements and
179 # module statements.
180 #
181 ################################################################################
182 [FV.MICROCODE_FV]
183 BlockSize = $(FLASH_BLOCK_SIZE)
184 FvAlignment = 16
185 ERASE_POLARITY = 1
186 MEMORY_MAPPED = TRUE
187 STICKY_WRITE = TRUE
188 LOCK_CAP = TRUE
189 LOCK_STATUS = FALSE
190 WRITE_DISABLED_CAP = TRUE
191 WRITE_ENABLED_CAP = TRUE
192 WRITE_STATUS = TRUE
193 WRITE_LOCK_CAP = TRUE
194 WRITE_LOCK_STATUS = TRUE
195 READ_DISABLED_CAP = TRUE
196 READ_ENABLED_CAP = TRUE
197 READ_STATUS = TRUE
198 READ_LOCK_CAP = TRUE
199 READ_LOCK_STATUS = TRUE
200
201 FILE RAW = 197DB236-F856-4924-90F8-CDF12FB875F3 {
202 $(OUTPUT_DIRECTORY)/$(TARGET)_$(TOOL_CHAIN_TAG)/$(DXE_ARCHITECTURE)/MicrocodeUpdates.bin
203 }
204
205 !if $(RECOVERY_ENABLE)
206 [FV.FVRECOVERY_COMPONENTS]
207 FvAlignment = 16 #FV alignment and FV attributes setting.
208 ERASE_POLARITY = 1
209 MEMORY_MAPPED = TRUE
210 STICKY_WRITE = TRUE
211 LOCK_CAP = TRUE
212 LOCK_STATUS = TRUE
213 WRITE_DISABLED_CAP = TRUE
214 WRITE_ENABLED_CAP = TRUE
215 WRITE_STATUS = TRUE
216 WRITE_LOCK_CAP = TRUE
217 WRITE_LOCK_STATUS = TRUE
218 READ_DISABLED_CAP = TRUE
219 READ_ENABLED_CAP = TRUE
220 READ_STATUS = TRUE
221 READ_LOCK_CAP = TRUE
222 READ_LOCK_STATUS = TRUE
223
224 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PchUsb.inf
225 INF MdeModulePkg/Bus/Pci/EhciPei/EhciPei.inf
226 INF MdeModulePkg/Bus/Usb/UsbBusPei/UsbBusPei.inf
227 INF MdeModulePkg/Bus/Usb/UsbBotPei/UsbBotPei.inf
228 INF FatPkg/FatPei/FatPei.inf
229 INF MdeModulePkg/Universal/Disk/CdExpressPei/CdExpressPei.inf
230 INF SignedCapsulePkg/Universal/RecoveryModuleLoadPei/RecoveryModuleLoadPei.inf
231 !endif
232
233 ################################################################################
234 #
235 # FV Section
236 #
237 # [FV] section is used to define what components or modules are placed within a flash
238 # device file. This section also defines order the components and modules are positioned
239 # within the image. The [FV] section consists of define statements, set statements and
240 # module statements.
241 #
242 ################################################################################
243 [FV.FVRECOVERY2]
244 BlockSize = $(FLASH_BLOCK_SIZE)
245 FvAlignment = 16 #FV alignment and FV attributes setting.
246 ERASE_POLARITY = 1
247 MEMORY_MAPPED = TRUE
248 STICKY_WRITE = TRUE
249 LOCK_CAP = TRUE
250 LOCK_STATUS = TRUE
251 WRITE_DISABLED_CAP = TRUE
252 WRITE_ENABLED_CAP = TRUE
253 WRITE_STATUS = TRUE
254 WRITE_LOCK_CAP = TRUE
255 WRITE_LOCK_STATUS = TRUE
256 READ_DISABLED_CAP = TRUE
257 READ_ENABLED_CAP = TRUE
258 READ_STATUS = TRUE
259 READ_LOCK_CAP = TRUE
260 READ_LOCK_STATUS = TRUE
261 FvNameGuid = B73FE497-B92E-416e-8326-45AD0D270092
262
263
264
265 INF $(PLATFORM_PACKAGE)/PlatformInitPei/PlatformInitPei.inf
266
267 !if $(MINNOW2_FSP_BUILD) == FALSE
268 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PchSmbusArpDisabled.inf
269 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/VlvInitPeim.inf
270 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PchInitPeim.inf
271 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PchSpiPeim.inf
272 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PeiSmmAccess.inf
273 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PeiSmmControl.inf
274 INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
275 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/MpS3.inf
276 INF EdkCompatibilityPkg/Compatibility/AcpiVariableHobOnSmramReserveHobThunk/AcpiVariableHobOnSmramReserveHobThunk.inf
277 !endif
278
279 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PiSmmCommunicationPei.inf
280 !if $(TPM_ENABLED) == TRUE
281 INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
282 INF SecurityPkg/Tcg/TcgPei/TcgPei.inf
283 INF SecurityPkg/Tcg/PhysicalPresencePei/PhysicalPresencePei.inf
284 !endif
285 !if $(FTPM_ENABLE) == TRUE
286 INF SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf #use PCD config
287 !endif
288 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
289
290 !if $(ACPI50_ENABLE) == TRUE
291 INF MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTablePei/FirmwarePerformancePei.inf
292 !endif
293 !if $(PERFORMANCE_ENABLE) == TRUE
294 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
295 !endif
296
297 !if $(RECOVERY_ENABLE)
298 FILE FV_IMAGE = 1E9D7604-EF45-46a0-BD8A-71AC78C17AC1 {
299 SECTION PEI_DEPEX_EXP = {gEfiPeiMemoryDiscoveredPpiGuid AND gEfiPeiBootInRecoveryModePpiGuid}
300 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF { # LZMA COMPRESS GUID
301 SECTION FV_IMAGE = FVRECOVERY_COMPONENTS
302 }
303 }
304 !endif
305
306 [FV.FVRECOVERY]
307 BlockSize = $(FLASH_BLOCK_SIZE)
308 FvAlignment = 16 #FV alignment and FV attributes setting.
309 ERASE_POLARITY = 1
310 MEMORY_MAPPED = TRUE
311 STICKY_WRITE = TRUE
312 LOCK_CAP = TRUE
313 LOCK_STATUS = TRUE
314 WRITE_DISABLED_CAP = TRUE
315 WRITE_ENABLED_CAP = TRUE
316 WRITE_STATUS = TRUE
317 WRITE_LOCK_CAP = TRUE
318 WRITE_LOCK_STATUS = TRUE
319 READ_DISABLED_CAP = TRUE
320 READ_ENABLED_CAP = TRUE
321 READ_STATUS = TRUE
322 READ_LOCK_CAP = TRUE
323 READ_LOCK_STATUS = TRUE
324 FvNameGuid = B73FE497-B92E-416e-8326-45AD0D270091
325
326
327 !if $(MINNOW2_FSP_BUILD) == TRUE
328 INF IntelFspWrapperPkg/FspWrapperSecCore/FspWrapperSecCore.inf
329 !else
330 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/SecCore.inf
331 !endif
332
333 INF MdeModulePkg/Core/Pei/PeiMain.inf
334 !if $(MINNOW2_FSP_BUILD) == TRUE
335 INF Vlv2TbltDevicePkg/FspSupport/BootModePei/BootModePei.inf
336 INF IntelFspWrapperPkg/FspInitPei/FspInitPei.inf
337 !endif
338 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/CpuPeim.inf
339 INF MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
340 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
341
342 INF $(PLATFORM_PACKAGE)/PlatformPei/PlatformPei.inf
343
344 !if $(MINNOW2_FSP_BUILD) == FALSE
345 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/SeCUma.inf
346 !endif
347
348 !if $(FTPM_ENABLE) == TRUE
349 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fTPMInitPeim.inf
350 !endif
351
352 !if $(SOURCE_DEBUG_ENABLE) == TRUE
353 INF SourceLevelDebugPkg/DebugAgentPei/DebugAgentPei.inf
354 !endif
355
356
357 !if $(CAPSULE_ENABLE) == TRUE
358 INF MdeModulePkg/Universal/CapsulePei/CapsulePei.inf
359 !if $(DXE_ARCHITECTURE) == "X64"
360 INF MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf
361 !endif
362 !endif
363
364 !if $(MINNOW2_FSP_BUILD) == FALSE
365 !if $(PCIESC_ENABLE) == TRUE
366 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/PchEarlyInitPeim.inf
367 !endif
368 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/MemoryInit.inf
369 !endif
370
371 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
372
373 !if $(CAPSULE_ENABLE) || $(RECOVERY_ENABLE)
374 # FMP image decriptor
375 INF RuleOverride = FMP_IMAGE_DESC Vlv2TbltDevicePkg/Feature/Capsule/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf
376 !endif
377
378 [FV.FVMAIN]
379 BlockSize = $(FLASH_BLOCK_SIZE)
380 FvAlignment = 16
381 ERASE_POLARITY = 1
382 MEMORY_MAPPED = TRUE
383 STICKY_WRITE = TRUE
384 LOCK_CAP = TRUE
385 LOCK_STATUS = TRUE
386 WRITE_DISABLED_CAP = TRUE
387 WRITE_ENABLED_CAP = TRUE
388 WRITE_STATUS = TRUE
389 WRITE_LOCK_CAP = TRUE
390 WRITE_LOCK_STATUS = TRUE
391 READ_DISABLED_CAP = TRUE
392 READ_ENABLED_CAP = TRUE
393 READ_STATUS = TRUE
394 READ_LOCK_CAP = TRUE
395 READ_LOCK_STATUS = TRUE
396 FvNameGuid = A881D567-6CB0-4eee-8435-2E72D33E45B5
397
398 APRIORI DXE {
399 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
400 INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
401 INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
402 }
403
404 FILE FREEFORM = C3E36D09-8294-4b97-A857-D5288FE33E28 {
405 SECTION RAW = $(OUTPUT_DIRECTORY)/$(TARGET)_$(TOOL_CHAIN_TAG)/$(DXE_ARCHITECTURE)/BiosId.bin
406 }
407
408 #
409 # EDK II Related Platform codes
410 #
411
412 !if $(MINNOW2_FSP_BUILD) == TRUE
413 INF IntelFspWrapperPkg/FspNotifyDxe/FspNotifyDxe.inf
414 !endif
415
416 INF MdeModulePkg/Core/Dxe/DxeMain.inf
417 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
418 !if $(ACPI50_ENABLE) == TRUE
419 INF MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf
420 INF MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerformanceSmm.inf
421 !endif
422
423
424 INF IntelFrameworkModulePkg/Universal/CpuIoDxe/CpuIoDxe.inf
425 INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
426 INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
427 INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
428 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Smm/ReportStatusCodeRouterSmm.inf
429 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
430 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/MpCpu.inf
431 INF $(PLATFORM_PACKAGE)/Metronome/Metronome.inf
432 INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
433 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
434 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
435 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
436 INF IntelFrameworkModulePkg/Universal/Acpi/AcpiS3SaveDxe/AcpiS3SaveDxe.inf
437
438 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
439 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf
440 INF $(PLATFORM_PACKAGE)/FvbRuntimeDxe/FvbSmm.inf
441 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
442 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PchSpiSmm.inf
443 !if $(SECURE_BOOT_ENABLE)
444 INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
445 !endif
446
447 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
448
449 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
450 INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
451 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
452 INF $(PLATFORM_PACKAGE)/FvbRuntimeDxe/FvbRuntimeDxe.inf
453
454
455 INF $(PLATFORM_PACKAGE)/PlatformSetupDxe/PlatformSetupDxe.inf
456
457 !if $(DATAHUB_ENABLE) == TRUE
458 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
459 !endif
460 INF IntelFrameworkModulePkg/Universal/StatusCode/DatahubStatusCodeHandlerDxe/DatahubStatusCodeHandlerDxe.inf
461 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
462
463 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/Dptf.inf
464
465 #
466 # EDK II Related Silicon codes
467 #
468 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PchS3SupportDxe.inf
469
470 !if $(USE_HPET_TIMER) == TRUE
471 INF PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
472 !else
473 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/SmartTimer.inf
474 !endif
475 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/SmmControl.inf
476
477 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PchSmbusDxe.inf
478
479 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/IntelPchLegacyInterrupt.inf
480 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PchReset.inf
481
482 !if $(MINNOW2_FSP_BUILD) == FALSE
483 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PchInitDxe.inf
484 !endif
485 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PchSmiDispatcher.inf
486 !if $(PCIESC_ENABLE) == TRUE
487 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PchPcieSmm.inf
488 !endif
489
490 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PchSpiRuntime.inf
491 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PchPolicyInitDxe.inf
492 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PchBiosWriteProtect.inf
493 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/SmmAccess.inf
494 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PciHostBridge.inf
495 !if $(MINNOW2_FSP_BUILD) == FALSE
496 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/VlvInitDxe.inf
497 !else
498 INF IntelFrameworkModulePkg/Universal/LegacyRegionDxe/LegacyRegionDxe.inf
499 INF Vlv2TbltDevicePkg/VlvPlatformInitDxe/VlvPlatformInitDxe.inf
500 !endif
501 !if $(MINNOW2_FSP_BUILD) == FALSE
502 !if $(SEC_ENABLE) == TRUE
503 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/HeciDrv.inf
504 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/SeCPolicyInitDxe.inf
505 !endif
506 !endif
507 !if $(TPM_ENABLED) == TRUE
508 INF SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf
509 INF SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
510 INF RuleOverride = DRIVER_ACPITABLE SecurityPkg/Tcg/TcgSmm/TcgSmm.inf
511 !endif
512 !if $(FTPM_ENABLE) == TRUE
513 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/Tpm2DeviceSeCPei.inf
514 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/Tpm2DeviceSeCDxe.inf
515 INF SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.inf
516 INF SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
517 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/FtpmSmm.inf
518 !endif
519
520 #
521 # EDK II Related Platform codes
522 #
523 INF $(PLATFORM_PACKAGE)/PlatformSmm/PlatformSmm.inf
524 INF $(PLATFORM_PACKAGE)/PlatformInfoDxe/PlatformInfoDxe.inf
525 INF $(PLATFORM_PACKAGE)/PlatformCpuInfoDxe/PlatformCpuInfoDxe.inf
526 INF $(PLATFORM_PACKAGE)/PlatformDxe/PlatformDxe.inf
527 INF $(PLATFORM_PACKAGE)/PciPlatform/PciPlatform.inf
528 INF $(PLATFORM_PACKAGE)/SaveMemoryConfig/SaveMemoryConfig.inf
529 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PlatformCpuPolicy.inf
530 INF $(PLATFORM_PACKAGE)/PpmPolicy/PpmPolicy.inf
531 INF $(PLATFORM_PACKAGE)/SmramSaveInfoHandlerSmm/SmramSaveInfoHandlerSmm.inf
532 !if $(GOP_DRIVER_ENABLE) == TRUE
533 INF $(PLATFORM_PACKAGE)/PlatformGopPolicy/PlatformGopPolicy.inf
534 FILE DRIVER = FF0C8745-3270-4439-B74F-3E45F8C77064 {
535 SECTION DXE_DEPEX_EXP = {gPlatformGOPPolicyGuid}
536 SECTION PE32 = Vlv2MiscBinariesPkg/GOP/7.2.1011/RELEASE_VS2008x86/$(DXE_ARCHITECTURE)/IntelGopDriver.efi
537 SECTION UI = "IntelGopDriver"
538 }
539 !endif
540
541 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PnpDxe.inf
542 #
543 # SMM
544 #
545 INF MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
546 INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
547 INF UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
548
549 INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
550 INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
551 INF UefiCpuPkg/PiSmmCommunication/PiSmmCommunicationSmm.inf
552 INF $(PLATFORM_PACKAGE)/SmmSwDispatch2OnSmmSwDispatchThunk/SmmSwDispatch2OnSmmSwDispatchThunk.inf
553
554 #
555 # Remove the following two SMM binary modules that prevent platform from booting to UEFI Shell
556 #
557 #INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/PowerManagement2.inf
558 #INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/DigitalThermalSensor.inf
559
560 #
561 # ACPI
562 #
563 INF MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
564 INF $(PLATFORM_PACKAGE)/BootScriptSaveDxe/BootScriptSaveDxe.inf
565 INF IntelFrameworkModulePkg/Universal/Acpi/AcpiSupportDxe/AcpiSupportDxe.inf
566 INF RuleOverride = ACPITABLE2 Vlv2DeviceRefCodePkg/ValleyView2Soc/CPU/PowerManagement/AcpiTables/PowerManagementAcpiTables.inf
567
568 INF RuleOverride = ACPITABLE $(PLATFORM_RC_PACKAGE)/AcpiTablesPCAT/AcpiTables.inf
569
570 INF $(PLATFORM_PACKAGE)/AcpiPlatform/AcpiPlatform.inf
571
572 #
573 # PCI
574 #
575 INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
576
577 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/ISPDxe.inf
578
579
580 #
581 # ISA
582 #
583 INF $(PLATFORM_PACKAGE)/Wpce791/Wpce791.inf
584 INF IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
585 INF IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/IsaIoDxe.inf
586 !if $(SOURCE_DEBUG_ENABLE) != TRUE
587 INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
588 !endif
589 #INF IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
590 #INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
591
592 #
593 # SDIO
594 #
595 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/MmcHost.inf
596 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/MmcMediaDevice.inf
597 #
598 # IDE/SCSI/AHCI
599 #
600 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
601
602 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
603
604 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
605 !if $(SATA_ENABLE) == TRUE
606 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/SataController.inf
607 #
608
609 #
610 INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
611 INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
612 !if $(SCSI_ENABLE) == TRUE
613 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
614 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
615 !endif
616 #
617 !endif
618 # Console
619 #
620 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
621 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
622 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
623 INF IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClassDxe.inf
624 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
625 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
626 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
627 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
628 #
629 # USB
630 #
631 !if $(USB_ENABLE) == TRUE
632 INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
633 INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
634 INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
635 INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
636 INF MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
637 INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
638 INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
639 !endif
640
641 #
642 # ECP
643 #
644 INF EdkCompatibilityPkg/Compatibility/LegacyRegion2OnLegacyRegionThunk/LegacyRegion2OnLegacyRegionThunk.inf
645 INF EdkCompatibilityPkg/Compatibility/SmmBaseOnSmmBase2Thunk/SmmBaseOnSmmBase2Thunk.inf
646 INF EdkCompatibilityPkg/Compatibility/SmmBaseHelper/SmmBaseHelper.inf
647 INF EdkCompatibilityPkg/Compatibility/SmmAccess2OnSmmAccessThunk/SmmAccess2OnSmmAccessThunk.inf
648 INF EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.inf
649 INF EdkCompatibilityPkg/Compatibility/FvOnFv2Thunk/FvOnFv2Thunk.inf
650 #
651 # SMBIOS
652 #
653 INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
654 INF $(PLATFORM_PACKAGE)/SmBiosMiscDxe/SmBiosMiscDxe.inf
655
656 INF RuleOverride = BINARY $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/$(DXE_ARCHITECTURE)/SmbiosMemory.inf
657
658 #
659 # Legacy Modules
660 #
661 INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
662
663 #
664 # FAT file system
665 #
666 INF FatPkg/EnhancedFatDxe/Fat.inf
667
668 #
669 # UEFI Shell
670 #
671 FILE APPLICATION = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile) {
672 # SECTION PE32 = EdkShellBinPkg/FullShell/$(EDK_DXE_ARCHITECTURE)/Shell_Full.efi
673 SECTION PE32 = EdkShellBinPkg/MinimumShell/$(EDK_DXE_ARCHITECTURE)/Shell.efi
674 }
675
676 #
677 # dp command
678 #
679 !if $(PERFORMANCE_ENABLE) == TRUE
680 INF ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf
681 !endif
682
683 !if $(GOP_DRIVER_ENABLE) == TRUE
684 FILE FREEFORM = 878AC2CC-5343-46F2-B563-51F89DAF56BA {
685 SECTION RAW = Vlv2MiscBinariesPkg/GOP/7.2.1011/VBT/MNW2/Vbt.bin
686 SECTION UI = "IntelGopVbt"
687 }
688 !endif
689
690 #
691 # Network Modules
692 #
693 !if $(NETWORK_ENABLE) == TRUE
694 FILE DRIVER = 22DE1691-D65D-456a-993E-A253DD1F308C {
695 SECTION PE32 = Vlv2MiscBinariesPkg/UNDI/RtkUndiDxe/$(DXE_ARCHITECTURE)/RtkUndiDxe.efi
696 SECTION UI = "UNDI"
697 }
698 INF MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
699 INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
700 INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
701 INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
702 INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
703 INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
704 INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
705 INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
706 !if $(NETWORK_IP6_ENABLE) == TRUE
707 INF NetworkPkg/Ip6Dxe/Ip6Dxe.inf
708 INF NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
709 INF NetworkPkg/IpSecDxe/IpSecDxe.inf
710 INF NetworkPkg/Udp6Dxe/Udp6Dxe.inf
711 INF NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf
712 !endif
713 !if $(NETWORK_IP6_ENABLE) == TRUE
714 INF NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
715 INF NetworkPkg/TcpDxe/TcpDxe.inf
716 !else
717 INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
718 INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
719 !endif
720 !if $(NETWORK_VLAN_ENABLE) == TRUE
721 INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
722 !endif
723 !if $(NETWORK_ISCSI_ENABLE) == TRUE
724 !if $(NETWORK_IP6_ENABLE) == TRUE
725 INF NetworkPkg/IScsiDxe/IScsiDxe.inf
726 !else
727 INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
728 !endif
729 !endif
730 !endif
731
732 !if $(CAPSULE_ENABLE) || $(MICOCODE_CAPSULE_ENABLE)
733 INF MdeModulePkg/Universal/EsrtFmpDxe/EsrtFmpDxe.inf
734 !endif
735 !if $(CAPSULE_ENABLE)
736 INF SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareReportDxe.inf
737 !endif
738 !if $(MICOCODE_CAPSULE_ENABLE)
739 INF UefiCpuPkg/Feature/Capsule/MicrocodeUpdateDxe/MicrocodeUpdateDxe.inf
740 !endif
741
742 !if $(RECOVERY_ENABLE)
743 FILE FREEFORM = PCD(gEfiSignedCapsulePkgTokenSpaceGuid.PcdEdkiiRsa2048Sha256TestPublicKeyFileGuid) {
744 SECTION RAW = BaseTools/Source/Python/Rsa2048Sha256Sign/TestSigningPublicKey.bin
745 SECTION UI = "Rsa2048Sha256TestSigningPublicKey"
746 }
747 !endif
748
749 !if $(CAPSULE_ENABLE)
750 FILE FREEFORM = PCD(gEfiSignedCapsulePkgTokenSpaceGuid.PcdEdkiiPkcs7TestPublicKeyFileGuid) {
751 SECTION RAW = BaseTools/Source/Python/Pkcs7Sign/TestRoot.cer
752 SECTION UI = "Pkcs7TestRoot"
753 }
754 !endif
755
756 [FV.FVMAIN_COMPACT]
757 BlockSize = $(FLASH_BLOCK_SIZE)
758 FvAlignment = 16
759 ERASE_POLARITY = 1
760 MEMORY_MAPPED = TRUE
761 STICKY_WRITE = TRUE
762 LOCK_CAP = TRUE
763 LOCK_STATUS = TRUE
764 WRITE_DISABLED_CAP = TRUE
765 WRITE_ENABLED_CAP = TRUE
766 WRITE_STATUS = TRUE
767 WRITE_LOCK_CAP = TRUE
768 WRITE_LOCK_STATUS = TRUE
769 READ_DISABLED_CAP = TRUE
770 READ_ENABLED_CAP = TRUE
771 READ_STATUS = TRUE
772 READ_LOCK_CAP = TRUE
773 READ_LOCK_STATUS = TRUE
774
775
776
777 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
778 !if $(LZMA_ENABLE) == TRUE
779 # LZMA Compress
780 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
781 SECTION FV_IMAGE = FVMAIN
782 }
783 !else
784 !if $(DXE_COMPRESS_ENABLE) == TRUE
785 # Tiano Compress
786 SECTION GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
787 SECTION FV_IMAGE = FVMAIN
788 }
789 !else
790 # No Compress
791 SECTION COMPRESS PI_NONE {
792 SECTION FV_IMAGE = FVMAIN
793 }
794 !endif
795 !endif
796 }
797
798 [FV.SETUP_DATA]
799 BlockSize = $(FLASH_BLOCK_SIZE)
800 #NumBlocks = 0x10
801 FvAlignment = 16
802 ERASE_POLARITY = 1
803 MEMORY_MAPPED = TRUE
804 STICKY_WRITE = TRUE
805 LOCK_CAP = TRUE
806 LOCK_STATUS = TRUE
807 WRITE_DISABLED_CAP = TRUE
808 WRITE_ENABLED_CAP = TRUE
809 WRITE_STATUS = TRUE
810 WRITE_LOCK_CAP = TRUE
811 WRITE_LOCK_STATUS = TRUE
812 READ_DISABLED_CAP = TRUE
813 READ_ENABLED_CAP = TRUE
814 READ_STATUS = TRUE
815 READ_LOCK_CAP = TRUE
816 READ_LOCK_STATUS = TRUE
817
818
819 !if $(CAPSULE_ENABLE) || $(RECOVERY_ENABLE)
820 [FV.CapsuleDispatchFv]
821 FvAlignment = 16
822 ERASE_POLARITY = 1
823 MEMORY_MAPPED = TRUE
824 STICKY_WRITE = TRUE
825 LOCK_CAP = TRUE
826 LOCK_STATUS = TRUE
827 WRITE_DISABLED_CAP = TRUE
828 WRITE_ENABLED_CAP = TRUE
829 WRITE_STATUS = TRUE
830 WRITE_LOCK_CAP = TRUE
831 WRITE_LOCK_STATUS = TRUE
832 READ_DISABLED_CAP = TRUE
833 READ_ENABLED_CAP = TRUE
834 READ_STATUS = TRUE
835 READ_LOCK_CAP = TRUE
836 READ_LOCK_STATUS = TRUE
837
838 !if $(CAPSULE_ENABLE)
839 INF SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareUpdateDxe.inf
840 !endif
841
842 !endif
843
844 ################################################################################
845 #
846 # Rules are use with the [FV] section's module INF type to define
847 # how an FFS file is created for a given INF file. The following Rule are the default
848 # rules for the different module type. User can add the customized rules to define the
849 # content of the FFS file.
850 #
851 ################################################################################
852 [Rule.Common.SEC]
853 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
854 PE32 PE32 Align = 8 $(INF_OUTPUT)/$(MODULE_NAME).efi
855 RAW BIN Align = 16 |.com
856 }
857
858 [Rule.Common.SEC.BINARY]
859 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
860 PE32 PE32 Align = 8 |.efi
861 !if $(MINNOW2_FSP_BUILD) == TRUE
862 RAW RAW |.raw
863 !else
864 RAW BIN Align = 16 |.com
865 !endif
866 }
867
868 [Rule.Common.PEI_CORE]
869 FILE PEI_CORE = $(NAMED_GUID) {
870 PE32 PE32 Align = Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
871 UI STRING="$(MODULE_NAME)" Optional
872 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
873 }
874
875 [Rule.Common.PEIM]
876 FILE PEIM = $(NAMED_GUID) {
877 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
878 PE32 PE32 Align = Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
879 UI STRING="$(MODULE_NAME)" Optional
880 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
881 }
882
883 [Rule.Common.PEIM.BINARY]
884 FILE PEIM = $(NAMED_GUID) {
885 PEI_DEPEX PEI_DEPEX Optional |.depex
886 PE32 PE32 Align = Auto |.efi
887 UI STRING="$(MODULE_NAME)" Optional
888 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
889 }
890
891 [Rule.Common.PEIM.BIOSID]
892 FILE PEIM = $(NAMED_GUID) {
893 RAW BIN BiosId.bin
894 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
895 PE32 PE32 Align = Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
896 UI STRING="$(MODULE_NAME)" Optional
897 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
898 }
899
900 [Rule.Common.USER_DEFINED.APINIT]
901 FILE RAW = $(NAMED_GUID) Fixed Align=4K {
902 RAW SEC_BIN |.com
903 }
904 #cjia 2011-07-21
905 [Rule.Common.USER_DEFINED.LEGACY16]
906 FILE FREEFORM = $(NAMED_GUID) {
907 UI STRING="$(MODULE_NAME)" Optional
908 RAW BIN |.bin
909 }
910 #cjia
911
912 [Rule.Common.USER_DEFINED.ASM16]
913 FILE FREEFORM = $(NAMED_GUID) {
914 UI STRING="$(MODULE_NAME)" Optional
915 RAW BIN |.com
916 }
917
918 [Rule.Common.DXE_CORE]
919 FILE DXE_CORE = $(NAMED_GUID) {
920 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
921 UI STRING="$(MODULE_NAME)" Optional
922 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
923 }
924
925 [Rule.Common.UEFI_DRIVER]
926 FILE DRIVER = $(NAMED_GUID) {
927 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
928 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
929 UI STRING="$(MODULE_NAME)" Optional
930 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
931 }
932
933 [Rule.Common.UEFI_DRIVER.BINARY]
934 FILE DRIVER = $(NAMED_GUID) {
935 DXE_DEPEX DXE_DEPEX Optional |.depex
936 PE32 PE32 |.efi
937 UI STRING="$(MODULE_NAME)" Optional
938 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
939 }
940
941 [Rule.Common.UEFI_DRIVER.NATIVE_BINARY]
942 FILE DRIVER = $(NAMED_GUID) {
943 DXE_DEPEX DXE_DEPEX Optional $(WORKSPACE)/$(PLATFORM_PACKAGE)/IntelGopDepex/IntelGopDriver.depex
944 PE32 PE32 |.efi
945 UI STRING="$(MODULE_NAME)" Optional
946 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
947 }
948
949 [Rule.Common.DXE_DRIVER]
950 FILE DRIVER = $(NAMED_GUID) {
951 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
952 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
953 UI STRING="$(MODULE_NAME)" Optional
954 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
955 }
956
957 [Rule.Common.DXE_DRIVER.BINARY]
958 FILE DRIVER = $(NAMED_GUID) {
959 DXE_DEPEX DXE_DEPEX Optional |.depex
960 PE32 PE32 |.efi
961 UI STRING="$(MODULE_NAME)" Optional
962 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
963 }
964
965 [Rule.Common.DXE_DRIVER.DRIVER_ACPITABLE]
966 FILE DRIVER = $(NAMED_GUID) {
967 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
968 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
969 UI STRING="$(MODULE_NAME)" Optional
970 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
971 RAW ACPI Optional |.acpi
972 RAW ASL Optional |.aml
973 }
974
975 [Rule.Common.DXE_RUNTIME_DRIVER]
976 FILE DRIVER = $(NAMED_GUID) {
977 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
978 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
979 UI STRING="$(MODULE_NAME)" Optional
980 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
981 }
982
983 [Rule.Common.DXE_RUNTIME_DRIVER.BINARY]
984 FILE DRIVER = $(NAMED_GUID) {
985 DXE_DEPEX DXE_DEPEX Optional |.depex
986 PE32 PE32 |.efi
987 UI STRING="$(MODULE_NAME)" Optional
988 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
989 }
990
991 [Rule.Common.DXE_SMM_DRIVER]
992 FILE SMM = $(NAMED_GUID) {
993 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
994 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
995 UI STRING="$(MODULE_NAME)" Optional
996 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
997 }
998
999 [Rule.Common.DXE_SMM_DRIVER.BINARY]
1000 FILE SMM = $(NAMED_GUID) {
1001 SMM_DEPEX SMM_DEPEX |.depex
1002 PE32 PE32 |.efi
1003 RAW BIN Optional |.aml
1004 UI STRING="$(MODULE_NAME)" Optional
1005 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
1006 }
1007
1008 [Rule.Common.DXE_SMM_DRIVER.DRIVER_ACPITABLE]
1009 FILE SMM = $(NAMED_GUID) {
1010 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
1011 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
1012 UI STRING="$(MODULE_NAME)" Optional
1013 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
1014 RAW ACPI Optional |.acpi
1015 RAW ASL Optional |.aml
1016 }
1017
1018 [Rule.Common.SMM_CORE]
1019 FILE SMM_CORE = $(NAMED_GUID) {
1020 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
1021 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
1022 UI STRING="$(MODULE_NAME)" Optional
1023 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
1024 }
1025
1026 [Rule.Common.SMM_CORE.BINARY]
1027 FILE SMM_CORE = $(NAMED_GUID) {
1028 DXE_DEPEX DXE_DEPEX Optional |.depex
1029 PE32 PE32 |.efi
1030 UI STRING="$(MODULE_NAME)" Optional
1031 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
1032 }
1033
1034 [Rule.Common.UEFI_APPLICATION]
1035 FILE APPLICATION = $(NAMED_GUID) {
1036 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
1037 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
1038 UI STRING="$(MODULE_NAME)" Optional
1039 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
1040 }
1041
1042 [Rule.Common.UEFI_APPLICATION.UI]
1043 FILE APPLICATION = $(NAMED_GUID) {
1044 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
1045 UI STRING="Enter Setup"
1046 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
1047 }
1048
1049 [Rule.Common.USER_DEFINED]
1050 FILE FREEFORM = $(NAMED_GUID) {
1051 UI STRING="$(MODULE_NAME)" Optional
1052 RAW BIN |.bin
1053 }
1054
1055 [Rule.Common.USER_DEFINED.ACPITABLE]
1056 FILE FREEFORM = $(NAMED_GUID) {
1057 RAW ACPI Optional |.acpi
1058 RAW ASL Optional |.aml
1059 }
1060
1061 [Rule.Common.USER_DEFINED.ACPITABLE2]
1062 FILE FREEFORM = $(NAMED_GUID) {
1063 RAW ASL Optional |.aml
1064 }
1065
1066 [Rule.Common.ACPITABLE]
1067 FILE FREEFORM = $(NAMED_GUID) {
1068 RAW ACPI Optional |.acpi
1069 RAW ASL Optional |.aml
1070 }
1071
1072 [Rule.Common.PEIM.FMP_IMAGE_DESC]
1073 FILE PEIM = $(NAMED_GUID) {
1074 RAW BIN |.acpi
1075 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
1076 PE32 PE32 Align=4K $(INF_OUTPUT)/$(MODULE_NAME).efi
1077 UI STRING="$(MODULE_NAME)" Optional
1078 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
1079 }
1080