OpenBoardPkg.dsc 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. ## @file
  2. # The main build description file for the KabylakeRvp3 board.
  3. #
  4. # Copyright (c) 2017 - 2022, Intel Corporation. All rights reserved.<BR>
  5. #
  6. # SPDX-License-Identifier: BSD-2-Clause-Patent
  7. #
  8. ##
  9. [Defines]
  10. DEFINE PLATFORM_PACKAGE = MinPlatformPkg
  11. DEFINE PLATFORM_SI_PACKAGE = KabylakeSiliconPkg
  12. DEFINE PLATFORM_SI_BIN_PACKAGE = KabylakeSiliconBinPkg
  13. DEFINE PLATFORM_BOARD_PACKAGE = KabylakeOpenBoardPkg
  14. DEFINE BOARD = KabylakeRvp3
  15. DEFINE PROJECT = $(PLATFORM_BOARD_PACKAGE)/$(BOARD)
  16. DEFINE PEI_ARCH = IA32
  17. DEFINE DXE_ARCH = X64
  18. DEFINE TOP_MEMORY_ADDRESS = 0x0
  19. #
  20. # Default value for OpenBoardPkg.fdf use
  21. #
  22. DEFINE BIOS_SIZE_OPTION = SIZE_70
  23. PLATFORM_NAME = $(PLATFORM_PACKAGE)
  24. PLATFORM_GUID = 8470676C-18E8-467F-B126-28DB1941AA5A
  25. PLATFORM_VERSION = 0.1
  26. DSC_SPECIFICATION = 0x00010005
  27. OUTPUT_DIRECTORY = Build/$(PROJECT)
  28. SUPPORTED_ARCHITECTURES = IA32|X64
  29. BUILD_TARGETS = DEBUG|RELEASE
  30. SKUID_IDENTIFIER = ALL
  31. FLASH_DEFINITION = $(PROJECT)/OpenBoardPkg.fdf
  32. FIX_LOAD_TOP_MEMORY_ADDRESS = 0x0
  33. #
  34. # Include PCD configuration for this board.
  35. #
  36. !include AdvancedFeaturePkg/Include/AdvancedFeaturesPcd.dsc
  37. !include OpenBoardPkgPcd.dsc
  38. !include AdvancedFeaturePkg/Include/AdvancedFeatures.dsc
  39. [Defines]
  40. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  41. #
  42. # For backward compatibility API mode will use KabylakeFspBinPkg.
  43. # KabylakeFspBinPkg only supports API mode.
  44. #
  45. DEFINE PLATFORM_FSP_BIN_PACKAGE = KabylakeFspBinPkg
  46. !else
  47. #
  48. # AmberLakeFspBinPkg supports both API and Dispatch modes
  49. #
  50. DEFINE PLATFORM_FSP_BIN_PACKAGE = AmberLakeFspBinPkg
  51. !endif
  52. [PcdsDynamicExDefault.common.DEFAULT]
  53. !if gMinPlatformPkgTokenSpaceGuid.PcdFspWrapperBootMode == TRUE
  54. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 0
  55. #
  56. # Include FSP DynamicEx PCD settings in Dispatch mode
  57. #
  58. !include $(PLATFORM_FSP_BIN_PACKAGE)/FspPcds.dsc
  59. #
  60. # Override some FSP consumed PCD default value to match platform requirement.
  61. #
  62. gSiPkgTokenSpaceGuid.PcdSiPciExpressBaseAddress |gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress
  63. gSiPkgTokenSpaceGuid.PcdSiPciExpressRegionLength|gMinPlatformPkgTokenSpaceGuid.PcdPciExpressRegionLength
  64. !endif
  65. !endif
  66. ################################################################################
  67. #
  68. # SKU Identification section - list of all SKU IDs supported by this board.
  69. #
  70. ################################################################################
  71. [SkuIds]
  72. 0x00|DEFAULT # 0|DEFAULT is reserved and always required.
  73. 0x04|KabylakeRvp3
  74. 0x60|KabyLakeYLpddr3Rvp3
  75. ################################################################################
  76. #
  77. # Includes section - other DSC file contents included for this board build.
  78. #
  79. ################################################################################
  80. #######################################
  81. # Library Includes
  82. #######################################
  83. !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreCommonLib.dsc
  84. !include $(PLATFORM_PACKAGE)/Include/Dsc/CorePeiLib.dsc
  85. !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreDxeLib.dsc
  86. !include $(PLATFORM_SI_PACKAGE)/SiPkgCommonLib.dsc
  87. !include $(PLATFORM_SI_PACKAGE)/SiPkgPeiLib.dsc
  88. !include $(PLATFORM_SI_PACKAGE)/SiPkgDxeLib.dsc
  89. #######################################
  90. # Component Includes
  91. #######################################
  92. # @todo: Change below line to [Components.$(PEI_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  93. # is completed
  94. [Components.IA32]
  95. !include $(PLATFORM_PACKAGE)/Include/Dsc/CorePeiInclude.dsc
  96. !include $(PLATFORM_SI_PACKAGE)/SiPkgPei.dsc
  97. # @todo: Change below line to [Components.$(DXE_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  98. # is completed
  99. [Components.X64]
  100. !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreDxeInclude.dsc
  101. !include $(PLATFORM_SI_PACKAGE)/SiPkgDxe.dsc
  102. #######################################
  103. # Build Option Includes
  104. #######################################
  105. !include $(PLATFORM_SI_PACKAGE)/SiPkgBuildOption.dsc
  106. !include OpenBoardPkgBuildOption.dsc
  107. ################################################################################
  108. #
  109. # Library Class section - list of all Library Classes needed by this board.
  110. #
  111. ################################################################################
  112. [LibraryClasses.common]
  113. #######################################
  114. # Edk2 Packages
  115. #######################################
  116. FspWrapperApiLib|IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/BaseFspWrapperApiLib.inf
  117. FspWrapperApiTestLib|IntelFsp2WrapperPkg/Library/PeiFspWrapperApiTestLib/PeiFspWrapperApiTestLib.inf
  118. #######################################
  119. # Silicon Initialization Package
  120. #######################################
  121. ConfigBlockLib|IntelSiliconPkg/Library/BaseConfigBlockLib/BaseConfigBlockLib.inf
  122. SiliconInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconInitLib/PeiSiliconInitLib.inf
  123. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  124. #
  125. # FSP API mode
  126. #
  127. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibFsp/PeiSiliconPolicyInitLibFsp.inf
  128. !else
  129. #
  130. # FSP Dispatch mode and non-FSP build (EDK2 build)
  131. #
  132. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibFsp/PeiSiliconPolicyInitLibFspAml.inf
  133. !endif
  134. #####################################
  135. # Platform Package
  136. #####################################
  137. BoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/BoardInitLibNull/BoardInitLibNull.inf
  138. FspWrapperHobProcessLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/PeiFspWrapperHobProcessLib/PeiFspWrapperHobProcessLib.inf
  139. FspWrapperPlatformLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/PeiFspWrapperPlatformLib/PeiFspWrapperPlatformLib.inf
  140. PciHostBridgeLib|$(PLATFORM_PACKAGE)/Pci/Library/PciHostBridgeLibSimple/PciHostBridgeLibSimple.inf
  141. PciSegmentInfoLib|$(PLATFORM_PACKAGE)/Pci/Library/PciSegmentInfoLibSimple/PciSegmentInfoLibSimple.inf
  142. PeiLib|$(PLATFORM_PACKAGE)/Library/PeiLib/PeiLib.inf
  143. PlatformBootManagerLib|$(PLATFORM_PACKAGE)/Bds/Library/DxePlatformBootManagerLib/DxePlatformBootManagerLib.inf
  144. ReportFvLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/PeiReportFvLib/PeiReportFvLib.inf
  145. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLibNull/TestPointCheckLibNull.inf
  146. #######################################
  147. # Board Package
  148. #######################################
  149. EcLib|$(PLATFORM_BOARD_PACKAGE)/Library/BaseEcLib/BaseEcLib.inf
  150. GpioExpanderLib|$(PLATFORM_BOARD_PACKAGE)/Library/BaseGpioExpanderLib/BaseGpioExpanderLib.inf
  151. I2cAccessLib|$(PLATFORM_BOARD_PACKAGE)/Library/PeiI2cAccessLib/PeiI2cAccessLib.inf
  152. PlatformSecLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/SecFspWrapperPlatformSecLib/SecFspWrapperPlatformSecLib.inf
  153. HdmiDebugGpioInitLib|$(PLATFORM_BOARD_PACKAGE)/Library/HdmiDebugGpioInitLib/HdmiDebugGpioInitLib.inf
  154. HdmiDebugPchDetectionLib|$(PLATFORM_BOARD_PACKAGE)/Library/HdmiDebugPchDetectionLib/HdmiDebugPchDetectionLib.inf
  155. # Thunderbolt
  156. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  157. DxeTbtPolicyLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/DxeTbtPolicyLib/DxeTbtPolicyLib.inf
  158. TbtCommonLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/PeiDxeSmmTbtCommonLib/TbtCommonLib.inf
  159. !endif
  160. #######################################
  161. # Board-specific
  162. #######################################
  163. PlatformHookLib|$(PROJECT)/Library/BasePlatformHookLib/BasePlatformHookLib.inf
  164. [LibraryClasses.IA32.SEC]
  165. #######################################
  166. # Platform Package
  167. #######################################
  168. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/SecTestPointCheckLib.inf
  169. SiliconPolicyUpdateLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/SiliconPolicyUpdateLibNull/SiliconPolicyUpdateLibNull.inf
  170. #######################################
  171. # Board-specific
  172. #######################################
  173. SecBoardInitLib|$(PLATFORM_BOARD_PACKAGE)/Library/SecBoardInitLib/SecBoardInitLib.inf
  174. [LibraryClasses.common.PEIM]
  175. #######################################
  176. # Silicon Package
  177. #######################################
  178. ReportCpuHobLib|IntelSiliconPkg/Library/ReportCpuHobLib/ReportCpuHobLib.inf
  179. SmmAccessLib|IntelSiliconPkg/Feature/SmmAccess/Library/PeiSmmAccessLibSmramc/PeiSmmAccessLib.inf
  180. #######################################
  181. # Platform Package
  182. #######################################
  183. BoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/PeiMultiBoardInitSupportLib.inf
  184. FspWrapperPlatformLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/PeiFspWrapperPlatformLib/PeiFspWrapperPlatformLib.inf
  185. MultiBoardInitSupportLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/PeiMultiBoardInitSupportLib.inf
  186. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/PeiTestPointLib.inf
  187. !if $(TARGET) == DEBUG
  188. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/PeiTestPointCheckLib.inf
  189. !endif
  190. SetCacheMtrrLib|$(PLATFORM_PACKAGE)/Library/SetCacheMtrrLib/SetCacheMtrrLibNull.inf
  191. #######################################
  192. # Board Package
  193. #######################################
  194. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  195. #
  196. # FSP API mode
  197. #
  198. SiliconPolicyUpdateLib|$(PROJECT)/FspWrapper/Library/PeiSiliconPolicyUpdateLibFsp/PeiSiliconPolicyUpdateLibFsp.inf
  199. !else
  200. #
  201. # FSP Dispatch mode and non-FSP build (EDK2 build)
  202. #
  203. SiliconPolicyUpdateLib|$(PROJECT)/Policy/Library/PeiSiliconPolicyUpdateLib/PeiSiliconPolicyUpdateLib.inf
  204. !endif
  205. # Thunderbolt
  206. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  207. PeiDTbtInitLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/Private/PeiDTbtInitLib/PeiDTbtInitLib.inf
  208. PeiTbtPolicyLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/PeiTbtPolicyLib/PeiTbtPolicyLib.inf
  209. !endif
  210. [LibraryClasses.common.DXE_DRIVER]
  211. #######################################
  212. # Silicon Initialization Package
  213. #######################################
  214. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/DxeSiliconPolicyInitLib/DxeSiliconPolicyInitLib.inf
  215. #######################################
  216. # Platform Package
  217. #######################################
  218. BoardAcpiTableLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/DxeMultiBoardAcpiSupportLib.inf
  219. BoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/DxeMultiBoardInitSupportLib.inf
  220. FspWrapperPlatformLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/DxeFspWrapperPlatformLib/DxeFspWrapperPlatformLib.inf
  221. MultiBoardAcpiSupportLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/DxeMultiBoardAcpiSupportLib.inf
  222. MultiBoardInitSupportLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/DxeMultiBoardInitSupportLib.inf
  223. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/DxeTestPointLib.inf
  224. !if $(TARGET) == DEBUG
  225. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.inf
  226. !endif
  227. #######################################
  228. # Board Package
  229. #######################################
  230. BoardBdsHookLib|BoardModulePkg/Library/BoardBdsHookLib/BoardBdsHookLib.inf
  231. BoardBootManagerLib|BoardModulePkg/Library/BoardBootManagerLib/BoardBootManagerLib.inf
  232. #######################################
  233. # Board-specific
  234. #######################################
  235. SiliconPolicyUpdateLib|$(PROJECT)/Policy/Library/DxeSiliconPolicyUpdateLib/DxeSiliconPolicyUpdateLib.inf
  236. [LibraryClasses.X64.DXE_RUNTIME_DRIVER]
  237. #######################################
  238. # Silicon Initialization Package
  239. #######################################
  240. ResetSystemLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/DxeRuntimeResetSystemLib/DxeRuntimeResetSystemLib.inf
  241. [LibraryClasses.X64.DXE_SMM_DRIVER]
  242. #######################################
  243. # Silicon Initialization Package
  244. #######################################
  245. SpiFlashCommonLib|IntelSiliconPkg/Library/SmmSpiFlashCommonLib/SmmSpiFlashCommonLib.inf
  246. #######################################
  247. # Platform Package
  248. #######################################
  249. BoardAcpiEnableLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/SmmMultiBoardAcpiSupportLib.inf
  250. MultiBoardAcpiSupportLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/SmmMultiBoardAcpiSupportLib.inf
  251. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/SmmTestPointLib.inf
  252. !if $(TARGET) == DEBUG
  253. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.inf
  254. !endif
  255. #######################################
  256. # PEI Components
  257. #######################################
  258. # @todo: Change below line to [Components.$(PEI_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  259. # is completed
  260. [Components.IA32]
  261. #######################################
  262. # Edk2 Packages
  263. #######################################
  264. UefiCpuPkg/SecCore/SecCore.inf {
  265. <LibraryClasses>
  266. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  267. }
  268. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  269. #
  270. # In FSP API mode the policy has to be installed before FSP Wrapper updating UPD.
  271. # Add policy as dependency for FSP Wrapper
  272. #
  273. IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf {
  274. <LibraryClasses>
  275. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibDependency/PeiPreMemSiliconPolicyInitLibDependency.inf
  276. }
  277. IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf {
  278. <LibraryClasses>
  279. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibDependency/PeiPostMemSiliconPolicyInitLibDependency.inf
  280. }
  281. !else
  282. #
  283. # In FSP Dispatch mode the policy will be installed after FSP-M dispatched (only PrePolicy silicon-init executed).
  284. # Do not add policy dependency and let FspmWrapper report FSP-M FV to dispatcher.
  285. #
  286. IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf {
  287. <LibraryClasses>
  288. SiliconPolicyInitLib|MinPlatformPkg/PlatformInit/Library/SiliconPolicyInitLibNull/SiliconPolicyInitLibNull.inf
  289. }
  290. #
  291. # In FSP Dispatch mode the policy will be installed after FSP-S dispatched (only PrePolicy silicon-init executed).
  292. # Do not add policy dependency and let FspsWrapper report FSP-S FV to dispatcher.
  293. #
  294. IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf {
  295. <LibraryClasses>
  296. SiliconPolicyInitLib|MinPlatformPkg/PlatformInit/Library/SiliconPolicyInitLibNull/SiliconPolicyInitLibNull.inf
  297. }
  298. !endif
  299. #######################################
  300. # Silicon Initialization Package
  301. #######################################
  302. IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/IntelVTdPmrPei.inf
  303. IntelSiliconPkg/Feature/VTd/PlatformVTdInfoSamplePei/PlatformVTdInfoSamplePei.inf
  304. #######################################
  305. # Platform Package
  306. #######################################
  307. $(PLATFORM_PACKAGE)/PlatformInit/ReportFv/ReportFvPei.inf
  308. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf {
  309. <LibraryClasses>
  310. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  311. BoardInitLib|$(PROJECT)/Library/BoardInitLib/PeiBoardInitPreMemLib.inf
  312. !else
  313. NULL|$(PROJECT)/Library/BoardInitLib/PeiMultiBoardInitPreMemLib.inf
  314. !endif
  315. }
  316. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitPei/PlatformInitPostMem.inf {
  317. <LibraryClasses>
  318. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  319. BoardInitLib|$(PROJECT)/Library/BoardInitLib/PeiBoardInitPostMemLib.inf
  320. !else
  321. NULL|$(PROJECT)/Library/BoardInitLib/PeiMultiBoardInitPostMemLib.inf
  322. !endif
  323. }
  324. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  325. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPreMem.inf {
  326. <LibraryClasses>
  327. #
  328. # Hook a library constructor to update some policy fields when policy is installed.
  329. #
  330. NULL|$(PLATFORM_BOARD_PACKAGE)/FspWrapper/Library/PeiSiliconPolicyNotifyLib/PeiPreMemSiliconPolicyNotifyLib.inf
  331. }
  332. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPostMem.inf
  333. !else
  334. #
  335. # FSP Dispatch mode will consume DefaultPolicyInit PPI produced by FSP to install a default policy PPI.
  336. # Similar as UPD in FSP API mode, DefaultPolicyInit PPI in Dispatch mode can generate different policy structure
  337. # for different FSP revisions, but they must maintain backward compatibility.
  338. #
  339. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPreMem.inf {
  340. <LibraryClasses>
  341. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLib/PeiPreMemSiliconPolicyInitLib.inf
  342. }
  343. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPostMem.inf {
  344. <LibraryClasses>
  345. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLib/PeiPostMemSiliconPolicyInitLib.inf
  346. }
  347. !endif
  348. !if gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable == TRUE
  349. $(PLATFORM_PACKAGE)/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf
  350. !endif
  351. #######################################
  352. # Board Package
  353. #######################################
  354. # Thunderbolt
  355. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  356. $(PLATFORM_BOARD_PACKAGE)/Features/Tbt/TbtInit/Pei/PeiTbtInit.inf
  357. !endif
  358. $(PLATFORM_BOARD_PACKAGE)/BiosInfo/BiosInfo.inf
  359. $(PLATFORM_BOARD_PACKAGE)/Library/PeiSerialPortLibSpiFlash/PeiSerialPortLibSpiFlash.inf
  360. #######################################
  361. # DXE Components
  362. #######################################
  363. # @todo: Change below line to [Components.$(DXE_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  364. # is completed
  365. [Components.X64]
  366. #######################################
  367. # Edk2 Packages
  368. #######################################
  369. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  370. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  371. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  372. MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
  373. MdeModulePkg/Universal/Console/GraphicsOutputDxe/GraphicsOutputDxe.inf
  374. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  375. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf{
  376. <LibraryClasses>
  377. NULL|BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.inf
  378. }
  379. UefiCpuPkg/CpuDxe/CpuDxe.inf
  380. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  381. #
  382. # FSP API mode
  383. #
  384. IntelFsp2WrapperPkg/FspWrapperNotifyDxe/FspWrapperNotifyDxe.inf
  385. !endif
  386. ShellPkg/Application/Shell/Shell.inf {
  387. <PcdsFixedAtBuild>
  388. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  389. <LibraryClasses>
  390. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  391. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  392. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  393. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  394. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  395. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  396. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  397. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  398. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  399. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  400. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  401. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  402. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  403. }
  404. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  405. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
  406. <PcdsPatchableInModule>
  407. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80080046
  408. <LibraryClasses>
  409. !if $(TARGET) == DEBUG
  410. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  411. !endif
  412. }
  413. !endif
  414. #######################################
  415. # Silicon Initialization Package
  416. #######################################
  417. IntelSiliconPkg/Feature/VTd/IntelVTdDxe/IntelVTdDxe.inf
  418. $(PLATFORM_SI_BIN_PACKAGE)/Microcode/MicrocodeUpdates.inf
  419. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  420. IntelSiliconPkg/Feature/Flash/SpiFvbService/SpiFvbServiceSmm.inf
  421. !endif
  422. #######################################
  423. # Platform Package
  424. #######################################
  425. $(PLATFORM_PACKAGE)/FspWrapper/SaveMemoryConfig/SaveMemoryConfig.inf
  426. $(PLATFORM_PACKAGE)/Hsti/HstiIbvPlatformDxe/HstiIbvPlatformDxe.inf
  427. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitDxe/PlatformInitDxe.inf
  428. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyDxe/SiliconPolicyDxe.inf
  429. $(PLATFORM_PACKAGE)/Test/TestPointDumpApp/TestPointDumpApp.inf
  430. $(PLATFORM_PACKAGE)/Test/TestPointStubDxe/TestPointStubDxe.inf
  431. !if gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable == TRUE
  432. $(PLATFORM_PACKAGE)/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf
  433. !endif
  434. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  435. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitSmm/PlatformInitSmm.inf
  436. $(PLATFORM_PACKAGE)/Acpi/AcpiSmm/AcpiSmm.inf {
  437. <LibraryClasses>
  438. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  439. BoardAcpiEnableLib|$(PROJECT)/Library/BoardAcpiLib/SmmBoardAcpiEnableLib.inf
  440. !else
  441. NULL|$(PROJECT)/Library/BoardAcpiLib/SmmMultiBoardAcpiSupportLib.inf
  442. !endif
  443. }
  444. $(PLATFORM_PACKAGE)/Acpi/AcpiTables/AcpiPlatform.inf {
  445. <LibraryClasses>
  446. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  447. BoardAcpiTableLib|$(PROJECT)/Library/BoardAcpiLib/DxeBoardAcpiTableLib.inf
  448. !else
  449. NULL|$(PROJECT)/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
  450. !endif
  451. }
  452. !if gS3FeaturePkgTokenSpaceGuid.PcdS3FeatureEnable == TRUE
  453. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf {
  454. <LibraryClasses>
  455. # On S3 resume, RSC is in end-of-BS state
  456. # - Moreover: Libraries cannot effectively use some end-of-BS events
  457. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  458. SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
  459. # TODO: Insert a reverse-ranked priority list of compatible libraries here
  460. }
  461. !endif
  462. !endif
  463. #######################################
  464. # Board Package
  465. #######################################
  466. # Thunderbolt
  467. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  468. $(PLATFORM_BOARD_PACKAGE)/Features/Tbt/TbtInit/Smm/TbtSmm.inf
  469. $(PLATFORM_BOARD_PACKAGE)/Features/Tbt/TbtInit/Dxe/TbtDxe.inf
  470. $(PLATFORM_BOARD_PACKAGE)/Features/PciHotPlug/PciHotPlug.inf
  471. !endif
  472. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  473. $(PLATFORM_BOARD_PACKAGE)/Acpi/BoardAcpiDxe/BoardAcpiDxe.inf {
  474. <LibraryClasses>
  475. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  476. BoardAcpiTableLib|$(PROJECT)/Library/BoardAcpiLib/DxeBoardAcpiTableLib.inf
  477. !else
  478. NULL|$(PROJECT)/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
  479. !endif
  480. }
  481. !endif
  482. BoardModulePkg/LegacySioDxe/LegacySioDxe.inf
  483. BoardModulePkg/BoardBdsHookDxe/BoardBdsHookDxe.inf