OpenBoardPkg.dsc 30 KB

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