OpenBoardPkg.dsc 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  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. HdmiDebugPchDetectionLib|$(PLATFORM_BOARD_PACKAGE)/Library/HdmiDebugPchDetectionLib/HdmiDebugPchDetectionLib.inf
  166. # Thunderbolt
  167. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  168. DxeTbtPolicyLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/DxeTbtPolicyLib/DxeTbtPolicyLib.inf
  169. TbtCommonLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/PeiDxeSmmTbtCommonLib/TbtCommonLib.inf
  170. !endif
  171. #######################################
  172. # Board-specific
  173. #######################################
  174. PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
  175. # NB: MinPlatform sets a NULL DebugLib and only overrides it for DEBUG builds
  176. # TODO: Now that all debug logging is routed through RSC, correct the defines
  177. [LibraryClasses.IA32.SEC]
  178. #######################################
  179. # Edk2 Packages
  180. #######################################
  181. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  182. #######################################
  183. # Platform Package
  184. #######################################
  185. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/SecTestPointCheckLib.inf
  186. SecBoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/SecBoardInitLibNull/SecBoardInitLibNull.inf
  187. SiliconPolicyUpdateLib|MinPlatformPkg/PlatformInit/Library/SiliconPolicyUpdateLibNull/SiliconPolicyUpdateLibNull.inf
  188. [LibraryClasses.common.PEI_CORE]
  189. #######################################
  190. # Edk2 Packages
  191. #######################################
  192. # SPI logging requires local patch: InitializeMemoryServices() before ProcessLibraryConstructorList()
  193. # In-memory logging may require too many services for early core debug output
  194. !if $(RELEASE_LOGGING) == TRUE
  195. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  196. !endif
  197. [LibraryClasses.common.PEIM]
  198. #######################################
  199. # Edk2 Packages
  200. #######################################
  201. !if $(RELEASE_LOGGING) == TRUE
  202. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  203. !endif
  204. #######################################
  205. # Silicon Package
  206. #######################################
  207. ReportCpuHobLib|IntelSiliconPkg/Library/ReportCpuHobLib/ReportCpuHobLib.inf
  208. #######################################
  209. # Platform Package
  210. #######################################
  211. BoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/PeiMultiBoardInitSupportLib.inf
  212. FspWrapperPlatformLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/PeiFspWrapperPlatformLib/PeiFspWrapperPlatformLib.inf
  213. MultiBoardInitSupportLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/PeiMultiBoardInitSupportLib.inf
  214. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/PeiTestPointLib.inf
  215. !if ($(TARGET) == DEBUG || $(TESTING) == TRUE)
  216. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/PeiTestPointCheckLib.inf
  217. !endif
  218. SetCacheMtrrLib|$(PLATFORM_PACKAGE)/Library/SetCacheMtrrLib/SetCacheMtrrLibNull.inf
  219. #######################################
  220. # Board Package
  221. #######################################
  222. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  223. #
  224. # FSP API mode
  225. #
  226. SiliconPolicyUpdateLib|$(PROJECT)/FspWrapper/Library/PeiSiliconPolicyUpdateLibFsp/PeiSiliconPolicyUpdateLibFsp.inf
  227. !else
  228. #
  229. # FSP Dispatch mode and non-FSP build (EDK2 build)
  230. #
  231. SiliconPolicyUpdateLib|$(PROJECT)/Policy/Library/PeiSiliconPolicyUpdateLib/PeiSiliconPolicyUpdateLib.inf
  232. !endif
  233. # Thunderbolt
  234. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  235. PeiDTbtInitLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/Private/PeiDTbtInitLib/PeiDTbtInitLib.inf
  236. PeiTbtPolicyLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/PeiTbtPolicyLib/PeiTbtPolicyLib.inf
  237. !endif
  238. [LibraryClasses.common.DXE_CORE]
  239. #######################################
  240. # Edk2 Packages
  241. #######################################
  242. # In-memory logging may require too many services for early core debug output
  243. !if $(USE_MEMORY_LOGGING) == TRUE
  244. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  245. !endif
  246. [LibraryClasses.common.DXE_DRIVER]
  247. #######################################
  248. # Edk2 Packages
  249. #######################################
  250. !if $(USE_MEMORY_LOGGING) == TRUE
  251. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  252. !endif
  253. #######################################
  254. # Silicon Initialization Package
  255. #######################################
  256. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/DxeSiliconPolicyInitLib/DxeSiliconPolicyInitLib.inf
  257. #######################################
  258. # Platform Package
  259. #######################################
  260. BoardAcpiTableLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/DxeMultiBoardAcpiSupportLib.inf
  261. BoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/DxeMultiBoardInitSupportLib.inf
  262. FspWrapperPlatformLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/DxeFspWrapperPlatformLib/DxeFspWrapperPlatformLib.inf
  263. MultiBoardAcpiSupportLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/DxeMultiBoardAcpiSupportLib.inf
  264. MultiBoardInitSupportLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/DxeMultiBoardInitSupportLib.inf
  265. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/DxeTestPointLib.inf
  266. !if ($(TARGET) == DEBUG || $(TESTING) == TRUE)
  267. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.inf
  268. !endif
  269. #######################################
  270. # Board Package
  271. #######################################
  272. BoardBdsHookLib|BoardModulePkg/Library/BoardBdsHookLib/BoardBdsHookLib.inf
  273. BoardBootManagerLib|BoardModulePkg/Library/BoardBootManagerLib/BoardBootManagerLib.inf
  274. #######################################
  275. # Board-specific
  276. #######################################
  277. SiliconPolicyUpdateLib|$(PROJECT)/Policy/Library/DxeSiliconPolicyUpdateLib/DxeSiliconPolicyUpdateLib.inf
  278. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  279. #######################################
  280. # Edk2 Packages
  281. #######################################
  282. !if $(USE_MEMORY_LOGGING) == TRUE
  283. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  284. !endif
  285. #######################################
  286. # Silicon Initialization Package
  287. #######################################
  288. ResetSystemLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/DxeRuntimeResetSystemLib/DxeRuntimeResetSystemLib.inf
  289. [LibraryClasses.common.SMM_CORE]
  290. #######################################
  291. # Edk2 Packages
  292. #######################################
  293. # In-memory logging may require too many services for early core debug output
  294. !if $(USE_MEMORY_LOGGING) == TRUE
  295. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  296. !endif
  297. [LibraryClasses.common.DXE_SMM_DRIVER]
  298. #######################################
  299. # Edk2 Packages
  300. #######################################
  301. !if $(USE_MEMORY_LOGGING) == TRUE
  302. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  303. !endif
  304. #######################################
  305. # Silicon Initialization Package
  306. #######################################
  307. SpiFlashCommonLib|IntelSiliconPkg/Library/SmmSpiFlashCommonLib/SmmSpiFlashCommonLib.inf
  308. #######################################
  309. # Platform Package
  310. #######################################
  311. BoardAcpiEnableLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/SmmMultiBoardAcpiSupportLib.inf
  312. MultiBoardAcpiSupportLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/SmmMultiBoardAcpiSupportLib.inf
  313. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/SmmTestPointLib.inf
  314. !if ($(TARGET) == DEBUG || $(TESTING) == TRUE)
  315. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.inf
  316. !endif
  317. # TODO: DebugLib override for UEFI_DRIVER and UEFI_APPLICATION?
  318. # TODO: Add and improve feature support
  319. #######################################
  320. # PEI Components
  321. #######################################
  322. # @todo: Change below line to [Components.$(PEI_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  323. # is completed
  324. [Components.IA32]
  325. #######################################
  326. # Edk2 Packages
  327. #######################################
  328. UefiCpuPkg/SecCore/SecCore.inf {
  329. <LibraryClasses>
  330. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  331. }
  332. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
  333. <LibraryClasses>
  334. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  335. !if $(USE_PEI_SPI_LOGGING) == TRUE
  336. SerialPortLib|$(PLATFORM_BOARD_PACKAGE)/Library/PeiSerialPortLibSpiFlash/PeiSerialPortLibSpiFlash.inf
  337. !else
  338. !if $(USE_MEMORY_LOGGING) == TRUE
  339. SerialPortLib|MdeModulePkg/Library/PeiDxeSerialPortLibMem/PeiSerialPortLibMem.inf
  340. !endif
  341. !endif
  342. <PcdsFixedAtBuild>
  343. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|$(RELEASE_LOGGING)
  344. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|48
  345. }
  346. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  347. #
  348. # In FSP API mode the policy has to be installed before FSP Wrapper updating UPD.
  349. # Add policy as dependency for FSP Wrapper
  350. #
  351. IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf {
  352. <LibraryClasses>
  353. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibDependency/PeiPreMemSiliconPolicyInitLibDependency.inf
  354. }
  355. IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf {
  356. <LibraryClasses>
  357. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibDependency/PeiPostMemSiliconPolicyInitLibDependency.inf
  358. }
  359. !else
  360. #
  361. # In FSP Dispatch mode the policy will be installed after FSP-M dispatched (only PrePolicy silicon-init executed).
  362. # Do not add policy dependency and let FspmWrapper report FSP-M FV to dispatcher.
  363. #
  364. IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf {
  365. <LibraryClasses>
  366. SiliconPolicyInitLib|MinPlatformPkg/PlatformInit/Library/SiliconPolicyInitLibNull/SiliconPolicyInitLibNull.inf
  367. }
  368. #
  369. # In FSP Dispatch mode the policy will be installed after FSP-S dispatched (only PrePolicy silicon-init executed).
  370. # Do not add policy dependency and let FspsWrapper report FSP-S FV to dispatcher.
  371. #
  372. IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf {
  373. <LibraryClasses>
  374. SiliconPolicyInitLib|MinPlatformPkg/PlatformInit/Library/SiliconPolicyInitLibNull/SiliconPolicyInitLibNull.inf
  375. }
  376. !endif
  377. !if gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable == TRUE
  378. SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
  379. <LibraryClasses>
  380. NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
  381. NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
  382. NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
  383. }
  384. !endif
  385. #######################################
  386. # Silicon Initialization Package
  387. #######################################
  388. IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/IntelVTdPmrPei.inf
  389. IntelSiliconPkg/Feature/VTd/PlatformVTdInfoSamplePei/PlatformVTdInfoSamplePei.inf
  390. #######################################
  391. # Platform Package
  392. #######################################
  393. $(PLATFORM_PACKAGE)/PlatformInit/ReportFv/ReportFvPei.inf
  394. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf {
  395. <LibraryClasses>
  396. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  397. BoardInitLib|$(PROJECT)/Library/BoardInitLib/PeiBoardInitPreMemLib.inf
  398. !else
  399. NULL|$(PROJECT)/Library/BoardInitLib/PeiMultiBoardInitPreMemLib.inf
  400. !endif
  401. }
  402. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitPei/PlatformInitPostMem.inf {
  403. <LibraryClasses>
  404. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  405. BoardInitLib|$(PROJECT)/Library/BoardInitLib/PeiBoardInitPostMemLib.inf
  406. !else
  407. NULL|$(PROJECT)/Library/BoardInitLib/PeiMultiBoardInitPostMemLib.inf
  408. !endif
  409. }
  410. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  411. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPreMem.inf {
  412. <LibraryClasses>
  413. #
  414. # Hook a library constructor to update some policy fields when policy is installed.
  415. #
  416. NULL|$(PLATFORM_BOARD_PACKAGE)/FspWrapper/Library/PeiSiliconPolicyNotifyLib/PeiPreMemSiliconPolicyNotifyLib.inf
  417. }
  418. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPostMem.inf
  419. !else
  420. #
  421. # FSP Dispatch mode will consume DefaultPolicyInit PPI produced by FSP to install a default policy PPI.
  422. # Similar as UPD in FSP API mode, DefaultPolicyInit PPI in Dispatch mode can generate different policy structure
  423. # for different FSP revisions, but they must maintain backward compatibility.
  424. #
  425. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPreMem.inf {
  426. <LibraryClasses>
  427. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLib/PeiPreMemSiliconPolicyInitLib.inf
  428. }
  429. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPostMem.inf {
  430. <LibraryClasses>
  431. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLib/PeiPostMemSiliconPolicyInitLib.inf
  432. }
  433. !endif
  434. !if gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable == TRUE
  435. $(PLATFORM_PACKAGE)/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf
  436. !endif
  437. #######################################
  438. # Board Package
  439. #######################################
  440. # Thunderbolt
  441. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  442. $(PLATFORM_BOARD_PACKAGE)/Features/Tbt/TbtInit/Pei/PeiTbtInit.inf
  443. !endif
  444. $(PLATFORM_BOARD_PACKAGE)/BiosInfo/BiosInfo.inf
  445. #######################################
  446. # DXE Components
  447. #######################################
  448. # @todo: Change below line to [Components.$(DXE_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  449. # is completed
  450. [Components.X64]
  451. # Compiled .efi but not in FV:
  452. # - dpDynamicCommand, TestPointDumpApp
  453. # Other apps; perhaps useful:
  454. # - MdeModulePkg/{DumpDynPcd,*ProfileInfo,VariableInfo}, UefiCpuPkg/Cpuid
  455. # - Also, ShellPkg/*DynamicCommand
  456. #######################################
  457. # Edk2 Packages
  458. #######################################
  459. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf {
  460. <LibraryClasses>
  461. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  462. !if $(USE_MEMORY_LOGGING) == TRUE
  463. SerialPortLib|MdeModulePkg/Library/PeiDxeSerialPortLibMem/DxeSerialPortLibMem.inf
  464. !endif
  465. <PcdsFixedAtBuild>
  466. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|$(USE_MEMORY_LOGGING)
  467. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|512
  468. }
  469. # TODO: Still requires a little more thought
  470. MdeModulePkg/Universal/StatusCodeHandler/Smm/StatusCodeHandlerSmm.inf {
  471. <LibraryClasses>
  472. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  473. !if $(USE_MEMORY_LOGGING) == TRUE
  474. SerialPortLib|MdeModulePkg/Library/PeiDxeSerialPortLibMem/SmmSerialPortLibMem.inf
  475. !endif
  476. <PcdsFixedAtBuild>
  477. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|$(USE_MEMORY_LOGGING)
  478. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|512
  479. }
  480. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  481. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  482. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  483. MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
  484. MdeModulePkg/Universal/Console/GraphicsOutputDxe/GraphicsOutputDxe.inf
  485. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  486. MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
  487. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  488. <LibraryClasses>
  489. NULL|BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.inf
  490. }
  491. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  492. <LibraryClasses>
  493. !if $(USE_MEMORY_LOGGING) == TRUE
  494. # TODO/TEST
  495. # SerialPortLib|MdeModulePkg/Library/PeiDxeSerialPortLibMem/DxeSerialPortLibMem.inf
  496. !endif
  497. }
  498. !if gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection == 1
  499. #
  500. # FSP API mode
  501. #
  502. IntelFsp2WrapperPkg/FspWrapperNotifyDxe/FspWrapperNotifyDxe.inf
  503. !endif
  504. ShellPkg/Application/Shell/Shell.inf {
  505. <PcdsFixedAtBuild>
  506. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  507. <LibraryClasses>
  508. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  509. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  510. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  511. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  512. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  513. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  514. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  515. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  516. NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  517. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  518. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  519. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  520. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  521. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  522. }
  523. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  524. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
  525. <PcdsPatchableInModule>
  526. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80080046
  527. <LibraryClasses>
  528. !if $(TARGET) == DEBUG
  529. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  530. !endif
  531. !if $(USE_MEMORY_LOGGING) == TRUE
  532. # TODO/TEST
  533. # SerialPortLib|MdeModulePkg/Library/PeiDxeSerialPortLibMem/SmmSerialPortLibMem.inf
  534. !endif
  535. }
  536. !endif
  537. !if gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable == TRUE
  538. SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
  539. <LibraryClasses>
  540. Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
  541. NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
  542. NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
  543. NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
  544. }
  545. !endif
  546. #######################################
  547. # Silicon Initialization Package
  548. #######################################
  549. IntelSiliconPkg/Feature/VTd/IntelVTdDxe/IntelVTdDxe.inf
  550. $(PLATFORM_SI_BIN_PACKAGE)/Microcode/MicrocodeUpdates.inf
  551. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  552. IntelSiliconPkg/Feature/Flash/SpiFvbService/SpiFvbServiceSmm.inf
  553. !endif
  554. #######################################
  555. # Platform Package
  556. #######################################
  557. $(PLATFORM_PACKAGE)/FspWrapper/SaveMemoryConfig/SaveMemoryConfig.inf
  558. $(PLATFORM_PACKAGE)/Hsti/HstiIbvPlatformDxe/HstiIbvPlatformDxe.inf
  559. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitDxe/PlatformInitDxe.inf {
  560. <LibraryClasses>
  561. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  562. BoardInitLib|$(PROJECT)/Library/BoardInitLib/DxeBoardInitLib.inf
  563. !else
  564. NULL|$(PROJECT)/Library/BoardInitLib/DxeMultiBoardInitLib.inf
  565. !endif
  566. }
  567. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyDxe/SiliconPolicyDxe.inf
  568. $(PLATFORM_PACKAGE)/Test/TestPointDumpApp/TestPointDumpApp.inf
  569. $(PLATFORM_PACKAGE)/Test/TestPointStubDxe/TestPointStubDxe.inf
  570. !if gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable == TRUE
  571. $(PLATFORM_PACKAGE)/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf
  572. !endif
  573. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  574. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitSmm/PlatformInitSmm.inf
  575. $(PLATFORM_PACKAGE)/Acpi/AcpiSmm/AcpiSmm.inf {
  576. <LibraryClasses>
  577. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  578. BoardAcpiEnableLib|$(PROJECT)/Library/BoardAcpiLib/SmmBoardAcpiEnableLib.inf
  579. !else
  580. NULL|$(PROJECT)/Library/BoardAcpiLib/SmmMultiBoardAcpiSupportLib.inf
  581. !endif
  582. }
  583. $(PLATFORM_PACKAGE)/Acpi/AcpiTables/AcpiPlatform.inf {
  584. <LibraryClasses>
  585. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  586. BoardAcpiTableLib|$(PROJECT)/Library/BoardAcpiLib/DxeBoardAcpiTableLib.inf
  587. !else
  588. NULL|$(PROJECT)/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
  589. !endif
  590. }
  591. !endif
  592. #######################################
  593. # Board Package
  594. #######################################
  595. # Thunderbolt
  596. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  597. $(PLATFORM_BOARD_PACKAGE)/Features/Tbt/TbtInit/Smm/TbtSmm.inf
  598. $(PLATFORM_BOARD_PACKAGE)/Features/Tbt/TbtInit/Dxe/TbtDxe.inf
  599. $(PLATFORM_BOARD_PACKAGE)/Features/PciHotPlug/PciHotPlug.inf
  600. !endif
  601. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  602. $(PLATFORM_BOARD_PACKAGE)/Acpi/BoardAcpiDxe/BoardAcpiDxe.inf {
  603. <LibraryClasses>
  604. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  605. BoardAcpiTableLib|$(PROJECT)/Library/BoardAcpiLib/DxeBoardAcpiTableLib.inf
  606. !else
  607. NULL|$(PROJECT)/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
  608. !endif
  609. }
  610. $(PROJECT)/Acpi/BoardAcpiTables.inf
  611. !endif
  612. BoardModulePkg/LegacySioDxe/LegacySioDxe.inf
  613. BoardModulePkg/BoardBdsHookDxe/BoardBdsHookDxe.inf