OpenCorePkg.dsc 20.0 KB
Newer Older
V
vit9696 已提交
1 2 3 4 5
## @file
# Copyright (C) 2018, vit9696.  All rights reserved.<BR>
# Copyright (C) 2018, Download-Fritz.  All rights reserved.<BR>
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6
#
V
vit9696 已提交
7
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8
#
V
vit9696 已提交
9
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
10
#
V
vit9696 已提交
11
# 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
12
#
V
vit9696 已提交
13 14 15 16 17 18
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
##

[Defines]
  PLATFORM_NAME           = OpenCorePkg
19
  PLATFORM_GUID           = C46F121D-ABC6-42A3-A241-91B09224C357
V
vit9696 已提交
20
  PLATFORM_VERSION        = 1.0
21
  SUPPORTED_ARCHITECTURES = X64|IA32
V
vit9696 已提交
22 23 24 25 26 27
  BUILD_TARGETS           = RELEASE|DEBUG|NOOPT
  SKUID_IDENTIFIER        = DEFAULT
  DSC_SPECIFICATION       = 0x00010006

[LibraryClasses]
  BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
28
  # We cannot use BaseMemoryLibOptDxe since it uses SSE instructions,
29
  # and some types of firmware fail to properly maintain MMX register contexts
30 31 32 33 34
  # across the timers. This results in exceptions when trying to execute
  # primitives like CopyMem in timers (e.g. AIKDataWriteEntry).
  # Reproduced on ASUS M5A97 with AMD FX8320 CPU.
  # REF: https://github.com/acidanthera/bugtracker/issues/754
  BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
V
vit9696 已提交
35
  BaseRngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
36
  BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
V
vit9696 已提交
37
  CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
V
vit9696 已提交
38
  DebugLib|OpenCorePkg/Library/OcDebugLogLib/OcDebugLogLib.inf
39
  DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
40
  MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
V
vit9696 已提交
41
  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
42
  DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
V
vit9696 已提交
43
  DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
44
  FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
45
  FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
46
  HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
V
vit9696 已提交
47
  OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
V
vit9696 已提交
48 49
  HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
V
vit9696 已提交
50 51
  IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
V
vit9696 已提交
52
  OcAcpiLib|OpenCorePkg/Library/OcAcpiLib/OcAcpiLib.inf
53
  OcAfterBootCompatLib|OpenCorePkg/Library/OcAfterBootCompatLib/OcAfterBootCompatLib.inf
54
  OcApfsLib|OpenCorePkg/Library/OcApfsLib/OcApfsLib.inf
V
vit9696 已提交
55 56 57 58 59 60 61 62 63 64 65 66 67 68
  OcAppleBootPolicyLib|OpenCorePkg/Library/OcAppleBootPolicyLib/OcAppleBootPolicyLib.inf
  OcAppleChunklistLib|OpenCorePkg/Library/OcAppleChunklistLib/OcAppleChunklistLib.inf
  OcAppleDiskImageLib|OpenCorePkg/Library/OcAppleDiskImageLib/OcAppleDiskImageLib.inf
  OcAppleEventLib|OpenCorePkg/Library/OcAppleEventLib/OcAppleEventLib.inf
  OcAppleImageConversionLib|OpenCorePkg/Library/OcAppleImageConversionLib/OcAppleImageConversionLib.inf
  OcAppleImg4Lib|OpenCorePkg/Library/OcAppleImg4Lib/OcAppleImg4Lib.inf
  OcAppleKernelLib|OpenCorePkg/Library/OcAppleKernelLib/OcAppleKernelLib.inf
  OcAppleKeyMapLib|OpenCorePkg/Library/OcAppleKeyMapLib/OcAppleKeyMapLib.inf
  OcAppleKeysLib|OpenCorePkg/Library/OcAppleKeysLib/OcAppleKeysLib.inf
  OcAppleRamDiskLib|OpenCorePkg/Library/OcAppleRamDiskLib/OcAppleRamDiskLib.inf
  OcAppleSecureBootLib|OpenCorePkg/Library/OcAppleSecureBootLib/OcAppleSecureBootLib.inf
  OcAppleUserInterfaceThemeLib|OpenCorePkg/Library/OcAppleUserInterfaceThemeLib/OcAppleUserInterfaceThemeLib.inf
  OcAudioLib|OpenCorePkg/Library/OcAudioLib/OcAudioLib.inf
  OcBootManagementLib|OpenCorePkg/Library/OcBootManagementLib/OcBootManagementLib.inf
