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