CorebootPayloadPkgIa32X64.dsc 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. ## @file
  2. # Coreboot Payload Package
  3. #
  4. # Provides drivers and definitions to create uefi payload for coreboot.
  5. #
  6. # Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>
  7. # This program and the accompanying materials are licensed and made available under
  8. # the terms and conditions of the BSD License that accompanies this distribution.
  9. # The full text of the license may be found at
  10. # http://opensource.org/licenses/bsd-license.php.
  11. #
  12. # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  14. #
  15. ##
  16. ################################################################################
  17. #
  18. # Defines Section - statements that will be processed to create a Makefile.
  19. #
  20. ################################################################################
  21. [Defines]
  22. PLATFORM_NAME = CorebootPayloadPkg
  23. PLATFORM_GUID = F71608AB-D63D-4491-B744-A99998C8CD96
  24. PLATFORM_VERSION = 0.1
  25. DSC_SPECIFICATION = 0x00010005
  26. SUPPORTED_ARCHITECTURES = IA32|X64
  27. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  28. SKUID_IDENTIFIER = DEFAULT
  29. OUTPUT_DIRECTORY = Build/CorebootPayloadPkgX64
  30. FLASH_DEFINITION = CorebootPayloadPkg/CorebootPayloadPkg.fdf
  31. DEFINE SECURE_BOOT_ENABLE = FALSE
  32. DEFINE SOURCE_DEBUG_ENABLE = FALSE
  33. #
  34. # CPU options
  35. #
  36. DEFINE MAX_LOGICAL_PROCESSORS = 64
  37. #
  38. # PCI options
  39. #
  40. DEFINE PCIE_BASE = 0xE0000000
  41. #
  42. # Serial port set up
  43. #
  44. DEFINE BAUD_RATE = 115200
  45. DEFINE SERIAL_CLOCK_RATE = 1843200
  46. DEFINE SERIAL_LINE_CONTROL = 3 # 8-bits, no parity
  47. DEFINE SERIAL_HARDWARE_FLOW_CONTROL = FALSE
  48. DEFINE SERIAL_DETECT_CABLE = FALSE
  49. DEFINE SERIAL_FIFO_CONTROL = 7 # Enable FIFO
  50. DEFINE SERIAL_EXTENDED_TX_FIFO_SIZE = 16
  51. DEFINE UART_DEFAULT_BAUD_RATE = $(BAUD_RATE)
  52. DEFINE UART_DEFAULT_DATA_BITS = 8
  53. DEFINE UART_DEFAULT_PARITY = 1
  54. DEFINE UART_DEFAULT_STOP_BITS = 1
  55. DEFINE DEFAULT_TERMINAL_TYPE = 0
  56. #
  57. # typedef struct {
  58. # UINT16 VendorId; ///< Vendor ID to match the PCI device. The value 0xFFFF terminates the list of entries.
  59. # UINT16 DeviceId; ///< Device ID to match the PCI device
  60. # UINT32 ClockRate; ///< UART clock rate. Set to 0 for default clock rate of 1843200 Hz
  61. # UINT64 Offset; ///< The byte offset into to the BAR
  62. # UINT8 BarIndex; ///< Which BAR to get the UART base address
  63. # UINT8 RegisterStride; ///< UART register stride in bytes. Set to 0 for default register stride of 1 byte.
  64. # UINT16 ReceiveFifoDepth; ///< UART receive FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.
  65. # UINT16 TransmitFifoDepth; ///< UART transmit FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.
  66. # UINT8 Reserved[2];
  67. # } PCI_SERIAL_PARAMETER;
  68. #
  69. # Vendor FFFF Device 0000 Prog Interface 1, BAR #0, Offset 0, Stride = 1, Clock 1843200 (0x1c2000)
  70. #
  71. # [Vendor] [Device] [----ClockRate---] [------------Offset-----------] [Bar] [Stride] [RxFifo] [TxFifo] [Rsvd] [Vendor]
  72. DEFINE PCI_SERIAL_PARAMETERS = {0xff,0xff, 0x00,0x00, 0x0,0x20,0x1c,0x00, 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 0x00, 0x01, 0x0,0x0, 0x0,0x0, 0x0,0x0, 0xff,0xff}
  73. #
  74. # Chipset options
  75. #
  76. DEFINE USE_HPET_TIMER = FALSE
  77. #
  78. # Shell options: [BUILD_SHELL, MIN_BIN, NONE, UEFI]
  79. #
  80. DEFINE SHELL_TYPE = UEFI_BIN
  81. [BuildOptions]
  82. *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
  83. GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
  84. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  85. INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  86. MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  87. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  88. MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
  89. ################################################################################
  90. #
  91. # SKU Identification section - list of all SKU IDs supported by this Platform.
  92. #
  93. ################################################################################
  94. [SkuIds]
  95. 0|DEFAULT
  96. ################################################################################
  97. #
  98. # Library Class section - list of all Library Classes needed by this Platform.
  99. #
  100. ################################################################################
  101. [LibraryClasses]
  102. #
  103. # Entry point
  104. #
  105. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  106. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  107. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  108. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  109. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  110. #
  111. # Basic
  112. #
  113. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  114. BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
  115. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  116. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  117. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  118. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  119. !if $(PCIE_BASE) == 0
  120. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  121. PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  122. !else
  123. PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
  124. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  125. !endif
  126. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  127. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  128. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  129. CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  130. #
  131. # UEFI & PI
  132. #
  133. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  134. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  135. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  136. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  137. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  138. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  139. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  140. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  141. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  142. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  143. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  144. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  145. UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
  146. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  147. #
  148. # Generic Modules
  149. #
  150. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  151. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  152. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  153. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  154. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  155. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  156. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  157. #
  158. # CPU
  159. #
  160. MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
  161. LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
  162. #
  163. # Platform
  164. #
  165. TimerLib|CorebootPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
  166. ResetSystemLib|CorebootPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf
  167. SerialPortLib|CorebootModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
  168. PlatformHookLib|CorebootPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf
  169. PlatformBootManagerLib|CorebootPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  170. IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
  171. CbPlatformSupportLib|CorebootModulePkg/Library/CbPlatformSupportLibNull/CbPlatformSupportLibNull.inf
  172. #
  173. # Misc
  174. #
  175. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  176. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  177. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  178. PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
  179. DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
  180. !else
  181. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  182. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  183. !endif
  184. CbParseLib|CorebootModulePkg/Library/CbParseLib/CbParseLib.inf
  185. DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
  186. LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
  187. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  188. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  189. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  190. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  191. [LibraryClasses.IA32.SEC]
  192. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  193. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  194. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  195. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  196. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  197. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  198. [LibraryClasses.IA32.PEI_CORE, LibraryClasses.IA32.PEIM]
  199. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  200. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  201. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  202. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  203. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  204. !if $(SOURCE_DEBUG_ENABLE)
  205. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  206. !endif
  207. [LibraryClasses.common.DXE_CORE]
  208. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  209. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  210. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  211. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  212. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  213. !if $(SOURCE_DEBUG_ENABLE)
  214. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  215. !endif
  216. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  217. [LibraryClasses.common.DXE_DRIVER]
  218. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  219. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  220. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  221. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  222. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  223. !if $(SOURCE_DEBUG_ENABLE)
  224. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  225. !endif
  226. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  227. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  228. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  229. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  230. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  231. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  232. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  233. [LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]
  234. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  235. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  236. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  237. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  238. ################################################################################
  239. #
  240. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  241. #
  242. ################################################################################
  243. [PcdsFeatureFlag]
  244. !if $(TARGET) == DEBUG
  245. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
  246. !else
  247. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
  248. !endif
  249. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
  250. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
  251. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  252. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  253. [PcdsFixedAtBuild]
  254. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000
  255. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
  256. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000
  257. #
  258. # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
  259. #
  260. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
  261. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  262. gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
  263. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  264. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|$(PCIE_BASE)
  265. !if $(SOURCE_DEBUG_ENABLE)
  266. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  267. !endif
  268. [PcdsPatchableInModule.common]
  269. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7
  270. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  271. !if $(SOURCE_DEBUG_ENABLE)
  272. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  273. !else
  274. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  275. !endif
  276. #
  277. # The following parameters are set by Library/PlatformHookLib
  278. #
  279. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
  280. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x3f8
  281. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|$(BAUD_RATE)
  282. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|1
  283. #
  284. # Enable these parameters to be set on the command line
  285. #
  286. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|$(SERIAL_CLOCK_RATE)
  287. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|$(SERIAL_LINE_CONTROL)
  288. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|$(SERIAL_HARDWARE_FLOW_CONTROL)
  289. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|$(SERIAL_DETECT_CABLE)
  290. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|$(SERIAL_FIFO_CONTROL)
  291. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialExtendedTxFifoSize|$(SERIAL_EXTENDED_TX_FIFO_SIZE)
  292. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
  293. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|$(UART_DEFAULT_BAUD_RATE)
  294. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|$(UART_DEFAULT_DATA_BITS)
  295. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|$(UART_DEFAULT_PARITY)
  296. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|$(UART_DEFAULT_STOP_BITS)
  297. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|$(DEFAULT_TERMINAL_TYPE)
  298. gEfiMdeModulePkgTokenSpaceGuid.PcdPciSerialParameters|$(PCI_SERIAL_PARAMETERS)
  299. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|$(MAX_LOGICAL_PROCESSORS)
  300. #
  301. # Set the proper Shell file GUID
  302. #
  303. # 7C04A583-9E3E-4f1c-AD65-E05268D0B4D1
  304. gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1c, 0x4f, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
  305. ################################################################################
  306. #
  307. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  308. #
  309. ################################################################################
  310. [PcdsDynamicDefault]
  311. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  312. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  313. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  314. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  315. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
  316. ## This PCD defines the video horizontal resolution.
  317. # This PCD could be set to 0 then video resolution could be at highest resolution.
  318. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
  319. ## This PCD defines the video vertical resolution.
  320. # This PCD could be set to 0 then video resolution could be at highest resolution.
  321. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
  322. ## The PCD is used to specify the video horizontal resolution of text setup.
  323. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|0
  324. ## The PCD is used to specify the video vertical resolution of text setup.
  325. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|0
  326. ################################################################################
  327. #
  328. # Components Section - list of all EDK II Modules needed by this Platform.
  329. #
  330. ################################################################################
  331. [Components.IA32]
  332. #
  333. # SEC Core
  334. #
  335. CorebootModulePkg/SecCore/SecCore.inf
  336. #
  337. # PEI Core
  338. #
  339. MdeModulePkg/Core/Pei/PeiMain.inf
  340. #
  341. # PEIM
  342. #
  343. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  344. <LibraryClasses>
  345. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  346. }
  347. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
  348. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
  349. CorebootModulePkg/CbSupportPei/CbSupportPei.inf
  350. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
  351. [Components.X64]
  352. #
  353. # DXE Core
  354. #
  355. MdeModulePkg/Core/Dxe/DxeMain.inf {
  356. <LibraryClasses>
  357. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  358. }
  359. #
  360. # Components that produce the architectural protocols
  361. #
  362. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  363. UefiCpuPkg/CpuDxe/CpuDxe.inf
  364. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  365. MdeModulePkg/Application/UiApp/UiApp.inf {
  366. <LibraryClasses>
  367. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  368. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  369. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  370. }
  371. !if $(USE_HPET_TIMER) == TRUE
  372. PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
  373. !else
  374. PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
  375. !endif
  376. MdeModulePkg/Universal/Metronome/Metronome.inf
  377. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  378. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  379. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  380. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  381. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  382. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  383. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
  384. #
  385. # Following are the DXE drivers
  386. #
  387. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  388. <LibraryClasses>
  389. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  390. }
  391. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  392. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  393. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  394. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
  395. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  396. PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
  397. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  398. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  399. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  400. CorebootModulePkg/CbSupportDxe/CbSupportDxe.inf
  401. #
  402. # SMBIOS Support
  403. #
  404. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  405. #
  406. # ACPI Support
  407. #
  408. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  409. #
  410. # PCI Support
  411. #
  412. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
  413. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  414. <LibraryClasses>
  415. PciHostBridgeLib|CorebootPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  416. }
  417. #
  418. # SCSI/ATA/IDE/DISK Support
  419. #
  420. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  421. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  422. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  423. FatPkg/EnhancedFatDxe/Fat.inf
  424. CorebootModulePkg/SataControllerDxe/SataControllerDxe.inf
  425. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  426. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  427. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  428. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  429. #
  430. # SD/eMMC Support
  431. #
  432. MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
  433. MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
  434. MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
  435. #
  436. # Usb Support
  437. #
  438. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  439. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  440. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  441. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  442. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  443. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  444. #
  445. # OHCI support
  446. #
  447. QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/OhciDxe.inf
  448. #
  449. # ISA Support
  450. #
  451. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  452. #
  453. # Console Support
  454. #
  455. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  456. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  457. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  458. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  459. #
  460. # Framebuffer Gop
  461. #
  462. CorebootPayloadPkg/FbGop/FbGop.inf
  463. #------------------------------
  464. # Build the shell
  465. #------------------------------
  466. !if $(SHELL_TYPE) == BUILD_SHELL
  467. #
  468. # Shell Lib
  469. #
  470. [LibraryClasses]
  471. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  472. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  473. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  474. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  475. NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
  476. [Components.X64]
  477. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  478. <PcdsFixedAtBuild>
  479. ## This flag is used to control initialization of the shell library
  480. # This should be FALSE for compiling the dynamic command.
  481. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  482. }
  483. ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {
  484. <PcdsFixedAtBuild>
  485. ## This flag is used to control initialization of the shell library
  486. # This should be FALSE for compiling the dynamic command.
  487. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  488. }
  489. ShellPkg/Application/Shell/Shell.inf {
  490. <PcdsFixedAtBuild>
  491. ## This flag is used to control initialization of the shell library
  492. # This should be FALSE for compiling the shell application itself only.
  493. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  494. #------------------------------
  495. # Basic commands
  496. #------------------------------
  497. <LibraryClasses>
  498. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  499. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  500. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  501. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  502. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  503. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  504. #------------------------------
  505. # Networking commands
  506. #------------------------------
  507. <LibraryClasses>
  508. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  509. #------------------------------
  510. # Support libraries
  511. #------------------------------
  512. <LibraryClasses>
  513. DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
  514. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  515. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  516. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  517. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  518. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  519. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  520. }
  521. !endif