69
  OcBootServicesTableLib|OpenCorePkg/Library/OcBootServicesTableLib/OcBootServicesTableLib.inf
V
vit9696 已提交
70 71
  OcCompressionLib|OpenCorePkg/Library/OcCompressionLib/OcCompressionLib.inf
  OcConfigurationLib|OpenCorePkg/Library/OcConfigurationLib/OcConfigurationLib.inf
72 73
  OcConsoleControlEntryModeGenericLib|OpenCorePkg/Library/OcConsoleControlEntryModeLib/OcConsoleControlEntryModeGenericLib.inf
  OcConsoleControlEntryModeLocalLib|OpenCorePkg/Library/OcConsoleControlEntryModeLib/OcConsoleControlEntryModeLocalLib.inf
V
vit9696 已提交
74 75 76 77 78
  OcConsoleLib|OpenCorePkg/Library/OcConsoleLib/OcConsoleLib.inf
  OcCpuLib|OpenCorePkg/Library/OcCpuLib/OcCpuLib.inf
  OcCryptoLib|OpenCorePkg/Library/OcCryptoLib/OcCryptoLib.inf
  OcDataHubLib|OpenCorePkg/Library/OcDataHubLib/OcDataHubLib.inf
  OcDebugLogLib|OpenCorePkg/Library/OcDebugLogLib/OcDebugLogLib.inf
79
  OcDeviceMiscLib|OpenCorePkg/Library/OcDeviceMiscLib/OcDeviceMiscLib.inf
V
vit9696 已提交
80 81 82 83 84 85 86 87 88 89 90
  OcDevicePathLib|OpenCorePkg/Library/OcDevicePathLib/OcDevicePathLib.inf
  OcDevicePropertyLib|OpenCorePkg/Library/OcDevicePropertyLib/OcDevicePropertyLib.inf
  OcDeviceTreeLib|OpenCorePkg/Library/OcDeviceTreeLib/OcDeviceTreeLib.inf
  OcDriverConnectionLib|OpenCorePkg/Library/OcDriverConnectionLib/OcDriverConnectionLib.inf
  OcFileLib|OpenCorePkg/Library/OcFileLib/OcFileLib.inf
  OcFirmwarePasswordLib|OpenCorePkg/Library/OcFirmwarePasswordLib/OcFirmwarePasswordLib.inf
  OcFirmwareVolumeLib|OpenCorePkg/Library/OcFirmwareVolumeLib/OcFirmwareVolumeLib.inf
  OcGuardLib|OpenCorePkg/Library/OcGuardLib/OcGuardLib.inf
  OcHashServicesLib|OpenCorePkg/Library/OcHashServicesLib/OcHashServicesLib.inf
  OcHdaDevicesLib|OpenCorePkg/Library/OcHdaDevicesLib/OcHdaDevicesLib.inf
  OcHeciLib|OpenCorePkg/Library/OcHeciLib/OcHeciLib.inf
91
  OcHiiDatabaseLocalLib|OpenCorePkg/Library/OcHiiDatabaseLib/OcHiiDatabaseLocalLib.inf
V
vit9696 已提交
92 93
  OcInputLib|OpenCorePkg/Library/OcInputLib/OcInputLib.inf
  OcMachoLib|OpenCorePkg/Library/OcMachoLib/OcMachoLib.inf
V
vit9696 已提交
94
  OcMacInfoLib|OpenCorePkg/Library/OcMacInfoLib/OcMacInfoLib.inf
95
  OcMainLib|OpenCorePkg/Library/OcMainLib/OcMainLib.inf
V
vit9696 已提交
96 97
  OcMemoryLib|OpenCorePkg/Library/OcMemoryLib/OcMemoryLib.inf
  OcMiscLib|OpenCorePkg/Library/OcMiscLib/OcMiscLib.inf
98
  OcMp3Lib|OpenCorePkg/Library/OcMp3Lib/OcMp3Lib.inf
