OpenBoardPkg.dsc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. ## @file
  2. # The main build description file for the TiogaPass board.
  3. #
  4. # Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
  5. # Copyright (c) 2021, American Megatrends International LLC.<BR>
  6. # SPDX-License-Identifier: BSD-2-Clause-Patent
  7. #
  8. ##
  9. ################################################################################
  10. #
  11. # Defines Section - statements that will be processed to create a Makefile.
  12. #
  13. ################################################################################
  14. [Defines]
  15. DEFINE PLATFORM_PACKAGE = MinPlatformPkg
  16. DEFINE PLATFORM_SI_PACKAGE = PurleyRefreshSiliconPkg
  17. DEFINE PLATFORM_SI_BIN_PACKAGE = PurleySiliconBinPkg
  18. DEFINE PLATFORM_BOARD_PACKAGE = PurleyOpenBoardPkg
  19. DEFINE BOARD = BoardTiogaPass
  20. DEFINE PROJECT = $(PLATFORM_BOARD_PACKAGE)/$(BOARD)
  21. DEFINE PEI_ARCH = IA32
  22. DEFINE DXE_ARCH = X64
  23. PLATFORM_NAME = PurleyOpenBoardPkg
  24. PLATFORM_GUID = D7EAF54D-C9B9-4075-89F0-71943DBCFA61
  25. PLATFORM_VERSION = 0.1
  26. DSC_SPECIFICATION = 0x00010005
  27. OUTPUT_DIRECTORY = Build/$(PROJECT)
  28. SUPPORTED_ARCHITECTURES = IA32|X64
  29. BUILD_TARGETS = DEBUG|RELEASE
  30. SKUID_IDENTIFIER = DEFAULT
  31. FLASH_DEFINITION = $(PROJECT)/OpenBoardPkg.fdf
  32. FIX_LOAD_TOP_MEMORY_ADDRESS = 0x0
  33. DEFINE NETWORK_ISCSI_ENABLE = TRUE
  34. #
  35. # Platform On/Off features are defined here
  36. #
  37. !include $(PROJECT)/PlatformPkgConfig.dsc
  38. #
  39. # Include PCD configuration for this board.
  40. #
  41. !include AdvancedFeaturePkg/Include/AdvancedFeaturesPcd.dsc
  42. !include PlatformPkgPcd.dsc
  43. !include AdvancedFeaturePkg/Include/AdvancedFeatures.dsc
  44. ################################################################################
  45. #
  46. # SKU Identification section - list of all SKU IDs supported by this
  47. # Platform.
  48. #
  49. ################################################################################
  50. [SkuIds]
  51. 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required.
  52. [DefaultStores]
  53. 0|STANDARD # UEFI Standard default 0|STANDARD is reserved.
  54. 1|MANUFACTURING # UEFI Manufacturing default 1|MANUFACTURING is reserved.
  55. ################################################################################
  56. #
  57. # Includes section - other DSC file contents included for this board build.
  58. #
  59. ################################################################################
  60. #######################################
  61. # Library Includes
  62. #######################################
  63. !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreCommonLib.dsc
  64. !include $(PLATFORM_PACKAGE)/Include/Dsc/CorePeiLib.dsc
  65. !include $(PLATFORM_PACKAGE)/Include/Dsc/CoreDxeLib.dsc
  66. !include $(PLATFORM_SI_PACKAGE)/SiPkgCommonLib.dsc
  67. !include $(PLATFORM_SI_PACKAGE)/SiPkgPeiLib.dsc
  68. !include $(PLATFORM_SI_PACKAGE)/SiPkgDxeLib.dsc
  69. #######################################
  70. # Component Includes
  71. #######################################
  72. [Components.$(PEI_ARCH)]
  73. !include $(PLATFORM_PACKAGE)/Include/Dsc/CorePeiInclude.dsc
  74. [Components.$(DXE_ARCH)]
  75. #TiogaPass Override START : Added Board Specific changes in core drivers
  76. #!include $(PLATFORM_PACKAGE)/Include/Dsc/CoreDxeInclude.dsc
  77. !include CoreDxeInclude.dsc
  78. #TiogaPass Override END
  79. #######################################
  80. # Build Option Includes
  81. #######################################
  82. !include $(PROJECT)/PlatformPkgBuildOption.dsc
  83. ################################################################################
  84. #
  85. # Library Class section - list of all Library Classes needed by this Platform.
  86. #
  87. ################################################################################
  88. [LibraryClasses.common]
  89. !if gPlatformTokenSpaceGuid.PcdLinuxBootEnable == TRUE
  90. LinuxBootLib|$(PLATFORM_BOARD_PACKAGE)/Features/LinuxBoot/LinuxBoot.inf
  91. LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
  92. !else
  93. LinuxBootLib|$(PLATFORM_BOARD_PACKAGE)/Features/LinuxBoot/LinuxBootNull.inf
  94. !endif
  95. !if gPlatformTokenSpaceGuid.PcdFastBoot == FALSE
  96. PlatformBootManagerLib|$(PLATFORM_PACKAGE)/Bds/Library/DxePlatformBootManagerLib/DxePlatformBootManagerLib.inf
  97. !else
  98. PlatformBootManagerLib|$(PLATFORM_BOARD_PACKAGE)/Override/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/DxePlatformBootManagerLib.inf
  99. !endif
  100. ReportFvLib|$(PROJECT)/Library/PeiReportFvLib/PeiReportFvLib.inf
  101. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLibNull/TestPointCheckLibNull.inf
  102. CompressLib|$(PLATFORM_PACKAGE)/Library/CompressLib/CompressLib.inf
  103. PciSegmentInfoLib|$(PLATFORM_PACKAGE)/Pci/Library/PciSegmentInfoLibSimple/PciSegmentInfoLibSimple.inf
  104. AslUpdateLib|$(PLATFORM_PACKAGE)/Acpi/Library/DxeAslUpdateLib/DxeAslUpdateLib.inf
  105. #
  106. # Board
  107. #
  108. SiliconPolicyInitLib|$(PLATFORM_BOARD_PACKAGE)/Policy/Library/SiliconPolicyInitLib/SiliconPolicyInitLib.inf
  109. SiliconPolicyUpdateLib|$(PLATFORM_BOARD_PACKAGE)/Policy/Library/SiliconPolicyUpdateLib/SiliconPolicyUpdateLib.inf
  110. PlatformHookLib|$(PROJECT)/Library/BasePlatformHookLib/BasePlatformHookLib.inf
  111. BoardInitLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/BoardInitLibNull/BoardInitLibNull.inf
  112. !if gIpmiFeaturePkgTokenSpaceGuid.PcdIpmiFeatureEnable == TRUE
  113. IpmiPlatformHookLib|$(PLATFORM_BOARD_PACKAGE)/Features/Ipmi/Library/IpmiPlatformHookLib/IpmiPlatformHookLib.inf
  114. !endif
  115. [LibraryClasses.IA32]
  116. !if $(TARGET) == DEBUG
  117. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/PeiTestPointCheckLib.inf
  118. !endif
  119. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/PeiTestPointLib.inf
  120. SetCacheMtrrLib|$(PLATFORM_PACKAGE)/Library/SetCacheMtrrLib/SetCacheMtrrLib.inf
  121. ReportCpuHobLib|$(PLATFORM_PACKAGE)/PlatformInit/Library/ReportCpuHobLib/ReportCpuHobLib.inf
  122. !if gIpmiFeaturePkgTokenSpaceGuid.PcdIpmiFeatureEnable == TRUE
  123. IpmiBaseLib|OutOfBandManagement/IpmiFeaturePkg/Library/PeiIpmiBaseLib/PeiIpmiBaseLib.inf
  124. !endif
  125. [LibraryClasses.X64]
  126. BoardAcpiTableLib|$(PROJECT)/Library/BoardAcpiLib/DxeBoardAcpiTableLib.inf
  127. !if $(TARGET) == DEBUG
  128. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/DxeTestPointCheckLib.inf
  129. !endif
  130. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/DxeTestPointLib.inf
  131. BoardBootManagerLib|$(PLATFORM_PACKAGE)/Bds/Library/BoardBootManagerLibNull/BoardBootManagerLibNull.inf
  132. BoardBdsHookLib|BoardModulePkg/Library/BoardBdsHookLib/BoardBdsHookLib.inf
  133. !if gIpmiFeaturePkgTokenSpaceGuid.PcdIpmiFeatureEnable == TRUE
  134. IpmiBaseLib|OutOfBandManagement/IpmiFeaturePkg/Library/IpmiBaseLib/IpmiBaseLib.inf
  135. !endif
  136. [LibraryClasses.X64.DXE_SMM_DRIVER]
  137. !if $(TARGET) == DEBUG
  138. TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/SmmTestPointCheckLib.inf
  139. !endif
  140. TestPointLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointLib/SmmTestPointLib.inf
  141. !if gIpmiFeaturePkgTokenSpaceGuid.PcdIpmiFeatureEnable == TRUE
  142. IpmiBaseLib|OutOfBandManagement/IpmiFeaturePkg/Library/SmmIpmiBaseLib/SmmIpmiBaseLib.inf
  143. !endif
  144. [Components.IA32]
  145. $(PLATFORM_SI_BIN_PACKAGE)/FV/FvTempMemorySilicon/$(TARGET)/FvTempMemorySilicon.inf
  146. $(PLATFORM_SI_BIN_PACKAGE)/FV/FvPreMemorySilicon/$(TARGET)/FvPreMemorySilicon.inf
  147. $(PLATFORM_SI_BIN_PACKAGE)/FV/FvPostMemorySilicon/$(TARGET)/FvPostMemorySilicon.inf
  148. $(PLATFORM_BOARD_PACKAGE)/Policy/SystemBoard/SystemBoardPei.inf
  149. $(PLATFORM_PACKAGE)/PlatformInit/ReportFv/ReportFvPei.inf
  150. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf {
  151. <LibraryClasses>
  152. BoardInitLib|$(PROJECT)/Library/BoardInitLib/PeiBoardInitPreMemLib.inf
  153. }
  154. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitPei/PlatformInitPostMem.inf {
  155. <LibraryClasses>
  156. BoardInitLib|$(PROJECT)/Library/BoardInitLib/PeiBoardInitPostMemLib.inf
  157. }
  158. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPreMem.inf
  159. $(PLATFORM_PACKAGE)/PlatformInit/SiliconPolicyPei/SiliconPolicyPeiPostMem.inf
  160. [Components.X64]
  161. $(PLATFORM_SI_BIN_PACKAGE)/FV/FvLateSilicon/$(TARGET)/FvLateSilicon.inf
  162. $(PLATFORM_SI_BIN_PACKAGE)/Microcode/Microcode.inf
  163. $(PLATFORM_BOARD_PACKAGE)/Policy/IioUdsDataDxe/IioUdsDataDxe.inf
  164. $(PLATFORM_BOARD_PACKAGE)/Policy/PlatformCpuPolicy/PlatformCpuPolicy.inf
  165. $(PLATFORM_BOARD_PACKAGE)/Pci/PciPlatform/PciPlatform.inf
  166. $(PLATFORM_BOARD_PACKAGE)/Acpi/BoardAcpiDxe/BoardAcpiDxe.inf {
  167. <BuildOptions>
  168. MSFT:*_*_*_ASLCC_FLAGS = /D PURLEY_FLAG /D PCH_SPT
  169. GCC:*_*_*_ASLCC_FLAGS = -D PURLEY_FLAG -D PCH_SPT
  170. }
  171. # This is for prebuild only. No need to include in final FDF.
  172. $(PLATFORM_BOARD_PACKAGE)/Acpi/BoardAcpiDxe/Dsdt.inf {
  173. <BuildOptions>
  174. MSFT:*_*_*_ASLCC_FLAGS = /D PURLEY_FLAG /D PCH_SPT
  175. GCC:*_*_*_ASLCC_FLAGS = -D PURLEY_FLAG -D PCH_SPT
  176. }
  177. $(PLATFORM_PACKAGE)/Flash/SpiFvbService/SpiFvbServiceSmm.inf
  178. $(PLATFORM_PACKAGE)/Acpi/AcpiTables/AcpiPlatform.inf
  179. $(PLATFORM_PACKAGE)/Acpi/AcpiSmm/AcpiSmm.inf {
  180. <LibraryClasses>
  181. BoardAcpiEnableLib|$(PROJECT)/Library/BoardAcpiLib/SmmBoardAcpiEnableLib.inf
  182. }
  183. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitDxe/PlatformInitDxe.inf
  184. $(PLATFORM_PACKAGE)/PlatformInit/PlatformInitSmm/PlatformInitSmm.inf
  185. $(PLATFORM_BOARD_PACKAGE)/Policy/S3NvramSave/S3NvramSave.inf
  186. BoardModulePkg/BoardBdsHookDxe/BoardBdsHookDxe.inf
  187. #
  188. # Shell
  189. #
  190. ShellPkg/Application/Shell/Shell.inf {
  191. <PcdsFixedAtBuild>
  192. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  193. <LibraryClasses>
  194. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  195. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  196. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  197. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  198. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  199. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  200. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  201. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  202. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  203. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  204. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  205. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  206. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  207. }
  208. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  209. !if gSmbiosFeaturePkgTokenSpaceGuid.PcdSmbiosFeatureEnable == TRUE
  210. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  211. !endif