Skip to content

Commit

Permalink
exclude extra codes with Clover build
Browse files Browse the repository at this point in the history
Signed-off-by: Slice <[email protected]>
  • Loading branch information
SergeySlice committed Jun 12, 2024
1 parent dc32c4e commit 6c4a136
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Library/OcAppleKernelLib/CommonPatches.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ PATCHER_GENERIC_PATCH
.Count = 1,
.Skip = 0
};

#ifndef CLOVER_BUILD
STATIC
CONST UINT8
mIOAHCIBlockStoragePatch133Find1[] = {
Expand Down Expand Up @@ -958,6 +958,7 @@ CONST UINT8
0xFF, 0xFF, 0xFF, 0xFF, 0xFF
};


STATIC
PATCHER_GENERIC_PATCH
mIOAHCIBlockStoragePatch133Part1 = {
Expand Down Expand Up @@ -987,6 +988,7 @@ PATCHER_GENERIC_PATCH
.Skip = 0,
.Limit = 4096
};
#endif

STATIC
EFI_STATUS
Expand All @@ -1005,6 +1007,7 @@ PatchThirdPartyDriveSupport (
//
// Starting with macOS 13.3 (Darwin 22.4.0), a new set of patches are required, discovered by @vit9696.
//
#ifndef CLOVER_BUILD
if (OcMatchDarwinVersion (KernelVersion, KERNEL_VERSION (KERNEL_VERSION_VENTURA, 4, 0), 0)) {
Status = PatcherApplyGenericPatch (Patcher, &mIOAHCIBlockStoragePatch133Part1);
if (EFI_ERROR (Status)) {
Expand All @@ -1023,6 +1026,7 @@ PatchThirdPartyDriveSupport (

return Status;
}
#endif

Status = PatcherApplyGenericPatch (Patcher, &mIOAHCIBlockStoragePatchV1);
if (EFI_ERROR (Status)) {
Expand Down

0 comments on commit 6c4a136

Please sign in to comment.