]>
Commit | Line | Data |
---|---|---|
6f5872b1 | 1 | #\r |
04f1a709 | 2 | # Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r |
6f5872b1 | 3 | # Copyright (c) 2014, Linaro Limited. All rights reserved.\r |
48ed4769 | 4 | # Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.\r |
6f5872b1 MC |
5 | #\r |
6 | # This program and the accompanying materials\r | |
7 | # are licensed and made available under the terms and conditions of the BSD License\r | |
8 | # which accompanies this distribution. The full text of the license may be found at\r | |
9 | # http://opensource.org/licenses/bsd-license.php\r | |
10 | #\r | |
11 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | #\r | |
14 | #\r | |
15 | \r | |
d301991c LE |
16 | [Defines]\r |
17 | DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F\r | |
a51c1699 | 18 | DEFINE TTY_TERMINAL = FALSE\r |
d301991c | 19 | \r |
cc8de57b | 20 | [BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION]\r |
dfd85675 | 21 | GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000\r |
7b30036b | 22 | \r |
955b4946 AB |
23 | [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]\r |
24 | GCC:*_*_ARM_DLINK_FLAGS = -z common-page-size=0x1000\r | |
5670dd5e | 25 | GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000\r |
cd625ae9 | 26 | RVCT:*_*_ARM_DLINK_FLAGS = --scatter $(EDK_TOOLS_PATH)/Scripts/Rvct-Align4K.sct\r |
093b7c87 | 27 | \r |
6f5872b1 MC |
28 | [LibraryClasses.common]\r |
29 | !if $(TARGET) == RELEASE\r | |
30 | DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r | |
6f5872b1 MC |
31 | !else\r |
32 | DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r | |
6f5872b1 MC |
33 | !endif\r |
34 | DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r | |
35 | \r | |
36 | BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r | |
48ed4769 MK |
37 | SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf\r |
38 | BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf\r | |
6f5872b1 MC |
39 | SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r |
40 | PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf\r | |
41 | PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r | |
42 | PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r | |
43 | PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r | |
0b37c75e | 44 | IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicArmVirt.inf\r |
6f5872b1 MC |
45 | UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf\r |
46 | CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf\r | |
47 | \r | |
48 | UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r | |
7fbd1eb2 | 49 | HobLib|ArmVirtPkg/Library/ArmVirtDxeHobLib/ArmVirtDxeHobLib.inf\r |
6f5872b1 | 50 | UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r |
f9dff902 | 51 | DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf\r |
6f5872b1 MC |
52 | UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r |
53 | DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r | |
1946faa7 | 54 | DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf\r |
6f5872b1 MC |
55 | UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r |
56 | UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r | |
57 | HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf\r | |
58 | UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf\r | |
1946faa7 | 59 | SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf\r |
59fcf070 RN |
60 | ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r |
61 | FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r | |
6f5872b1 MC |
62 | \r |
63 | UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r | |
1c5adbef | 64 | OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf\r |
6f5872b1 MC |
65 | \r |
66 | #\r | |
5217ea2a VS |
67 | # Ramdisk Requirements\r |
68 | #\r | |
69 | FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf\r | |
70 | \r | |
6f5872b1 MC |
71 | # Allow dynamic PCDs\r |
72 | #\r | |
73 | PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r | |
74 | \r | |
3c3cf1cd AB |
75 | # use the accelerated BaseMemoryLibOptDxe by default, overrides for SEC/PEI below\r |
76 | BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf\r | |
6f5872b1 MC |
77 | \r |
78 | # Networking Requirements\r | |
79 | NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf\r | |
80 | DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf\r | |
81 | UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf\r | |
82 | IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf\r | |
ae08ea24 LE |
83 | !if $(NETWORK_IP6_ENABLE) == TRUE\r |
84 | TcpIoLib|MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf\r | |
85 | !endif\r | |
77b702bf LE |
86 | !if $(HTTP_BOOT_ENABLE) == TRUE\r |
87 | HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf\r | |
88 | !endif\r | |
6f5872b1 | 89 | \r |
f8136625 MR |
90 | #\r |
91 | # It is not possible to prevent the ARM compiler from inserting calls to intrinsic functions.\r | |
92 | # This library provides the instrinsic functions such a compiler may generate calls to.\r | |
93 | #\r | |
94 | NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf\r | |
95 | \r | |
96 | # Add support for GCC stack protector\r | |
97 | NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r | |
98 | \r | |
6f5872b1 MC |
99 | # ARM Architectural Libraries\r |
100 | CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf\r | |
101 | DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf\r | |
9fa52603 | 102 | CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf\r |
6f5872b1 | 103 | ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf\r |
6f5872b1 | 104 | ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf\r |
15c9b25e | 105 | ArmGicArchLib|ArmVirtPkg/Library/ArmVirtGicArchLib/ArmVirtGicArchLib.inf\r |
6f5872b1 MC |
106 | ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf\r |
107 | ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf\r | |
108 | ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerVirtCounterLib/ArmGenericTimerVirtCounterLib.inf\r | |
109 | \r | |
7fbd1eb2 OM |
110 | PlatformPeiLib|ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.inf\r |
111 | MemoryInitPeiLib|ArmVirtPkg/Library/ArmVirtMemoryInitPeiLib/ArmVirtMemoryInitPeiLib.inf\r | |
7b1dc6c5 | 112 | ResetSystemLib|ArmVirtPkg/Library/ArmVirtPsciResetSystemLib/ArmVirtPsciResetSystemLib.inf\r |
6f5872b1 MC |
113 | \r |
114 | # ARM PL031 RTC Driver\r | |
115 | RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf\r | |
af5fed90 | 116 | TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf\r |
6f5872b1 | 117 | # ARM PL011 UART Driver\r |
1195b857 | 118 | PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf\r |
7fbd1eb2 | 119 | SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.inf\r |
6f5872b1 MC |
120 | \r |
121 | #\r | |
122 | # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window\r | |
123 | # in the debugger will show load and unload commands for symbols. You can cut and paste this\r | |
124 | # into the command window to load symbols. We should be able to use a script to do this, but\r | |
125 | # the version of RVD I have does not support scripts accessing system memory.\r | |
126 | #\r | |
127 | #PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf\r | |
128 | PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf\r | |
129 | #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf\r | |
130 | \r | |
131 | DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf\r | |
132 | DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf\r | |
133 | \r | |
1c51e601 | 134 | # Flattened Device Tree (FDT) access library\r |
6f5872b1 MC |
135 | FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf\r |
136 | \r | |
10233c9e LE |
137 | # PCI Libraries\r |
138 | PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r | |
7fbd1eb2 | 139 | PciExpressLib|ArmVirtPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf\r |
65cefddc LE |
140 | PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf\r |
141 | PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf\r | |
142 | PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf\r | |
10233c9e | 143 | \r |
e17b1db5 LE |
144 | # USB Libraries\r |
145 | UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf\r | |
146 | \r | |
6abe83c3 AB |
147 | XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf\r |
148 | \r | |
80f882ab | 149 | #\r |
ae08ea24 | 150 | # CryptoPkg libraries needed by multiple firmware features\r |
80f882ab | 151 | #\r |
80f882ab | 152 | IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r |
622627f8 | 153 | OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf\r |
ae08ea24 | 154 | BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r |
ae08ea24 LE |
155 | \r |
156 | #\r | |
157 | # Secure Boot dependencies\r | |
158 | #\r | |
159 | !if $(SECURE_BOOT_ENABLE) == TRUE\r | |
80f882ab | 160 | TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf\r |
31c0338e | 161 | AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf\r |
80f882ab AB |
162 | \r |
163 | # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree\r | |
164 | PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf\r | |
31c0338e SZ |
165 | !else\r |
166 | TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf\r | |
167 | AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf\r | |
80f882ab | 168 | !endif\r |
0bdbaade | 169 | VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf\r |
dd320e63 | 170 | UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf\r |
80f882ab | 171 | \r |
59541d41 AB |
172 | ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf\r |
173 | \r | |
6f5872b1 MC |
174 | [LibraryClasses.common.SEC]\r |
175 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
3c3cf1cd | 176 | BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r |
6f5872b1 MC |
177 | \r |
178 | DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf\r | |
179 | DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLibBase.inf\r | |
7fbd1eb2 | 180 | SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf\r |
6f5872b1 MC |
181 | HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r |
182 | PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r | |
b761e8c2 | 183 | PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf\r |
6f5872b1 MC |
184 | MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r |
185 | \r | |
186 | [LibraryClasses.common.PEI_CORE]\r | |
187 | PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r | |
3c3cf1cd | 188 | BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r |
6f5872b1 MC |
189 | HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r |
190 | PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r | |
191 | MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r | |
192 | PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf\r | |
193 | PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf\r | |
6f5872b1 MC |
194 | OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r |
195 | PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r | |
196 | UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf\r | |
197 | ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf\r | |
198 | \r | |
b761e8c2 | 199 | PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf\r |
7fbd1eb2 | 200 | SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf\r |
6f5872b1 MC |
201 | \r |
202 | [LibraryClasses.common.PEIM]\r | |
203 | PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r | |
3c3cf1cd | 204 | BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r |
6f5872b1 MC |
205 | HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r |
206 | PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r | |
207 | MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r | |
208 | PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r | |
209 | PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf\r | |
6f5872b1 MC |
210 | OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r |
211 | PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r | |
6f5872b1 MC |
212 | UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf\r |
213 | ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf\r | |
214 | \r | |
b761e8c2 | 215 | PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf\r |
7fbd1eb2 | 216 | SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf\r |
6f5872b1 MC |
217 | \r |
218 | [LibraryClasses.common.DXE_CORE]\r | |
219 | HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r | |
220 | MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf\r | |
221 | DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r | |
6f5872b1 MC |
222 | ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r |
223 | UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf\r | |
6f5872b1 MC |
224 | PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf\r |
225 | \r | |
226 | [LibraryClasses.common.DXE_DRIVER]\r | |
6f5872b1 MC |
227 | SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf\r |
228 | PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf\r | |
229 | MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r | |
6f5872b1 MC |
230 | \r |
231 | [LibraryClasses.common.UEFI_APPLICATION]\r | |
232 | UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf\r | |
233 | PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf\r | |
234 | MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r | |
235 | HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf\r | |
236 | \r | |
237 | [LibraryClasses.common.UEFI_DRIVER]\r | |
6f5872b1 MC |
238 | UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf\r |
239 | ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r | |
240 | PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf\r | |
6f5872b1 MC |
241 | MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r |
242 | \r | |
243 | [LibraryClasses.common.DXE_RUNTIME_DRIVER]\r | |
244 | MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r | |
6f5872b1 | 245 | CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf\r |
ebfca258 AB |
246 | !if $(TARGET) != RELEASE\r |
247 | DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf\r | |
248 | !endif\r | |
6f5872b1 | 249 | \r |
80f882ab AB |
250 | !if $(SECURE_BOOT_ENABLE) == TRUE\r |
251 | BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf\r | |
252 | !endif\r | |
253 | \r | |
2c960244 AB |
254 | [LibraryClasses.ARM]\r |
255 | ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf\r | |
256 | \r | |
6f5872b1 MC |
257 | [BuildOptions]\r |
258 | RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG\r | |
259 | \r | |
260 | GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG\r | |
261 | \r | |
17dc8ebc LE |
262 | #\r |
263 | # Disable deprecated APIs.\r | |
264 | #\r | |
265 | RVCT:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES\r | |
266 | GCC:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES\r | |
267 | \r | |
6f5872b1 MC |
268 | ################################################################################\r |
269 | #\r | |
270 | # Pcd Section - list of all EDK II PCD Entries defined by this Platform\r | |
271 | #\r | |
272 | ################################################################################\r | |
273 | \r | |
274 | [PcdsFeatureFlag.common]\r | |
6a238fa8 | 275 | gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE\r |
6f5872b1 | 276 | \r |
6f5872b1 MC |
277 | # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress\r |
278 | gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE\r | |
279 | \r | |
280 | gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE\r | |
281 | \r | |
282 | gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE\r | |
283 | \r | |
d3644741 VS |
284 | [PcdsFeatureFlag.AARCH64]\r |
285 | #\r | |
286 | # Activate AcpiSdtProtocol\r | |
287 | #\r | |
288 | gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE\r | |
289 | \r | |
6f5872b1 | 290 | [PcdsFixedAtBuild.common]\r |
6f5872b1 MC |
291 | gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000\r |
292 | gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000\r | |
293 | gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000\r | |
294 | gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000\r | |
295 | gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF\r | |
6f5872b1 MC |
296 | gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0\r |
297 | gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320\r | |
298 | \r | |
299 | # DEBUG_ASSERT_ENABLED 0x01\r | |
300 | # DEBUG_PRINT_ENABLED 0x02\r | |
301 | # DEBUG_CODE_ENABLED 0x04\r | |
302 | # CLEAR_MEMORY_ENABLED 0x08\r | |
303 | # ASSERT_BREAKPOINT_ENABLED 0x10\r | |
304 | # ASSERT_DEADLOOP_ENABLED 0x20\r | |
305 | !if $(TARGET) == RELEASE\r | |
306 | gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21\r | |
307 | !else\r | |
308 | gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f\r | |
309 | !endif\r | |
310 | \r | |
311 | # DEBUG_INIT 0x00000001 // Initialization\r | |
312 | # DEBUG_WARN 0x00000002 // Warnings\r | |
313 | # DEBUG_LOAD 0x00000004 // Load events\r | |
314 | # DEBUG_FS 0x00000008 // EFI File system\r | |
ba4bcd7e LE |
315 | # DEBUG_POOL 0x00000010 // Alloc & Free (pool)\r |
316 | # DEBUG_PAGE 0x00000020 // Alloc & Free (page)\r | |
d301991c LE |
317 | # DEBUG_INFO 0x00000040 // Informational debug messages\r |
318 | # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers\r | |
6f5872b1 MC |
319 | # DEBUG_VARIABLE 0x00000100 // Variable\r |
320 | # DEBUG_BM 0x00000400 // Boot Manager\r | |
321 | # DEBUG_BLKIO 0x00001000 // BlkIo Driver\r | |
ba4bcd7e | 322 | # DEBUG_NET 0x00004000 // SNP Driver\r |
6f5872b1 | 323 | # DEBUG_UNDI 0x00010000 // UNDI Driver\r |
ba4bcd7e | 324 | # DEBUG_LOADFILE 0x00020000 // LoadFile\r |
6f5872b1 MC |
325 | # DEBUG_EVENT 0x00080000 // Event messages\r |
326 | # DEBUG_GCD 0x00100000 // Global Coherency Database changes\r | |
327 | # DEBUG_CACHE 0x00200000 // Memory range cachability changes\r | |
d301991c LE |
328 | # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may\r |
329 | # // significantly impact boot performance\r | |
6f5872b1 | 330 | # DEBUG_ERROR 0x80000000 // Error\r |
d301991c | 331 | gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)\r |
6f5872b1 | 332 | \r |
6f5872b1 MC |
333 | #\r |
334 | # Optional feature to help prevent EFI memory map fragments\r | |
335 | # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob\r | |
336 | # Values are in EFI Pages (4K). DXE Core will make sure that\r | |
337 | # at least this much of each type of memory can be allocated\r | |
338 | # from a single memory range. This way you only end up with\r | |
339 | # maximum of two fragements for each type in the memory map\r | |
340 | # (the memory used, and the free memory that was prereserved\r | |
341 | # but not used).\r | |
342 | #\r | |
343 | gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0\r | |
344 | gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0\r | |
345 | gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0\r | |
e0bb8ad9 AB |
346 | !if $(SECURE_BOOT_ENABLE) == TRUE\r |
347 | gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|600\r | |
348 | gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|400\r | |
349 | gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1500\r | |
350 | !else\r | |
c1993157 AB |
351 | gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300\r |
352 | gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150\r | |
353 | gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000\r | |
e0bb8ad9 | 354 | !endif\r |
2f71ad11 | 355 | gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000\r |
6f5872b1 MC |
356 | gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20\r |
357 | gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0\r | |
358 | \r | |
80f882ab AB |
359 | !if $(SECURE_BOOT_ENABLE) == TRUE\r |
360 | # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot\r | |
361 | gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04\r | |
362 | gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04\r | |
363 | gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04\r | |
364 | !endif\r | |
365 | \r | |
a51c1699 LE |
366 | !if $(TTY_TERMINAL) == TRUE\r |
367 | # Set terminal type to TtyTerm, the value encoded is EFI_TTY_TERM_GUID\r | |
368 | gArmVirtTokenSpaceGuid.PcdTerminalTypeGuidBuffer|{0x80, 0x6d, 0x91, 0x7d, 0xb1, 0x5b, 0x8c, 0x45, 0xa4, 0x8f, 0xe2, 0x5f, 0xdd, 0x51, 0xef, 0x94}\r | |
369 | !endif\r | |
370 | \r | |
7b30036b AB |
371 | #\r |
372 | # Enable strict image permissions for all images. (This applies\r | |
373 | # only to images that were built with >= 4 KB section alignment.)\r | |
374 | #\r | |
375 | gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3\r | |
376 | \r | |
1acd7c54 AB |
377 | #\r |
378 | # Enable NX memory protection for all non-code regions, including OEM and OS\r | |
379 | # reserved ones, with the exception of LoaderData regions, of which OS loaders\r | |
380 | # (i.e., GRUB) may assume that its contents are executable.\r | |
381 | #\r | |
382 | gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1\r | |
383 | \r | |
8aab575c AB |
384 | #\r |
385 | # Enable the non-executable DXE stack. (This gets set up by DxeIpl)\r | |
386 | #\r | |
387 | gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE\r | |
388 | \r | |
6f5872b1 | 389 | [Components.common]\r |
d3644741 VS |
390 | #\r |
391 | # Ramdisk support\r | |
392 | #\r | |
393 | MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r | |
394 | \r | |
da1ce6f8 LE |
395 | #\r |
396 | # UEFI application (Shell Embedded Boot Loader)\r | |
397 | #\r | |
59fcf070 RN |
398 | ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {\r |
399 | <PcdsFixedAtBuild>\r | |
400 | gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r | |
401 | }\r | |
da1ce6f8 LE |
402 | ShellPkg/Application/Shell/Shell.inf {\r |
403 | <LibraryClasses>\r | |
404 | ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r | |
405 | NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r | |
406 | NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r | |
407 | NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r | |
408 | NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r | |
409 | NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r | |
410 | NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r | |
411 | NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r | |
ae08ea24 LE |
412 | !if $(NETWORK_IP6_ENABLE) == TRUE\r |
413 | NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf\r | |
414 | !endif\r | |
da1ce6f8 | 415 | HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r |
da1ce6f8 LE |
416 | PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r |
417 | BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r | |
418 | \r | |
419 | <PcdsFixedAtBuild>\r | |
420 | gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF\r | |
421 | gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r | |
422 | gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000\r | |
423 | }\r | |
fde03c80 VS |
424 | \r |
425 | [Components.AARCH64]\r | |
426 | #\r | |
427 | # ACPI Support\r | |
428 | #\r | |
3a2c1548 LE |
429 | MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {\r |
430 | <LibraryClasses>\r | |
431 | NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf\r | |
432 | }\r | |
433 | \r | |
434 | #\r | |
435 | # EBC support\r | |
436 | #\r | |
81d9f86f | 437 | MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r |