OpenBoardPkg.dsc 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. ## @file
  2. # The main build description file for the GalagoPro3 board.
  3. #
  4. # Copyright (c) 2019 - 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_FSP_BIN_PACKAGE = KabylakeFspBinPkg
  14. DEFINE PLATFORM_BOARD_PACKAGE = KabylakeOpenBoardPkg
  15. DEFINE BOARD = GalagoPro3
  16. DEFINE PROJECT = $(PLATFORM_BOARD_PACKAGE)/$(BOARD)
  17. DEFINE PEI_ARCH = IA32
  18. DEFINE DXE_ARCH = X64
  19. DEFINE TOP_MEMORY_ADDRESS = 0x0
  20. #
  21. # Default value for OpenBoardPkg.fdf use
  22. #
  23. DEFINE BIOS_SIZE_OPTION = SIZE_60
  24. PLATFORM_NAME = $(PLATFORM_PACKAGE)
  25. PLATFORM_GUID = 7324F33D-4E96-4F8B-A550-544DE6162AB7
  26. PLATFORM_VERSION = 0.1
  27. DSC_SPECIFICATION = 0x00010005
  28. OUTPUT_DIRECTORY = Build/$(PROJECT)
  29. SUPPORTED_ARCHITECTURES = IA32|X64
  30. BUILD_TARGETS = DEBUG|RELEASE
  31. SKUID_IDENTIFIER = ALL
  32. FLASH_DEFINITION = $(PROJECT)/OpenBoardPkg.fdf
  33. FIX_LOAD_TOP_MEMORY_ADDRESS = 0x0
  34. #
  35. # Include PCD configuration for this board.
  36. #
  37. !include AdvancedFeaturePkg/Include/AdvancedFeaturesPcd.dsc
  38. !include OpenBoardPkgPcd.dsc
  39. !include AdvancedFeaturePkg/Include/AdvancedFeatures.dsc
  40. ################################################################################
  41. #
  42. # SKU Identification section - list of all SKU IDs supported by this board.
  43. #
  44. ################################################################################
  45. [SkuIds]
  46. 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required.
  47. 0x20|GalagoPro3
  48. ################################################################################
  49. #
  50. # Includes section - other DSC file contents included for this board build.
  51. #
  52. ################################################################################
  53. #######################################
  54. # Library Includes
  55. #######################################
  56. !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreCommonLib.dsc
  57. !include $(PLATFORM_PACKAGE)/Include/Dsc/CorePeiLib.dsc
  58. !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreDxeLib.dsc
  59. !include $(PLATFORM_SI_PACKAGE)/SiPkgCommonLib.dsc
  60. !include $(PLATFORM_SI_PACKAGE)/SiPkgPeiLib.dsc
  61. !include $(PLATFORM_SI_PACKAGE)/SiPkgDxeLib.dsc
  62. #######################################
  63. # Component Includes
  64. #######################################
  65. # @todo: Change below line to [Components.$(PEI_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  66. # is completed
  67. [Components.IA32]
  68. !include $(PLATFORM_PACKAGE)/Include/Dsc/CorePeiInclude.dsc
  69. !include $(PLATFORM_SI_PACKAGE)/SiPkgPei.dsc
  70. # @todo: Change below line to [Components.$(DXE_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  71. # is completed
  72. [Components.X64]
  73. !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreDxeInclude.dsc
  74. !include $(PLATFORM_SI_PACKAGE)/SiPkgDxe.dsc
  75. #######################################
  76. # Build Option Includes
  77. #######################################
  78. !include $(PLATFORM_SI_PACKAGE)/SiPkgBuildOption.dsc
  79. !include OpenBoardPkgBuildOption.dsc
  80. ################################################################################
  81. #
  82. # Library Class section - list of all Library Classes needed by this board.
  83. #
  84. ################################################################################
  85. [LibraryClasses.common]
  86. #######################################
  87. # Edk2 Packages
  88. #######################################
  89. FspWrapperApiLib|IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/BaseFspWrapperApiLib.inf
  90. FspWrapperApiTestLib|IntelFsp2WrapperPkg/Library/PeiFspWrapperApiTestLib/PeiFspWrapperApiTestLib.inf
  91. #######################################
  92. # Silicon Initialization Package
  93. #######################################
  94. ConfigBlockLib|IntelSiliconPkg/Library/BaseConfigBlockLib/BaseConfigBlockLib.inf
  95. SiliconInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconInitLib/PeiSiliconInitLib.inf
  96. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibFsp/PeiSiliconPolicyInitLibFsp.inf
  97. #####################################
  98. # Platform Package
  99. #####################################
  100. BoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/BoardInitLibNull/BoardInitLibNull.inf
  101. FspWrapperHobProcessLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/PeiFspWrapperHobProcessLib/PeiFspWrapperHobProcessLib.inf
  102. FspWrapperPlatformLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/PeiFspWrapperPlatformLib/PeiFspWrapperPlatformLib.inf
  103. PciHostBridgeLib|$(PLATFORM_PACKAGE)/Pci/Library/PciHostBridgeLibSimple/PciHostBridgeLibSimple.inf
  104. PciSegmentInfoLib|$(PLATFORM_PACKAGE)/Pci/Library/PciSegmentInfoLibSimple/PciSegmentInfoLibSimple.inf
  105. PeiLib|$(PLATFORM_PACKAGE)/Library/PeiLib/PeiLib.inf
  106. PlatformBootManagerLib|$(PLATFORM_PACKAGE)/Bds/Library/DxePlatformBootManagerLib/DxePlatformBootManagerLib.inf
  107. ReportFvLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/PeiReportFvLib/PeiReportFvLib.inf
  108. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLibNull/TestPointCheckLibNull.inf
  109. #######################################
  110. # Board Package
  111. #######################################
  112. GpioExpanderLib|$(PLATFORM_BOARD_PACKAGE)/Library/BaseGpioExpanderLib/BaseGpioExpanderLib.inf
  113. I2cAccessLib|$(PLATFORM_BOARD_PACKAGE)/Library/PeiI2cAccessLib/PeiI2cAccessLib.inf
  114. PlatformSecLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/SecFspWrapperPlatformSecLib/SecFspWrapperPlatformSecLib.inf
  115. HdmiDebugGpioInitLib|$(PLATFORM_BOARD_PACKAGE)/Library/HdmiDebugGpioInitLib/HdmiDebugGpioInitLib.inf
  116. HdmiDebugPchDetectionLib|$(PLATFORM_BOARD_PACKAGE)/Library/HdmiDebugPchDetectionLib/HdmiDebugPchDetectionLib.inf
  117. # Thunderbolt
  118. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  119. DxeTbtPolicyLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/DxeTbtPolicyLib/DxeTbtPolicyLib.inf
  120. TbtCommonLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/PeiDxeSmmTbtCommonLib/TbtCommonLib.inf
  121. !endif
  122. #######################################
  123. # Board-specific
  124. #######################################
  125. PlatformHookLib|$(PROJECT)/Library/BasePlatformHookLib/BasePlatformHookLib.inf
  126. SiliconPolicyUpdateLib|$(PROJECT)/FspWrapper/Library/PeiSiliconPolicyUpdateLibFsp/PeiSiliconPolicyUpdateLibFsp.inf
  127. [LibraryClasses.common.PEI_CORE]
  128. !if $(TARGET) == DEBUG && gKabylakeOpenBoardPkgTokenSpaceGuid.PcdI2cHdmiDebugPortEnable == TRUE
  129. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  130. SerialPortLib|$(PLATFORM_BOARD_PACKAGE)/Library/I2cHdmiDebugSerialPortLib/PeiI2cHdmiDebugSerialPortLib.inf
  131. !endif
  132. [LibraryClasses.IA32.SEC]
  133. #######################################
  134. # Edk2 Packages
  135. #######################################
  136. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  137. SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
  138. #######################################
  139. # Platform Package
  140. #######################################
  141. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/SecTestPointCheckLib.inf
  142. SiliconPolicyUpdateLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/SiliconPolicyUpdateLibNull/SiliconPolicyUpdateLibNull.inf
  143. #######################################
  144. # Board-specific
  145. #######################################
  146. SecBoardInitLib|$(PLATFORM_BOARD_PACKAGE)/Library/SecBoardInitLib/SecBoardInitLib.inf
  147. [LibraryClasses.common.PEIM]
  148. #######################################
  149. # Edk2 Packages
  150. #######################################
  151. !if $(TARGET) == DEBUG
  152. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  153. !endif
  154. SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
  155. #######################################
  156. # Silicon Package
  157. #######################################
  158. ReportCpuHobLib|IntelSiliconPkg/Library/ReportCpuHobLib/ReportCpuHobLib.inf
  159. SmmAccessLib|IntelSiliconPkg/Feature/SmmAccess/Library/PeiSmmAccessLibSmramc/PeiSmmAccessLib.inf
  160. #######################################
  161. # Platform Package
  162. #######################################
  163. BoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/PeiMultiBoardInitSupportLib.inf
  164. FspWrapperPlatformLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/PeiFspWrapperPlatformLib/PeiFspWrapperPlatformLib.inf
  165. MultiBoardInitSupportLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/PeiMultiBoardInitSupportLib.inf
  166. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/PeiTestPointLib.inf
  167. !if $(TARGET) == DEBUG
  168. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/PeiTestPointCheckLib.inf
  169. !endif
  170. SetCacheMtrrLib|$(PLATFORM_PACKAGE)/Library/SetCacheMtrrLib/SetCacheMtrrLibNull.inf
  171. #######################################
  172. # Board Package
  173. #######################################
  174. # Thunderbolt
  175. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  176. PeiDTbtInitLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/Private/PeiDTbtInitLib/PeiDTbtInitLib.inf
  177. PeiTbtPolicyLib|$(PLATFORM_BOARD_PACKAGE)/Features/Tbt/Library/PeiTbtPolicyLib/PeiTbtPolicyLib.inf
  178. !endif
  179. [LibraryClasses.common.DXE_CORE]
  180. !if $(TARGET) == DEBUG
  181. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  182. !endif
  183. [LibraryClasses.common.DXE_DRIVER]
  184. #######################################
  185. # Edk2 Packages
  186. #######################################
  187. !if $(TARGET) == DEBUG
  188. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  189. !endif
  190. #######################################
  191. # Silicon Initialization Package
  192. #######################################
  193. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/DxeSiliconPolicyInitLib/DxeSiliconPolicyInitLib.inf
  194. #######################################
  195. # Platform Package
  196. #######################################
  197. BoardAcpiTableLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/DxeMultiBoardAcpiSupportLib.inf
  198. BoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/DxeMultiBoardInitSupportLib.inf
  199. FspWrapperPlatformLib|$(PLATFORM_PACKAGE)/FspWrapper/Library/DxeFspWrapperPlatformLib/DxeFspWrapperPlatformLib.inf
  200. MultiBoardAcpiSupportLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/DxeMultiBoardAcpiSupportLib.inf
  201. MultiBoardInitSupportLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/MultiBoardInitSupportLib/DxeMultiBoardInitSupportLib.inf
  202. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/DxeTestPointLib.inf
  203. !if $(TARGET) == DEBUG
  204. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.inf
  205. !endif
  206. #######################################
  207. # Board Package
  208. #######################################
  209. BoardBdsHookLib|BoardModulePkg/Library/BoardBdsHookLib/BoardBdsHookLib.inf
  210. BoardBootManagerLib|BoardModulePkg/Library/BoardBootManagerLib/BoardBootManagerLib.inf
  211. #######################################
  212. # Board-specific
  213. #######################################
  214. SiliconPolicyUpdateLib|$(PROJECT)/Policy/Library/DxeSiliconPolicyUpdateLib/DxeSiliconPolicyUpdateLib.inf
  215. [LibraryClasses.X64.DXE_RUNTIME_DRIVER]
  216. #######################################
  217. # Edk2 Packages
  218. #######################################
  219. !if $(TARGET) == DEBUG
  220. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  221. !endif
  222. #######################################
  223. # Silicon Initialization Package
  224. #######################################
  225. ResetSystemLib|$(PLATFORM_SI_PACKAGE)/Pch/Library/DxeRuntimeResetSystemLib/DxeRuntimeResetSystemLib.inf
  226. [LibraryClasses.common.SMM_CORE]
  227. !if $(TARGET) == DEBUG && gKabylakeOpenBoardPkgTokenSpaceGuid.PcdI2cHdmiDebugPortEnable == TRUE
  228. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  229. SerialPortLib|$(PLATFORM_BOARD_PACKAGE)/Library/I2cHdmiDebugSerialPortLib/SmmI2cHdmiDebugSerialPortLib.inf
  230. !endif
  231. [LibraryClasses.X64.DXE_SMM_DRIVER]
  232. #######################################
  233. # Silicon Initialization Package
  234. #######################################
  235. SpiFlashCommonLib|IntelSiliconPkg/Library/SmmSpiFlashCommonLib/SmmSpiFlashCommonLib.inf
  236. #######################################
  237. # Platform Package
  238. #######################################
  239. BoardAcpiEnableLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/SmmMultiBoardAcpiSupportLib.inf
  240. MultiBoardAcpiSupportLib|$(PLATFORM_PACKAGE)/Acpi/Library/MultiBoardAcpiSupportLib/SmmMultiBoardAcpiSupportLib.inf
  241. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/SmmTestPointLib.inf
  242. !if $(TARGET) == DEBUG
  243. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.inf
  244. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  245. !endif
  246. #######################################
  247. # PEI Components
  248. #######################################
  249. # @todo: Change below line to [Components.$(PEI_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  250. # is completed
  251. [Components.IA32]
  252. #######################################
  253. # Edk2 Packages
  254. #######################################
  255. UefiCpuPkg/SecCore/SecCore.inf {
  256. <LibraryClasses>
  257. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  258. }
  259. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
  260. <LibraryClasses>
  261. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  262. !if $(TARGET) == DEBUG && gKabylakeOpenBoardPkgTokenSpaceGuid.PcdI2cHdmiDebugPortEnable == TRUE
  263. SerialPortLib|$(PLATFORM_BOARD_PACKAGE)/Library/I2cHdmiDebugSerialPortLib/PeiI2cHdmiDebugSerialPortLib.inf
  264. !endif
  265. }
  266. IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf {
  267. <LibraryClasses>
  268. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibDependency/PeiPreMemSiliconPolicyInitLibDependency.inf
  269. }
  270. IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf {
  271. <LibraryClasses>
  272. SiliconPolicyInitLib|$(PLATFORM_SI_PACKAGE)/Library/PeiSiliconPolicyInitLibDependency/PeiPostMemSiliconPolicyInitLibDependency.inf
  273. }
  274. #######################################
  275. # Silicon Initialization Package
  276. #######################################
  277. IntelSiliconPkg/Feature/VTd/IntelVTdPmrPei/IntelVTdPmrPei.inf
  278. IntelSiliconPkg/Feature/VTd/PlatformVTdInfoSamplePei/PlatformVTdInfoSamplePei.inf
  279. #######################################
  280. # Platform Package
  281. #######################################
  282. $(PLATFORM_PACKAGE)/PlatformInit/ReportFv/ReportFvPei.inf
  283. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf {
  284. <LibraryClasses>
  285. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  286. BoardInitLib|$(PROJECT)/Library/BoardInitLib/PeiBoardInitPreMemLib.inf
  287. !else
  288. NULL|$(PROJECT)/Library/BoardInitLib/PeiMultiBoardInitPreMemLib.inf
  289. !endif
  290. }
  291. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitPei/PlatformInitPostMem.inf {
  292. <LibraryClasses>
  293. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  294. BoardInitLib|$(PROJECT)/Library/BoardInitLib/PeiBoardInitPostMemLib.inf
  295. !else
  296. NULL|$(PROJECT)/Library/BoardInitLib/PeiMultiBoardInitPostMemLib.inf
  297. !endif
  298. }
  299. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPreMem.inf {
  300. <LibraryClasses>
  301. #
  302. # Hook a library constructor to update some policy fields when policy is installed.
  303. #
  304. NULL|$(PLATFORM_BOARD_PACKAGE)/FspWrapper/Library/PeiSiliconPolicyNotifyLib/PeiPreMemSiliconPolicyNotifyLib.inf
  305. }
  306. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPostMem.inf
  307. !if gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable == TRUE
  308. $(PLATFORM_PACKAGE)/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf
  309. !endif
  310. #######################################
  311. # Board Package
  312. #######################################
  313. # Thunderbolt
  314. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  315. $(PLATFORM_BOARD_PACKAGE)/Features/Tbt/TbtInit/Pei/PeiTbtInit.inf
  316. !endif
  317. $(PLATFORM_BOARD_PACKAGE)/BiosInfo/BiosInfo.inf
  318. #######################################
  319. # DXE Components
  320. #######################################
  321. # @todo: Change below line to [Components.$(DXE_ARCH)] after https://bugzilla.tianocore.org/show_bug.cgi?id=2308
  322. # is completed
  323. [Components.X64]
  324. #######################################
  325. # Edk2 Packages
  326. #######################################
  327. !if $(TARGET) == DEBUG
  328. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf {
  329. <LibraryClasses>
  330. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  331. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdI2cHdmiDebugPortEnable == TRUE
  332. SerialPortLib|$(PLATFORM_BOARD_PACKAGE)/Library/I2cHdmiDebugSerialPortLib/DxeI2cHdmiDebugSerialPortLib.inf
  333. !endif
  334. }
  335. MdeModulePkg/Universal/ReportStatusCodeRouter/Smm/ReportStatusCodeRouterSmm.inf {
  336. <LibraryClasses>
  337. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  338. }
  339. MdeModulePkg/Universal/StatusCodeHandler/Smm/StatusCodeHandlerSmm.inf {
  340. <LibraryClasses>
  341. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  342. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdI2cHdmiDebugPortEnable == TRUE
  343. SerialPortLib|$(PLATFORM_BOARD_PACKAGE)/Library/I2cHdmiDebugSerialPortLib/SmmI2cHdmiDebugSerialPortLib.inf
  344. !endif
  345. }
  346. !endif
  347. IntelFsp2WrapperPkg/FspWrapperNotifyDxe/FspWrapperNotifyDxe.inf
  348. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  349. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  350. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  351. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  352. MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
  353. MdeModulePkg/Universal/Console/GraphicsOutputDxe/GraphicsOutputDxe.inf
  354. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  355. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  356. <LibraryClasses>
  357. NULL|BoardModulePkg/Library/BdsPs2KbcLib/BdsPs2KbcLib.inf
  358. !if gMinPlatformPkgTokenSpaceGuid.PcdSerialTerminalEnable == TRUE
  359. NULL|MinPlatformPkg/Library/SerialPortTerminalLib/SerialPortTerminalLib.inf
  360. !endif
  361. }
  362. UefiCpuPkg/CpuDxe/CpuDxe.inf
  363. ShellPkg/Application/Shell/Shell.inf {
  364. <PcdsFixedAtBuild>
  365. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  366. <LibraryClasses>
  367. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  368. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  369. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  370. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  371. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  372. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  373. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  374. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  375. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  376. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  377. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  378. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  379. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  380. }
  381. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  382. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
  383. <PcdsPatchableInModule>
  384. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80080046
  385. <LibraryClasses>
  386. !if $(TARGET) == DEBUG
  387. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  388. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdI2cHdmiDebugPortEnable == TRUE
  389. SerialPortLib|$(PLATFORM_BOARD_PACKAGE)/Library/I2cHdmiDebugSerialPortLib/SmmI2cHdmiDebugSerialPortLib.inf
  390. !endif
  391. !endif
  392. }
  393. !endif
  394. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdI2cHdmiDebugPortSerialTerminalEnable == TRUE
  395. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf {
  396. <LibraryClasses>
  397. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  398. SerialPortLib|$(PLATFORM_BOARD_PACKAGE)/Library/I2cHdmiDebugSerialPortLib/DxeI2cHdmiDebugSerialPortLib.inf
  399. }
  400. !endif
  401. #######################################
  402. # Silicon Initialization Package
  403. #######################################
  404. IntelSiliconPkg/Feature/VTd/IntelVTdDxe/IntelVTdDxe.inf
  405. $(PLATFORM_SI_BIN_PACKAGE)/Microcode/MicrocodeUpdates.inf
  406. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  407. IntelSiliconPkg/Feature/Flash/SpiFvbService/SpiFvbServiceSmm.inf
  408. !endif
  409. #######################################
  410. # Platform Package
  411. #######################################
  412. $(PLATFORM_PACKAGE)/FspWrapper/SaveMemoryConfig/SaveMemoryConfig.inf
  413. $(PLATFORM_PACKAGE)/Hsti/HstiIbvPlatformDxe/HstiIbvPlatformDxe.inf
  414. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitDxe/PlatformInitDxe.inf
  415. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyDxe/SiliconPolicyDxe.inf
  416. $(PLATFORM_PACKAGE)/Test/TestPointDumpApp/TestPointDumpApp.inf
  417. $(PLATFORM_PACKAGE)/Test/TestPointStubDxe/TestPointStubDxe.inf
  418. !if gMinPlatformPkgTokenSpaceGuid.PcdTpm2Enable == TRUE
  419. $(PLATFORM_PACKAGE)/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf
  420. !endif
  421. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  422. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitSmm/PlatformInitSmm.inf
  423. $(PLATFORM_PACKAGE)/Acpi/AcpiSmm/AcpiSmm.inf {
  424. <LibraryClasses>
  425. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  426. BoardAcpiEnableLib|$(PROJECT)/Library/BoardAcpiLib/SmmBoardAcpiEnableLib.inf
  427. !else
  428. NULL|$(PROJECT)/Library/BoardAcpiLib/SmmMultiBoardAcpiSupportLib.inf
  429. !endif
  430. }
  431. $(PLATFORM_PACKAGE)/Acpi/AcpiTables/AcpiPlatform.inf {
  432. <LibraryClasses>
  433. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  434. BoardAcpiTableLib|$(PROJECT)/Library/BoardAcpiLib/DxeBoardAcpiTableLib.inf
  435. !else
  436. NULL|$(PROJECT)/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
  437. !endif
  438. }
  439. !if gS3FeaturePkgTokenSpaceGuid.PcdS3FeatureEnable == TRUE
  440. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf {
  441. <LibraryClasses>
  442. # On S3 resume, RSC is in end-of-BS state
  443. # - Moreover: Libraries cannot effectively use some end-of-BS events
  444. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  445. SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
  446. # Reverse-ranked priority list
  447. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdI2cHdmiDebugPortEnable == TRUE
  448. SerialPortLib|$(PLATFORM_BOARD_PACKAGE)/Library/I2cHdmiDebugSerialPortLib/BootScriptExecutorDxeI2cHdmiDebugSerialPortLib.inf
  449. !endif
  450. }
  451. !endif
  452. !endif
  453. #######################################
  454. # Board Package
  455. #######################################
  456. # Thunderbolt
  457. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdTbtEnable == TRUE
  458. $(PLATFORM_BOARD_PACKAGE)/Features/Tbt/TbtInit/Smm/TbtSmm.inf
  459. $(PLATFORM_BOARD_PACKAGE)/Features/Tbt/TbtInit/Dxe/TbtDxe.inf
  460. $(PLATFORM_BOARD_PACKAGE)/Features/PciHotPlug/PciHotPlug.inf
  461. !endif
  462. !if gMinPlatformPkgTokenSpaceGuid.PcdBootToShellOnly == FALSE
  463. $(PLATFORM_BOARD_PACKAGE)/Acpi/BoardAcpiDxe/BoardAcpiDxe.inf {
  464. <LibraryClasses>
  465. !if gKabylakeOpenBoardPkgTokenSpaceGuid.PcdMultiBoardSupport == FALSE
  466. BoardAcpiTableLib|$(PROJECT)/Library/BoardAcpiLib/DxeBoardAcpiTableLib.inf
  467. !else
  468. NULL|$(PROJECT)/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
  469. !endif
  470. }
  471. !endif
  472. BoardModulePkg/LegacySioDxe/LegacySioDxe.inf
  473. BoardModulePkg/BoardBdsHookDxe/BoardBdsHookDxe.inf