V
vit9696 已提交
99 100 101 102 103 104 105 106 107 108
  OcOSInfoLib|OpenCorePkg/Library/OcOSInfoLib/OcOSInfoLib.inf
  OcPngLib|OpenCorePkg/Library/OcPngLib/OcPngLib.inf
  OcRngLib|OpenCorePkg/Library/OcRngLib/OcRngLib.inf
  OcRtcLib|OpenCorePkg/Library/OcRtcLib/OcRtcLib.inf
  OcSerializeLib|OpenCorePkg/Library/OcSerializeLib/OcSerializeLib.inf
  OcSmbiosLib|OpenCorePkg/Library/OcSmbiosLib/OcSmbiosLib.inf
  OcSmcLib|OpenCorePkg/Library/OcSmcLib/OcSmcLib.inf
  OcStorageLib|OpenCorePkg/Library/OcStorageLib/OcStorageLib.inf
  OcStringLib|OpenCorePkg/Library/OcStringLib/OcStringLib.inf
  OcTemplateLib|OpenCorePkg/Library/OcTemplateLib/OcTemplateLib.inf
109
  OcTypingLib|OpenCorePkg/Library/OcTypingLib/OcTypingLib.inf
110
  TimerLib|OpenCorePkg/Library/OcTimerLib/OcTimerLib.inf
111 112
  OcUnicodeCollationEngGenericLib|OpenCorePkg/Library/OcUnicodeCollationEngLib/OcUnicodeCollationEngGenericLib.inf
  OcUnicodeCollationEngLocalLib|OpenCorePkg/Library/OcUnicodeCollationEngLib/OcUnicodeCollationEngLocalLib.inf
V
vit9696 已提交
113
  OcVirtualFsLib|OpenCorePkg/Library/OcVirtualFsLib/OcVirtualFsLib.inf
114
  OcWaveLib|OpenCorePkg/Library/OcWaveLib/OcWaveLib.inf
V
vit9696 已提交
115
  OcXmlLib|OpenCorePkg/Library/OcXmlLib/OcXmlLib.inf
116
  OcPeCoffExtLib|OpenCorePkg/Library/OcPeCoffExtLib/OcPeCoffExtLib.inf
117
  OcPeCoffLib|OpenCorePkg/Library/OcPeCoffLib/OcPeCoffLib.inf
V
vit9696 已提交
118 119 120 121 122 123
  PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
  PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
124 125
  PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
V
vit9696 已提交
126
  SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
127 128 129
  ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
V
vit9696 已提交
130
  SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
V
vit9696 已提交
131 132
  UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
133
  UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
V
vit9696 已提交
134 135 136 137 138
  UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
139
  ResetSystemLib|OpenCorePkg/Library/OcResetSystemLib/OcResetSystemLib.inf
V
vit9696 已提交
140

141 142
  !include NetworkPkg/NetworkLibs.dsc.inc

V
vit9696 已提交
143
[Components]
144
  MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf {
145 146 147 148 149
    <LibraryClasses>
      !if $(TARGET) == RELEASE
        DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
      !endif
  }
150
  MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf {
151 152 153 154 155
    <LibraryClasses>
      !if $(TARGET) == RELEASE
        DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
      !endif
  }
156
  MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
157
  MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
158
  MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
159
  MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
V
vit9696 已提交
160
  OpenCorePkg/Application/BootKicker/BootKicker.inf
161 162 163 164 165 166 167
  OpenCorePkg/Application/Bootstrap/Bootstrap.inf {
    <LibraryClasses>
      !if $(TARGET) != RELEASE
        # Force onscreen visible logging in DEBUG/NOOPT builds.
        NULL|OpenCorePkg/Library/OcConsoleControlEntryModeLib/OcConsoleControlEntryModeGenericLib.inf
      !endif
  }
V
vit9696 已提交
168 169 170
  OpenCorePkg/Application/ChipTune/ChipTune.inf
  OpenCorePkg/Application/CleanNvram/CleanNvram.inf
  OpenCorePkg/Application/GopStop/GopStop.inf
171
  OpenCorePkg/Application/KeyTester/KeyTester.inf
172
  OpenCorePkg/Application/MmapDump/MmapDump.inf
V
vit9696 已提交
173
  OpenCorePkg/Application/OpenControl/OpenControl.inf
174 175 176 177 178 179 180
  OpenCorePkg/Application/OpenCore/OpenCore.inf {
    <LibraryClasses>
      !if $(TARGET) != RELEASE
        # Force onscreen visible logging in DEBUG/NOOPT builds.
        NULL|OpenCorePkg/Library/OcConsoleControlEntryModeLib/OcConsoleControlEntryModeGenericLib.inf
      !endif
  }
V
vit9696 已提交
181
  OpenCorePkg/Application/PavpProvision/PavpProvision.inf
V
vit9696 已提交
182
  OpenCorePkg/Application/ResetSystem/ResetSystem.inf
