2019-10-04 15:19:40 +02:00
|
|
|
##
|
|
|
|
#
|
|
|
|
# UEFI driver for enabling loading of macOS without memory relocation.
|
|
|
|
#
|
|
|
|
# by dmazar
|
|
|
|
#
|
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
[Defines]
|
|
|
|
INF_VERSION = 0x00010005
|
|
|
|
BASE_NAME = AptioMemoryFix
|
|
|
|
FILE_GUID = 43C8CFCA-03C0-4AA8-8BEB-5AF6AB3570A2
|
|
|
|
MODULE_TYPE = UEFI_DRIVER
|
|
|
|
VERSION_STRING = 1.0
|
|
|
|
ENTRY_POINT = AptioMemoryFixEntrypoint
|
|
|
|
|
|
|
|
[Packages]
|
|
|
|
# MemoryFix/AptioFixPkg/AptioFixPkg.dec
|
|
|
|
# EfiPkg/EfiPkg.dec
|
|
|
|
CloverPkg.dec
|
|
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
|
|
MdePkg/MdePkg.dec
|
2019-10-04 22:32:02 +02:00
|
|
|
IntelFrameworkPkg/IntelFrameworkPkg.dec
|
2019-10-04 15:19:40 +02:00
|
|
|
# OcSupportPkg/OcSupportPkg.dec
|
2020-09-07 00:19:48 +02:00
|
|
|
UefiCpuPkg/UefiCpuPkg.dec
|
2020-09-07 00:51:01 +02:00
|
|
|
OpenCorePkg/OpenCorePkg.dec
|
2019-10-04 15:19:40 +02:00
|
|
|
|
|
|
|
[LibraryClasses]
|
|
|
|
BaseLib
|
|
|
|
BaseMemoryLib
|
|
|
|
BaseRngLib
|
|
|
|
CpuLib
|
|
|
|
DevicePathLib
|
|
|
|
MemoryAllocationLib
|
2020-09-07 00:19:48 +02:00
|
|
|
OcDeviceTreeLib
|
2019-10-04 22:32:02 +02:00
|
|
|
# DevicePathLib
|
2020-09-07 00:19:48 +02:00
|
|
|
OcMachoLib
|
2019-10-04 15:19:40 +02:00
|
|
|
# OcStringLib
|
|
|
|
UefiBootServicesTableLib
|
|
|
|
UefiDriverEntryPoint
|
|
|
|
UefiLib
|
|
|
|
UefiRuntimeServicesTableLib
|
|
|
|
|
|
|
|
[Sources]
|
|
|
|
AptioMemoryFix.c
|
|
|
|
AsmFuncs.h
|
|
|
|
BootArgs.c
|
|
|
|
BootArgs.h
|
|
|
|
BootFixes.c
|
|
|
|
BootFixes.h
|
|
|
|
Config.h
|
|
|
|
CustomSlide.c
|
|
|
|
CustomSlide.h
|
|
|
|
MemoryMap.c
|
|
|
|
MemoryMap.h
|
|
|
|
RtShims.c
|
|
|
|
RtShims.h
|
|
|
|
ServiceOverrides.c
|
|
|
|
ServiceOverrides.h
|
|
|
|
VMem.c
|
|
|
|
VMem.h
|
|
|
|
UmmMalloc/UmmMalloc.h
|
|
|
|
UmmMalloc/UmmMalloc.c
|
|
|
|
|
|
|
|
[Sources.X64]
|
|
|
|
X64/AsmFuncs.nasm
|
|
|
|
X64/AsmRtShims.nasm
|
|
|
|
|
|
|
|
[Guids]
|
|
|
|
gEfiFileInfoGuid ## CONSUMES
|
|
|
|
gEfiFileSystemInfoGuid ## CONSUMES
|
|
|
|
gEfiFileSystemVolumeLabelInfoIdGuid ## CONSUMES
|
|
|
|
gEfiGlobalVariableGuid ## CONSUMES
|
|
|
|
gOcReadOnlyVariableGuid ## CONSUMES
|
|
|
|
gOcWriteOnlyVariableGuid ## CONSUMES
|
|
|
|
gOcVendorVariableGuid ## CONSUMES
|
2019-10-21 18:20:37 +02:00
|
|
|
gEfiAppleBootGuid ## SOMETIMES_CONSUMES
|
|
|
|
gEfiAppleNvramGuid ## SOMETIMES_CONSUMES
|
2019-10-04 15:19:40 +02:00
|
|
|
gEfiMiscSubClassGuid ## SOMETIMES_CONSUMES
|
|
|
|
gEfiProcessorSubClassGuid ## SOMETIMES_CONSUMES
|
|
|
|
gEfiMemorySubClassGuid ## SOMETIMES_CONSUMES
|
|
|
|
|
|
|
|
[Protocols]
|
|
|
|
gAptioMemoryFixProtocolGuid ## PRODUCES
|
|
|
|
gEfiLoadedImageProtocolGuid ## CONSUMES
|
|
|
|
gEfiDevicePathProtocolGuid ## CONSUMES
|
|
|
|
gEfiGraphicsOutputProtocolGuid ## CONSUMES
|
|
|
|
gEfiSimpleFileSystemProtocolGuid ## CONSUMES
|
|
|
|
gEfiBlockIoProtocolGuid ## CONSUMES
|
|
|
|
gEfiBlockIo2ProtocolGuid ## CONSUMES
|
|
|
|
gEfiDiskIoProtocolGuid ## CONSUMES
|
|
|
|
gEfiDiskIo2ProtocolGuid ## CONSUMES
|
|
|
|
gEfiConsoleControlProtocolGuid ## SOMETIMES_CONSUMES
|
|
|
|
gAppleFirmwarePasswordProtocolGuid ## SOMETIMES_CONSUMES
|
2020-09-21 07:53:36 +02:00
|
|
|
#gAppleDevicePropertyProtocolGuid ## SOMETIMES_CONSUMES
|
2019-10-04 15:19:40 +02:00
|
|
|
gAppleFramebufferInfoProtocolGuid ## SOMETIMES_CONSUMES
|
2019-10-04 22:32:02 +02:00
|
|
|
gAppleKeyStateProtocolGuid ## SOMETIMES_CONSUMES
|
2019-10-04 15:19:40 +02:00
|
|
|
gAppleNetBootProtocolGuid ## SOMETIMES_CONSUMES
|
2019-10-04 22:32:02 +02:00
|
|
|
gAppleImageCodecProtocolGuid ## SOMETIMES_CONSUMES
|
2019-10-04 15:19:40 +02:00
|
|
|
gEfiDataHubProtocolGuid ## SOMETIMES_CONSUMES
|
|
|
|
|
|
|
|
[BuildOptions]
|
|
|
|
# To generate assembled listings
|
|
|
|
# MSFT:*_*_*_ASM_FLAGS = /Fl
|
|
|
|
# GCC:*_*_*_ASM_FLAGS = -Wa,-a=AsmList.txt
|
|
|
|
# GCC:*_*_*_NASM_FLAGS = -l NasmList.txt
|
2019-10-21 18:20:37 +02:00
|
|
|
|
|
|
|
|