OpenBoardPkg.dsc 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. ## @file
  2. # The main build description file for the Aspire VN7-572G board.
  3. #
  4. # Copyright (c) 2017 - 2021, 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 = AspireVn7Dash572G
  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_60
  23. #
  24. # Debug logging
  25. #
  26. DEFINE USE_PEI_SPI_LOGGING = FALSE
  27. DEFINE USE_MEMORY_LOGGING = FALSE
  28. DEFINE RELEASE_LOGGING = ($(USE_PEI_SPI_LOGGING) || $(USE_MEMORY_LOGGING))
  29. DEFINE TESTING = TRUE
  30. PLATFORM_NAME = $(PLATFORM_PACKAGE)
  31. PLATFORM_GUID = AEEEF17C-36B6-4B68-949A-1E54CB33492F
  32. PLATFORM_VERSION = 0.1
  33. DSC_SPECIFICATION = 0x00010005
  34. OUTPUT_DIRECTORY = Build/$(PROJECT)
  35. SUPPORTED_ARCHITECTURES = IA32|X64
  36. BUILD_TARGETS = DEBUG|RELEASE
  37. SKUID_IDENTIFIER = ALL
  38. FLASH_DEFINITION = $(PROJECT)/OpenBoardPkg.fdf
  39. FIX_LOAD_TOP_MEMORY_ADDRESS = 0x0
  40. #
  41. # Include PCD configuration for this board.
  42. #
  43. !include AdvancedFeaturePkg/Include/AdvancedFeaturesPcd.dsc
  44. !include OpenBoardPkgPcd.dsc
  45. !include AdvancedFeaturePkg/Include/AdvancedFeatures.dsc
  46. [Defines]
  47. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  48. #
  49. # For backward compatibility API mode will use KabylakeFspBinPkg.
  50. # KabylakeFspBinPkg only supports API mode.
  51. #
  52. DEFINE PLATFORM_FSP_BIN_PACKAGE = KabylakeFspBinPkg
  53. !else
  54. #
  55. # AmberLakeFspBinPkg supports both API and Dispatch modes
  56. #
  57. DEFINE PLATFORM_FSP_BIN_PACKAGE = AmberLakeFspBinPkg
  58. !endif
  59. [PcdsDynamicExDefault.common.DEFAULT]
  60. !if gMinPlatformPkgTokenSpaceGuid.PcdFspWrapperBootMode == TRUE
  61. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 0
  62. #
  63. # Include FSP DynamicEx PCD settings in Dispatch mode
  64. #
  65. !include $(PLATFORM_FSP_BIN_PACKAGE)/FspPcds.dsc
  66. #
  67. # Override some FSP consumed PCD default value to match platform requirement.
  68. #
  69. gSiPkgTokenSpaceGuid.PcdSiPciExpressBaseAddress |gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress
  70. gSiPkgTokenSpaceGuid.PcdSiPciExpressRegionLength|gMinPlatformPkgTokenSpaceGuid.PcdPciExpressRegionLength
  71. !endif
  72. !endif
  73. ################################################################################
  74. #
  75. # SKU Identification section - list of all SKU IDs supported by this board.
  76. #
  77. ################################################################################
  78. [SkuIds]
  79. 0x00|DEFAULT # 0|DEFAULT is reserved and always required.
  80. # For further details on specific SKUs (which dGPU installed), see EC page of schematics
  81. 0x41|RayleighSLx_dGPU # Detect the UMA board by GPIO
  82. 0x42|NewgateSLx_dGPU
  83. ################################################################################
  84. #
  85. # Includes section - other DSC file contents included for this board build.
  86. #
  87. ################################################################################
  88. #######################################
  89. # Library Includes
  90. #######################################
  91. !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreCommonLib.dsc
  92. !include $(PLATFORM_PACKAGE)/Include/Dsc/CorePeiLib.dsc
  93. !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreDxeLib.dsc
  94. !include $(PLATFORM_SI_PACKAGE)/SiPkgCommonLib.dsc
  95. !include $(PLATFORM_SI_PACKAGE)/SiPkgPeiLib.dsc
  96. !include $(PLATFORM_SI_PACKAGE)/SiPkgDxeLib.dsc
  97. #######################################
  98. # Component Includes
  99. #######################################
  100. # @todo: Change below line to [Components.$(PEI_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  101. # is completed
  102. [Components.IA32]
  103. !include $(PLATFORM_PACKAGE)/Include/Dsc/CorePeiInclude.dsc
  104. !include $(PLATFORM_SI_PACKAGE)/SiPkgPei.dsc
  105. # @todo: Change below line to [Components.$(DXE_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  106. # is completed
  107. [Components.X64]
  108. !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreDxeInclude.dsc
  109. !include $(PLATFORM_SI_PACKAGE)/SiPkgDxe.dsc
  110. #######################################
  111. # Build Option Includes
  112. #######################################
  113. !include $(PLATFORM_SI_PACKAGE)/SiPkgBuildOption.dsc
  114. !include OpenBoardPkgBuildOption.dsc
  115. ################################################################################
  116. #
  117. # Library Class section - list of all Library Classes needed by this board.
  118. #
  119. ################################################################################
  120. # TODO: Harden and tune platform by libraries
  121. [LibraryClasses.common]
  122. #######################################
  123. # Edk2 Packages
  124. #######################################
  125. FspWrapperApiLib|IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/BaseFspWrapperApiLib.inf
  126. FspWrapperApiTestLib|IntelFsp2WrapperPkg/Library/PeiFspWrapperApiTestLib/PeiFspWrapperApiTestLib.inf
  127. # This board will set debugging library instances; FIXME: UART2 not used
  128. SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
  129. #######################################
  130. # Silicon Initialization Package
  131. #######################################
  132. ConfigBlockLib|IntelSiliconPkg/Library/BaseConfigBlockLib/BaseConfigBlockLib.inf
  133. SiliconInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconInitLib/PeiSiliconInitLib.inf
  134. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  135. #
  136. # FSP API mode
  137. #
  138. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibFsp/PeiSiliconPolicyInitLibFsp.inf
  139. !else
  140. #
  141. # FSP Dispatch mode and non-FSP build (EDK2 build)
  142. #
  143. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibFsp/PeiSiliconPolicyInitLibFspAml.inf
  144. !endif
  145. #####################################
  146. # Platform Package
  147. #####################################
  148. BoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/BoardInitLibNull/BoardInitLibNull.inf
  149. FspWrapperHobProcessLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/PeiFspWrapperHobProcessLib/PeiFspWrapperHobProcessLib.inf
  150. FspWrapperPlatformLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/PeiFspWrapperPlatformLib/PeiFspWrapperPlatformLib.inf
  151. PciHostBridgeLib|$(PLATFORM_PACKAGE)/Pci/Library/PciHostBridgeLibSimple/PciHostBridgeLibSimple.inf
  152. PciSegmentInfoLib|$(PLATFORM_PACKAGE)/Pci/Library/PciSegmentInfoLibSimple/PciSegmentInfoLibSimple.inf
  153. PeiLib|$(PLATFORM_PACKAGE)/Library/PeiLib/PeiLib.inf
  154. PlatformBootManagerLib|$(PLATFORM_PACKAGE)/Bds/Library/DxePlatformBootManagerLib/DxePlatformBootManagerLib.inf
  155. ReportFvLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/PeiReportFvLib/PeiReportFvLib.inf
  156. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLibNull/TestPointCheckLibNull.inf
  157. #######################################
  158. # Board Package
  159. #######################################
  160. EcLib|$(PLATFORM_BOARD_PACKAGE)/Library/BaseEcLib/BaseEcLib.inf
  161. BoardEcLib|$(PROJECT)/Library/BoardEcLib/BoardEcLib.inf
  162. GpioExpanderLib|$(PLATFORM_BOARD_PACKAGE)/Library/BaseGpioExpanderLib/BaseGpioExpanderLib.inf
  163. I2cAccessLib|$(PLATFORM_BOARD_PACKAGE)/Library/PeiI2cAccessLib/PeiI2cAccessLib.inf
  164. PlatformSecLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/SecFspWrapperPlatformSecLib/SecFspWrapperPlatformSecLib.inf
  165. # Thunderbolt
  166. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  167. DxeTbtPolicyLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/DxeTbtPolicyLib/DxeTbtPolicyLib.inf
  168. TbtCommonLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/PeiDxeSmmTbtCommonLib/TbtCommonLib.inf
  169. !endif
  170. #######################################
  171. # Board-specific
  172. #######################################
  173. PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
  174. # NB: MinPlatform sets a NULL DebugLib and only overrides it for DEBUG builds
  175. # TODO: Now that all debug logging is routed through RSC, correct the defines
  176. [LibraryClasses.IA32.SEC]
  177. #######################################
  178. # Edk2 Packages
  179. #######################################
  180. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  181. #######################################
  182. # Platform Package
  183. #######################################
  184. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/SecTestPointCheckLib.inf
  185. SecBoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/SecBoardInitLibNull/SecBoardInitLibNull.inf
  186. SiliconPolicyUpdateLib|MinPlatformPkg/PlatformInit/Library/SiliconPolicyUpdateLibNull/SiliconPolicyUpdateLibNull.inf
  187. [LibraryClasses.common.PEI_CORE]
  188. #######################################
  189. # Edk2 Packages
  190. #######################################
  191. # SPI logging requires local patch: InitializeMemoryServices() before ProcessLibraryConstructorList()
  192. # In-memory logging may require too many services for early core debug output
  193. !if $(RELEASE_LOGGING) == TRUE
  194. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  195. !endif
  196. [LibraryClasses.common.PEIM]
  197. #######################################
  198. # Edk2 Packages
  199. #######################################
  200. !if $(RELEASE_LOGGING) == TRUE
  201. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  202. !endif
  203. #######################################
  204. # Silicon Package
  205. #######################################
  206. ReportCpuHobLib|IntelSiliconPkg/Library/ReportCpuHobLib/ReportCpuHobLib.inf
  207. #######################################
  208. # Platform Package
  209. #######################################
  210. BoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/PeiMultiBoardInitSupportLib.inf
  211. FspWrapperPlatformLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/PeiFspWrapperPlatformLib/PeiFspWrapperPlatformLib.inf
  212. MultiBoardInitSupportLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/PeiMultiBoardInitSupportLib.inf
  213. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/PeiTestPointLib.inf
  214. !if ($(TARGET) == DEBUG || $(TESTING) == TRUE)
  215. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/PeiTestPointCheckLib.inf
  216. !endif
  217. SetCacheMtrrLib|$(PLATFORM_PACKAGE)/Library/SetCacheMtrrLib/SetCacheMtrrLibNull.inf
  218. #######################################
  219. # Board Package
  220. #######################################
  221. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  222. #
  223. # FSP API mode
  224. #
  225. SiliconPolicyUpdateLib|$(PROJECT)/FspWrapper/Library/PeiSiliconPolicyUpdateLibFsp/PeiSiliconPolicyUpdateLibFsp.inf
  226. !else
  227. #
  228. # FSP Dispatch mode and non-FSP build (EDK2 build)
  229. #
  230. SiliconPolicyUpdateLib|$(PROJECT)/Policy/Library/PeiSiliconPolicyUpdateLib/PeiSiliconPolicyUpdateLib.inf
  231. !endif
  232. # Thunderbolt
  233. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  234. PeiDTbtInitLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/Private/PeiDTbtInitLib/PeiDTbtInitLib.inf
  235. PeiTbtPolicyLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/PeiTbtPolicyLib/PeiTbtPolicyLib.inf
  236. !endif
  237. [LibraryClasses.common.DXE_CORE]
  238. #######################################
  239. # Edk2 Packages
  240. #######################################
  241. # In-memory logging may require too many services for early core debug output
  242. !if $(USE_MEMORY_LOGGING) == TRUE
  243. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  244. !endif
  245. [LibraryClasses.common.DXE_DRIVER]
  246. #######################################
  247. # Edk2 Packages
  248. #######################################
  249. !if $(USE_MEMORY_LOGGING) == TRUE
  250. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  251. !endif
  252. #######################################
  253. # Silicon Initialization Package
  254. #######################################
  255. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/DxeSiliconPolicyInitLib/DxeSiliconPolicyInitLib.inf
  256. #######################################
  257. # Platform Package
  258. #######################################
  259. BoardAcpiTableLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/DxeMultiBoardAcpiSupportLib.inf
  260. BoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/DxeMultiBoardInitSupportLib.inf
  261. FspWrapperPlatformLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/DxeFspWrapperPlatformLib/DxeFspWrapperPlatformLib.inf
  262. MultiBoardAcpiSupportLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/DxeMultiBoardAcpiSupportLib.inf
  263. MultiBoardInitSupportLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/DxeMultiBoardInitSupportLib.inf
  264. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/DxeTestPointLib.inf
  265. !if ($(TARGET) == DEBUG || $(TESTING) == TRUE)
  266. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.inf
  267. !endif
  268. #######################################
  269. # Board Package
  270. #######################################
  271. BoardBdsHookLib|BoardModulePkg/Library/BoardBdsHookLib/BoardBdsHookLib.inf
  272. BoardBootManagerLib|BoardModulePkg/Library/BoardBootManagerLib/BoardBootManagerLib.inf
  273. #######################################
  274. # Board-specific
  275. #######################################
  276. SiliconPolicyUpdateLib|$(PROJECT)/Policy/Library/DxeSiliconPolicyUpdateLib/DxeSiliconPolicyUpdateLib.inf
  277. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  278. #######################################
  279. # Edk2 Packages
  280. #######################################
  281. !if $(USE_MEMORY_LOGGING) == TRUE
  282. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  283. !endif
  284. #######################################
  285. # Silicon Initialization Package
  286. #######################################
  287. ResetSystemLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/DxeRuntimeResetSystemLib/DxeRuntimeResetSystemLib.inf
  288. [LibraryClasses.common.SMM_CORE]
  289. #######################################
  290. # Edk2 Packages
  291. #######################################
  292. # In-memory logging may require too many services for early core debug output
  293. !if $(USE_MEMORY_LOGGING) == TRUE
  294. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  295. !endif
  296. [LibraryClasses.common.DXE_SMM_DRIVER]
  297. #######################################
  298. # Edk2 Packages
  299. #######################################
  300. !if $(USE_MEMORY_LOGGING) == TRUE
  301. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  302. !endif
  303. #######################################
  304. # Silicon Initialization Package
  305. #######################################
  306. SpiFlashCommonLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/SmmSpiFlashCommonLib/SmmSpiFlashCommonLib.inf
  307. #######################################
  308. # Platform Package
  309. #######################################
  310. BoardAcpiEnableLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/SmmMultiBoardAcpiSupportLib.inf
  311. MultiBoardAcpiSupportLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/SmmMultiBoardAcpiSupportLib.inf
  312. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/SmmTestPointLib.inf
  313. !if ($(TARGET) == DEBUG || $(TESTING) == TRUE)
  314. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.inf
  315. !endif
  316. # TODO: DebugLib override for UEFI_DRIVER and UEFI_APPLICATION?
  317. # TODO: Add and improve feature support
  318. #######################################
  319. # PEI Components
  320. #######################################
  321. # @todo: Change below line to [Components.$(PEI_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  322. # is completed
  323. [Components.IA32]
  324. #######################################
  325. # Edk2 Packages
  326. #######################################
  327. UefiCpuPkg/SecCore/SecCore.inf {
  328. <LibraryClasses>
  329. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  330. }
  331. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
  332. <LibraryClasses>
  333. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  334. !if $(USE_PEI_SPI_LOGGING) == TRUE
  335. SerialPortLib|$(PLATFORM_BOARD_PACKAGE)/Library/PeiSerialPortLibSpiFlash/PeiSerialPortLibSpiFlash.inf
  336. !else
  337. !if $(USE_MEMORY_LOGGING) == TRUE
  338. SerialPortLib|MdeModulePkg/Library/PeiDxeSerialPortLibMem/PeiSerialPortLibMem.inf
  339. !endif
  340. !endif
  341. <PcdsFixedAtBuild>
  342. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|$(RELEASE_LOGGING)
  343. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|48
  344. }
  345. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  346. #
  347. # In FSP API mode the policy has to be installed before FSP Wrapper updating UPD.
  348. # Add policy as dependency for FSP Wrapper
  349. #
  350. IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf {
  351. <LibraryClasses>
  352. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibDependency/PeiPreMemSiliconPolicyInitLibDependency.inf
  353. }
  354. IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf {
  355. <LibraryClasses>
  356. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibDependency/PeiPostMemSiliconPolicyInitLibDependency.inf
  357. }
  358. !else
  359. #
  360. # In FSP Dispatch mode the policy will be installed after FSP-M dispatched (only PrePolicy silicon-init executed).
  361. # Do not add policy dependency and let FspmWrapper report FSP-M FV to dispatcher.
  362. #
  363. IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf {
  364. <LibraryClasses>
  365. SiliconPolicyInitLib|MinPlatformPkg/PlatformInit/Library/SiliconPolicyInitLibNull/SiliconPolicyInitLibNull.inf
  366. }
  367. #
  368. # In FSP Dispatch mode the policy will be installed after FSP-S dispatched (only PrePolicy silicon-init executed).
  369. # Do not add policy dependency and let FspsWrapper report FSP-S FV to dispatcher.
  370. #
  371. IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf {
  372. <LibraryClasses>
  373. SiliconPolicyInitLib|MinPlatformPkg/PlatformInit/Library/SiliconPolicyInitLibNull/SiliconPolicyInitLibNull.inf
  374. }
  375. !endif
  376. !if gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable == TRUE
  377. SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
  378. <LibraryClasses>
  379. NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
  380. NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
  381. NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
  382. }
  383. !endif
  384. #######################################
  385. # Silicon Initialization Package
  386. #######################################
  387. IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/IntelVTdPmrPei.inf
  388. IntelSiliconPkg/Feature/VTd/PlatformVTdInfoSamplePei/PlatformVTdInfoSamplePei.inf
  389. #######################################
  390. # Platform Package
  391. #######################################
  392. $(PLATFORM_PACKAGE)/PlatformInit/ReportFv/ReportFvPei.inf
  393. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf {
  394. <LibraryClasses>
  395. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  396. BoardInitLib|$(PROJECT)/Library/BoardInitLib/PeiBoardInitPreMemLib.inf
  397. !else
  398. NULL|$(PROJECT)/Library/BoardInitLib/PeiMultiBoardInitPreMemLib.inf
  399. !endif
  400. }
  401. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitPei/PlatformInitPostMem.inf {
  402. <LibraryClasses>
  403. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  404. BoardInitLib|$(PROJECT)/Library/BoardInitLib/PeiBoardInitPostMemLib.inf
  405. !else
  406. NULL|$(PROJECT)/Library/BoardInitLib/PeiMultiBoardInitPostMemLib.inf
  407. !endif
  408. }
  409. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  410. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPreMem.inf {
  411. <LibraryClasses>
  412. #
  413. # Hook a library constructor to update some policy fields when policy is installed.
  414. #
  415. NULL|$(PLATFORM_BOARD_PACKAGE)/FspWrapper/Library/PeiSiliconPolicyNotifyLib/PeiPreMemSiliconPolicyNotifyLib.inf
  416. }
  417. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPostMem.inf
  418. !else
  419. #
  420. # FSP Dispatch mode will consume DefaultPolicyInit PPI produced by FSP to install a default policy PPI.
  421. # Similar as UPD in FSP API mode, DefaultPolicyInit PPI in Dispatch mode can generate different policy structure
  422. # for different FSP revisions, but they must maintain backward compatibility.
  423. #
  424. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPreMem.inf {
  425. <LibraryClasses>
  426. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLib/PeiPreMemSiliconPolicyInitLib.inf
  427. }
  428. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPostMem.inf {
  429. <LibraryClasses>
  430. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLib/PeiPostMemSiliconPolicyInitLib.inf
  431. }
  432. !endif
  433. !if gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable == TRUE
  434. $(PLATFORM_PACKAGE)/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf
  435. !endif
  436. #######################################
  437. # Board Package
  438. #######################################
  439. # Thunderbolt
  440. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  441. $(PLATFORM_BOARD_PACKAGE)/Features/Tbt/TbtInit/Pei/PeiTbtInit.inf
  442. !endif
  443. $(PLATFORM_BOARD_PACKAGE)/BiosInfo/BiosInfo.inf
  444. #######################################
  445. # DXE Components
  446. #######################################
  447. # @todo: Change below line to [Components.$(DXE_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  448. # is completed
  449. [Components.X64]
  450. # Compiled .efi but not in FV:
  451. # - dpDynamicCommand, TestPointDumpApp
  452. # Other apps; perhaps useful:
  453. # - MdeModulePkg/{DumpDynPcd,*ProfileInfo,VariableInfo}, UefiCpuPkg/Cpuid
  454. # - Also, ShellPkg/*DynamicCommand
  455. #######################################
  456. # Edk2 Packages
  457. #######################################
  458. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf {
  459. <LibraryClasses>
  460. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  461. !if $(USE_MEMORY_LOGGING) == TRUE
  462. SerialPortLib|MdeModulePkg/Library/PeiDxeSerialPortLibMem/DxeSerialPortLibMem.inf
  463. !endif
  464. <PcdsFixedAtBuild>
  465. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|$(USE_MEMORY_LOGGING)
  466. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|512
  467. }
  468. # TODO: Still requires a little more thought
  469. MdeModulePkg/Universal/StatusCodeHandler/Smm/StatusCodeHandlerSmm.inf {
  470. <LibraryClasses>
  471. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  472. !if $(USE_MEMORY_LOGGING) == TRUE
  473. SerialPortLib|MdeModulePkg/Library/PeiDxeSerialPortLibMem/SmmSerialPortLibMem.inf
  474. !endif
  475. <PcdsFixedAtBuild>
  476. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|$(USE_MEMORY_LOGGING)
  477. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|512
  478. }
  479. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  480. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  481. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  482. MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
  483. MdeModulePkg/Universal/Console/GraphicsOutputDxe/GraphicsOutputDxe.inf
  484. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  485. MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
  486. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  487. <LibraryClasses>
  488. NULL|BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.inf
  489. }
  490. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  491. <LibraryClasses>
  492. !if $(USE_MEMORY_LOGGING) == TRUE
  493. # TODO/TEST
  494. # SerialPortLib|MdeModulePkg/Library/PeiDxeSerialPortLibMem/DxeSerialPortLibMem.inf
  495. !endif
  496. }
  497. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  498. #
  499. # FSP API mode
  500. #
  501. IntelFsp2WrapperPkg/FspWrapperNotifyDxe/FspWrapperNotifyDxe.inf
  502. !endif
  503. ShellPkg/Application/Shell/Shell.inf {
  504. <PcdsFixedAtBuild>
  505. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  506. <LibraryClasses>
  507. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  508. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  509. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  510. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  511. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  512. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  513. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  514. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  515. NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  516. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  517. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  518. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  519. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  520. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  521. }
  522. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  523. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
  524. <PcdsPatchableInModule>
  525. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80080046
  526. <LibraryClasses>
  527. !if $(TARGET) == DEBUG
  528. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  529. !endif
  530. !if $(USE_MEMORY_LOGGING) == TRUE
  531. # TODO/TEST
  532. # SerialPortLib|MdeModulePkg/Library/PeiDxeSerialPortLibMem/SmmSerialPortLibMem.inf
  533. !endif
  534. }
  535. !endif
  536. !if gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable == TRUE
  537. SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
  538. <LibraryClasses>
  539. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
  540. NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
  541. NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
  542. NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
  543. }
  544. !endif
  545. #######################################
  546. # Silicon Initialization Package
  547. #######################################
  548. IntelSiliconPkg/Feature/VTd/IntelVTdDxe/IntelVTdDxe.inf
  549. $(PLATFORM_SI_BIN_PACKAGE)/Microcode/MicrocodeUpdates.inf
  550. #######################################
  551. # Platform Package
  552. #######################################
  553. $(PLATFORM_PACKAGE)/FspWrapper/SaveMemoryConfig/SaveMemoryConfig.inf
  554. $(PLATFORM_PACKAGE)/Hsti/HstiIbvPlatformDxe/HstiIbvPlatformDxe.inf
  555. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitDxe/PlatformInitDxe.inf {
  556. <LibraryClasses>
  557. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  558. BoardInitLib|$(PROJECT)/Library/BoardInitLib/DxeBoardInitLib.inf
  559. !else
  560. NULL|$(PROJECT)/Library/BoardInitLib/DxeMultiBoardInitLib.inf
  561. !endif
  562. }
  563. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyDxe/SiliconPolicyDxe.inf
  564. $(PLATFORM_PACKAGE)/Test/TestPointDumpApp/TestPointDumpApp.inf
  565. $(PLATFORM_PACKAGE)/Test/TestPointStubDxe/TestPointStubDxe.inf
  566. !if gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable == TRUE
  567. $(PLATFORM_PACKAGE)/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf
  568. !endif
  569. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  570. $(PLATFORM_PACKAGE)/Flash/SpiFvbService/SpiFvbServiceSmm.inf
  571. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitSmm/PlatformInitSmm.inf
  572. $(PLATFORM_PACKAGE)/Acpi/AcpiSmm/AcpiSmm.inf {
  573. <LibraryClasses>
  574. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  575. BoardAcpiEnableLib|$(PROJECT)/Library/BoardAcpiLib/SmmBoardAcpiEnableLib.inf
  576. !else
  577. NULL|$(PROJECT)/Library/BoardAcpiLib/SmmMultiBoardAcpiSupportLib.inf
  578. !endif
  579. }
  580. $(PLATFORM_PACKAGE)/Acpi/AcpiTables/AcpiPlatform.inf {
  581. <LibraryClasses>
  582. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  583. BoardAcpiTableLib|$(PROJECT)/Library/BoardAcpiLib/DxeBoardAcpiTableLib.inf
  584. !else
  585. NULL|$(PROJECT)/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
  586. !endif
  587. }
  588. !endif
  589. #######################################
  590. # Board Package
  591. #######################################
  592. # Thunderbolt
  593. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  594. $(PLATFORM_BOARD_PACKAGE)/Features/Tbt/TbtInit/Smm/TbtSmm.inf
  595. $(PLATFORM_BOARD_PACKAGE)/Features/Tbt/TbtInit/Dxe/TbtDxe.inf
  596. $(PLATFORM_BOARD_PACKAGE)/Features/PciHotPlug/PciHotPlug.inf
  597. !endif
  598. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  599. $(PLATFORM_BOARD_PACKAGE)/Acpi/BoardAcpiDxe/BoardAcpiDxe.inf {
  600. <LibraryClasses>
  601. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  602. BoardAcpiTableLib|$(PROJECT)/Library/BoardAcpiLib/DxeBoardAcpiTableLib.inf
  603. !else
  604. NULL|$(PROJECT)/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
  605. !endif
  606. }
  607. $(PROJECT)/Acpi/BoardAcpiTables.inf
  608. !endif
  609. BoardModulePkg/LegacySioDxe/LegacySioDxe.inf
  610. BoardModulePkg/BoardBdsHookDxe/BoardBdsHookDxe.inf