V
vit9696 已提交
183
  OpenCorePkg/Application/RtcRw/RtcRw.inf
184 185 186 187
  OpenCorePkg/Application/VerifyMemOpt/VerifyMemOpt.inf {
    <LibraryClasses>
      BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
  }
188
  OpenCorePkg/Application/ControlMsrE2/ControlMsrE2.inf
V
vit9696 已提交
189 190
  OpenCorePkg/Debug/GdbSyms/GdbSyms.inf
  OpenCorePkg/Library/OcAcpiLib/OcAcpiLib.inf
191
  OpenCorePkg/Library/OcAfterBootCompatLib/OcAfterBootCompatLib.inf
192
  OpenCorePkg/Library/OcApfsLib/OcApfsLib.inf
V
vit9696 已提交
193 194 195 196 197 198 199 200 201 202 203 204 205
  OpenCorePkg/Library/OcAppleBootPolicyLib/OcAppleBootPolicyLib.inf
  OpenCorePkg/Library/OcAppleChunklistLib/OcAppleChunklistLib.inf
  OpenCorePkg/Library/OcAppleDiskImageLib/OcAppleDiskImageLib.inf
  OpenCorePkg/Library/OcAppleEventLib/OcAppleEventLib.inf
  OpenCorePkg/Library/OcAppleImageConversionLib/OcAppleImageConversionLib.inf
  OpenCorePkg/Library/OcAppleImg4Lib/OcAppleImg4Lib.inf
  OpenCorePkg/Library/OcAppleKernelLib/OcAppleKernelLib.inf
  OpenCorePkg/Library/OcAppleKeyMapLib/OcAppleKeyMapLib.inf
  OpenCorePkg/Library/OcAppleRamDiskLib/OcAppleRamDiskLib.inf
  OpenCorePkg/Library/OcAppleSecureBootLib/OcAppleSecureBootLib.inf
  OpenCorePkg/Library/OcAppleUserInterfaceThemeLib/OcAppleUserInterfaceThemeLib.inf
  OpenCorePkg/Library/OcAudioLib/OcAudioLib.inf
  OpenCorePkg/Library/OcBootManagementLib/OcBootManagementLib.inf
206
  OpenCorePkg/Library/OcBootServicesTableLib/OcBootServicesTableLib.inf
V
vit9696 已提交
207 208 209
  OpenCorePkg/Library/OcCompilerIntrinsicsLib/OcCompilerIntrinsicsLib.inf
  OpenCorePkg/Library/OcCompressionLib/OcCompressionLib.inf
  OpenCorePkg/Library/OcConfigurationLib/OcConfigurationLib.inf
210 211
  OpenCorePkg/Library/OcConsoleControlEntryModeLib/OcConsoleControlEntryModeGenericLib.inf
  OpenCorePkg/Library/OcConsoleControlEntryModeLib/OcConsoleControlEntryModeLocalLib.inf
V
vit9696 已提交
212 213 214 215 216
  OpenCorePkg/Library/OcConsoleLib/OcConsoleLib.inf
  OpenCorePkg/Library/OcCpuLib/OcCpuLib.inf
  OpenCorePkg/Library/OcCryptoLib/OcCryptoLib.inf
  OpenCorePkg/Library/OcDataHubLib/OcDataHubLib.inf
  OpenCorePkg/Library/OcDebugLogLib/OcDebugLogLib.inf
217
  OpenCorePkg/Library/OcDeviceMiscLib/OcDeviceMiscLib.inf
V
vit9696 已提交
218 219 220 221 222 223 224 225 226 227 228
  OpenCorePkg/Library/OcDevicePathLib/OcDevicePathLib.inf
  OpenCorePkg/Library/OcDevicePropertyLib/OcDevicePropertyLib.inf
  OpenCorePkg/Library/OcDeviceTreeLib/OcDeviceTreeLib.inf
  OpenCorePkg/Library/OcDriverConnectionLib/OcDriverConnectionLib.inf
  OpenCorePkg/Library/OcFileLib/OcFileLib.inf
  OpenCorePkg/Library/OcFirmwarePasswordLib/OcFirmwarePasswordLib.inf
  OpenCorePkg/Library/OcFirmwareVolumeLib/OcFirmwareVolumeLib.inf
  OpenCorePkg/Library/OcGuardLib/OcGuardLib.inf
  OpenCorePkg/Library/OcHashServicesLib/OcHashServicesLib.inf
  OpenCorePkg/Library/OcHdaDevicesLib/OcHdaDevicesLib.inf
  OpenCorePkg/Library/OcHeciLib/OcHeciLib.inf
