OpenBoardPkg.dsc 30 KB

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