VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/EmbeddedPkg/EmbeddedPkg.dsc

Last change on this file was 108794, checked in by vboxsync, 4 weeks ago

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

  • Property svn:eol-style set to native
File size: 10.7 KB
Line 
1#/** @file
2# Embedded Package
3#
4#
5# Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>
6# Copyright (c) 2012-2015, ARM Ltd. All rights reserved.<BR>
7# Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
8#
9# SPDX-License-Identifier: BSD-2-Clause-Patent
10#
11#**/
12
13################################################################################
14#
15# Defines Section - statements that will be processed to create a Makefile.
16#
17################################################################################
18[Defines]
19 PLATFORM_NAME = Embedded
20 PLATFORM_GUID = 8DBB580B-CF89-4D57-95C6-DFE96C44686E
21 PLATFORM_VERSION = 0.1
22 DSC_SPECIFICATION = 0x00010005
23 OUTPUT_DIRECTORY = Build/Embedded
24 SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64
25 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
26 SKUID_IDENTIFIER = DEFAULT
27
28
29################################################################################
30#
31# SKU Identification section - list of all SKU IDs supported by this
32# Platform.
33#
34################################################################################
35[SkuIds]
36 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required.
37
38################################################################################
39#
40# Library Class section - list of all Library Classes needed by this Platform.
41#
42################################################################################
43
44!include MdePkg/MdeLibs.dsc.inc
45
46[LibraryClasses.common]
47# DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
48 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
49
50
51 AndroidBootImgLib|EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.inf
52 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
53 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
54 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
55 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
56 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
57 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
58
59 ReportStatusCodeLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
60
61 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
62 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
63 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
64 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
65 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
66
67 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
68 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
69 GdbSerialLib|EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
70
71
72 #
73 # Need to change this for IPF
74 #
75 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
76
77 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
78 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
79 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
80 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
81 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
82 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
83 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
84 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
85
86 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
87 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
88 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
89
90 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
91
92 AcpiLib|EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
93 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
94
95 # Shell libraries
96 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
97 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
98 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
99
100 # Networking Requirements
101 !include NetworkPkg/NetworkLibs.dsc.inc
102 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
103 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
104
105 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
106 DtPlatformDtbLoaderLib|EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
107
108 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
109
110[LibraryClasses.common.DXE_DRIVER]
111 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
112 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
113
114
115[LibraryClasses.common.UEFI_APPLICATION]
116 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
117 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
118
119[LibraryClasses.common.UEFI_DRIVER]
120 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
121 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
122
123[LibraryClasses.common.SEC]
124 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
125
126[LibraryClasses.ARM, LibraryClasses.AARCH64]
127 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
128 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
129
130 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
131
132################################################################################
133#
134# Pcd Section - list of all PCD Entries defined by this Platform
135#
136################################################################################
137
138[PcdsFeatureFlag.common]
139 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
140 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
141 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE
142 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|FALSE
143
144 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|FALSE
145
146
147[PcdsFixedAtBuild.common]
148 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
149 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
150 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
151 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
152 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
153 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
154 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
155 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
156 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
157 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
158 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
159 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
160 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
161 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
162 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
163 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
164
165 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0
166 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0
167
168#
169# Optional feature to help prevent EFI memory map fragments
170# Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
171# Values are in EFI Pages (4K). DXE Core will make sure that
172# at least this much of each type of memory can be allocated
173# from a single memory range. This way you only end up with
174# maximum of two fragments for each type in the memory map
175# (the memory used, and the free memory that was prereserved
176# but not used).
177#
178 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
179 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
180 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
181 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0
182 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0
183 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|0
184 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|0
185 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|0
186 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
187
188#
189# Timer config for this platform
190#
191 gEmbeddedTokenSpaceGuid.PcdTimerBaseAddress|0x3c700000
192 gEmbeddedTokenSpaceGuid.PcdTimerVector|7
193 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
194
195[BuildOptions]
196 RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
197 *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
198
199################################################################################
200#
201# Components Section - list of all Modules needed by this Platform
202#
203################################################################################
204[Components.common]
205 EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.inf
206 EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
207 EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
208 EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
209 EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
210 EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf
211 EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf
212 EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
213 EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf
214
215 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
216 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
217 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
218 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf {
219 <LibraryClasses>
220 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
221 }
222
223 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
224
225 EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
226 EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
227 EmbeddedPkg/Library/FdtLib/FdtLib.inf
228 EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
229 EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
230
231 EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.inf
232 EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf
233 EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
234
235 EmbeddedPkg/Drivers/MemoryAttributeManagerDxe/MemoryAttributeManagerDxe.inf
236
237 EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.inf {
238 <LibraryClasses>
239 DmaLib|EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf
240 }
241
242[Components.ARM, Components.AARCH64]
243 EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf
244 EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf
245 EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
246 EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcpDxe.inf
247
248[Components.IA32, Components.X64, Components.ARM]
249 EmbeddedPkg/GdbStub/GdbStub.inf
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette