OpenBoardPkg.dsc 31 KB

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