229
  OpenCorePkg/Library/OcHiiDatabaseLib/OcHiiDatabaseLocalLib.inf
V
vit9696 已提交
230 231
  OpenCorePkg/Library/OcInputLib/OcInputLib.inf
  OpenCorePkg/Library/OcMachoLib/OcMachoLib.inf
232
  OpenCorePkg/Library/OcMainLib/OcMainLib.inf
V
vit9696 已提交
233 234
  OpenCorePkg/Library/OcMemoryLib/OcMemoryLib.inf
  OpenCorePkg/Library/OcMiscLib/OcMiscLib.inf
235
  OpenCorePkg/Library/OcMp3Lib/OcMp3Lib.inf
V
vit9696 已提交
236
  OpenCorePkg/Library/OcOSInfoLib/OcOSInfoLib.inf
237 238
  OpenCorePkg/Library/OcPeCoffExtLib/OcPeCoffExtLib.inf
  OpenCorePkg/Library/OcPeCoffLib/OcPeCoffLib.inf
V
vit9696 已提交
239 240 241 242 243 244 245 246 247
  OpenCorePkg/Library/OcPngLib/OcPngLib.inf
  OpenCorePkg/Library/OcRngLib/OcRngLib.inf
  OpenCorePkg/Library/OcSerializeLib/OcSerializeLib.inf
  OpenCorePkg/Library/OcSmbiosLib/OcSmbiosLib.inf
  OpenCorePkg/Library/OcSmcLib/OcSmcLib.inf
  OpenCorePkg/Library/OcStorageLib/OcStorageLib.inf
  OpenCorePkg/Library/OcStringLib/OcStringLib.inf
  OpenCorePkg/Library/OcTemplateLib/OcTemplateLib.inf
  OpenCorePkg/Library/OcTimerLib/OcTimerLib.inf
248 249
  OpenCorePkg/Library/OcUnicodeCollationEngLib/OcUnicodeCollationEngGenericLib.inf
  OpenCorePkg/Library/OcUnicodeCollationEngLib/OcUnicodeCollationEngLocalLib.inf
V
vit9696 已提交
250
  OpenCorePkg/Library/OcVirtualFsLib/OcVirtualFsLib.inf
251
  OpenCorePkg/Library/OcWaveLib/OcWaveLib.inf
V
vit9696 已提交
252
  OpenCorePkg/Library/OcXmlLib/OcXmlLib.inf
253
  OpenCorePkg/Platform/CrScreenshotDxe/CrScreenshotDxe.inf
V
vit9696 已提交
254
  OpenCorePkg/Platform/OpenCanopy/OpenCanopy.inf
255
  OpenCorePkg/Platform/OpenPartitionDxe/PartitionDxe.inf
V
vit9696 已提交
256 257
  OpenCorePkg/Platform/OpenRuntime/OpenRuntime.inf
  OpenCorePkg/Platform/OpenUsbKbDxe/UsbKbDxe.inf
258
  OpenCorePkg/Staging/AudioDxe/AudioDxe.inf
259
  OpenCorePkg/Staging/OpenHfsPlus/OpenHfsPlus.inf
V
vit9696 已提交
260 261 262 263 264 265 266 267 268 269
  OpenCorePkg/Tests/AcpiTest/AcpiTest.inf
  OpenCorePkg/Tests/AcpiTest/AcpiTestApp.inf
  OpenCorePkg/Tests/CryptoTest/CryptoTest.inf
  OpenCorePkg/Tests/CryptoTest/CryptoTestApp.inf
  OpenCorePkg/Tests/DataHubTest/DataHubTest.inf
  OpenCorePkg/Tests/DataHubTest/DataHubTestApp.inf
  OpenCorePkg/Tests/PropertyTest/PropertyTest.inf
  OpenCorePkg/Tests/PropertyTest/PropertyTestApp.inf
  OpenCorePkg/Tests/SmbiosTest/SmbiosTest.inf
  OpenCorePkg/Tests/SmbiosTest/SmbiosTestApp.inf
