Skip to content

Commit 6c4a136

Browse files
committed
exclude extra codes with Clover build
Signed-off-by: Slice <sergey.slice@gmail.com>
1 parent dc32c4e commit 6c4a136

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Library/OcAppleKernelLib/CommonPatches.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ PATCHER_GENERIC_PATCH
922922
.Count = 1,
923923
.Skip = 0
924924
};
925-
925+
#ifndef CLOVER_BUILD
926926
STATIC
927927
CONST UINT8
928928
mIOAHCIBlockStoragePatch133Find1[] = {
@@ -958,6 +958,7 @@ CONST UINT8
958958
0xFF, 0xFF, 0xFF, 0xFF, 0xFF
959959
};
960960

961+
961962
STATIC
962963
PATCHER_GENERIC_PATCH
963964
mIOAHCIBlockStoragePatch133Part1 = {
@@ -987,6 +988,7 @@ PATCHER_GENERIC_PATCH
987988
.Skip = 0,
988989
.Limit = 4096
989990
};
991+
#endif
990992

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

10241027
return Status;
10251028
}
1029+
#endif
10261030

10271031
Status = PatcherApplyGenericPatch (Patcher, &mIOAHCIBlockStoragePatchV1);
10281032
if (EFI_ERROR (Status)) {

0 commit comments

Comments
 (0)