270 271 272 273 274 275 276 277 278
  # UEFI Shell with all commands integrated
  ShellPkg/Application/Shell/Shell.inf {
   <Defines>
      FILE_GUID = EA4BB293-2D7F-4456-A681-1F22F42CD0BC
    <PcdsFixedAtBuild>
      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
      # For some reason ShellPkg overrides this, so do we.
      gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|16000
    <LibraryClasses>
279
      # Use custom BootServicesTable
280
      UefiBootServicesTableLib|OpenCorePkg/Library/OcBootServicesTableLib/UefiBootServicesTableLib.inf
281 282 283 284 285 286 287 288 289 290 291
      # Add the original commands.
      NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
      NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
      NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
      NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
      NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
      NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
      NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
      NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
      NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  }
V
vit9696 已提交
292

V
vit9696 已提交
293
[LibraryClasses]
V
vit9696 已提交
294
  NULL|OpenCorePkg/Library/OcCompilerIntrinsicsLib/OcCompilerIntrinsicsLib.inf
V
vit9696 已提交
295

V
vit9696 已提交
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
[PcdsFixedAtBuild]
  gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|0
!if $(TARGET) == RELEASE
  # DEBUG_PRINT_ENABLED
  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|2
  # DEBUG_ERROR | DEBUG_WARN
  gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000002
  gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel|0x80000002
!else
  # DEBUG_ASSERT_ENABLED | DEBUG_PRINT_ENABLED | DEBUG_CODE_ENABLED | CLEAR_MEMORY_ENABLED | ASSERT_DEADLOOP_ENABLED
  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
  # DEBUG_ERROR | DEBUG_WARN | DEBUG_INFO
  gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000042
  gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel|0x80000042
!endif

[BuildOptions]
  # While there are no PCDs as of now, there at least are some custom macros.
314
  DEFINE OCPKG_BUILD_OPTIONS_GEN = -D DISABLE_NEW_DEPRECATED_INTERFACES $(OCPKG_BUILD_OPTIONS) -D OC_TARGET_$(TARGET)=1
D
Download-Fritz 已提交
315
  DEFINE OCPKG_ANAL_OPTIONS_GEN = "-DANALYZER_UNREACHABLE=__builtin_unreachable" "-DANALYZER_NORETURN=__attribute__((noreturn))"
V
vit9696 已提交
316

317 318 319 320 321 322 323 324 325 326 327 328
  GCC:DEBUG_*_*_CC_FLAGS        = $(OCPKG_BUILD_OPTIONS_GEN) $(OCPKG_ANAL_OPTIONS_GEN)
  GCC:NOOPT_*_*_CC_FLAGS        = $(OCPKG_BUILD_OPTIONS_GEN) $(OCPKG_ANAL_OPTIONS_GEN)
  GCC:RELEASE_*_*_CC_FLAGS      = $(OCPKG_BUILD_OPTIONS_GEN) $(OCPKG_ANAL_OPTIONS_GEN)
  CLANGPDB:DEBUG_*_*_CC_FLAGS   = $(OCPKG_BUILD_OPTIONS_GEN) $(OCPKG_ANAL_OPTIONS_GEN)
  CLANGPDB:NOOPT_*_*_CC_FLAGS   = $(OCPKG_BUILD_OPTIONS_GEN) $(OCPKG_ANAL_OPTIONS_GEN)
  CLANGPDB:RELEASE_*_*_CC_FLAGS = $(OCPKG_BUILD_OPTIONS_GEN) $(OCPKG_ANAL_OPTIONS_GEN)
  MSFT:DEBUG_*_*_CC_FLAGS       = $(OCPKG_BUILD_OPTIONS_GEN) /wd4723
  MSFT:NOOPT_*_*_CC_FLAGS       = $(OCPKG_BUILD_OPTIONS_GEN) /wd4723
  MSFT:RELEASE_*_*_CC_FLAGS     = $(OCPKG_BUILD_OPTIONS_GEN) /wd4723
  XCODE:DEBUG_*_*_CC_FLAGS      = $(OCPKG_BUILD_OPTIONS_GEN) $(OCPKG_ANAL_OPTIONS_GEN)
  XCODE:NOOPT_*_*_CC_FLAGS      = $(OCPKG_BUILD_OPTIONS_GEN) $(OCPKG_ANAL_OPTIONS_GEN)
  XCODE:RELEASE_*_*_CC_FLAGS    = $(OCPKG_BUILD_OPTIONS_GEN) $(OCPKG_ANAL_OPTIONS_GEN) -Oz -flto
329 330 331 332 333 334

  # Force page alignment for all files allowing for page protection.
  GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
  XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
  CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096