Skip to content

Commit

Permalink
MatchBuild absent should means allowed
Browse files Browse the repository at this point in the history
Signed-off-by: SergeySlice <[email protected]>
  • Loading branch information
SergeySlice committed Dec 24, 2021
1 parent 16aba10 commit 62ad226
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Clover.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,11 @@ DEFINE EXIT_USBKB_FLAG = -DEXIT_USBKB
DEFINE JIEF_DEBUG_FLAG = -DJIEF_DEBUG
!endif

DEFINE BUILD_OPTIONS=-DIS_UEFI_MODULE -DMDEPKG_NDEBUG -DCLOVER_BUILD $(VBIOS_PATCH_CLOVEREFI_FLAG) $(ONLY_SATA_0_FLAG) $(BLOCKIO_FLAG) $(NOUSB_FLAG) $(NOUDMA_FLAG) $(AMD_FLAG) $(SECURE_BOOT_FLAG) $(ANDX86_FLAG) $(PS2MOUSE_LEGACYBOOT_FLAG) $(DEBUG_ON_SERIAL_PORT_FLAG) $(EXIT_USBKB_FLAG) $(JIEF_DEBUG_FLAG) -DDISABLE_NEW_DEPRECATED_INTERFACES -DOC_TARGET_DEBUG
!ifdef LESS_DEBUG
DEFINE LESS_DEBUG_FLAG = -DLESS_DEBUG
!endif

DEFINE BUILD_OPTIONS=-DIS_UEFI_MODULE -DMDEPKG_NDEBUG -DCLOVER_BUILD -DLESS_DEBUG $(VBIOS_PATCH_CLOVEREFI_FLAG) $(ONLY_SATA_0_FLAG) $(BLOCKIO_FLAG) $(NOUSB_FLAG) $(NOUDMA_FLAG) $(AMD_FLAG) $(SECURE_BOOT_FLAG) $(ANDX86_FLAG) $(PS2MOUSE_LEGACYBOOT_FLAG) $(DEBUG_ON_SERIAL_PORT_FLAG) $(EXIT_USBKB_FLAG) $(JIEF_DEBUG_FLAG) -DDISABLE_NEW_DEPRECATED_INTERFACES -DOC_TARGET_DEBUG

XCODE:DEBUG_*_*_CC_FLAGS =
XCODE:DEBUG_*_*_CXX_FLAGS =
Expand Down
2 changes: 1 addition & 1 deletion OpenCorePkg
2 changes: 2 additions & 0 deletions rEFIt_UEFI/Platform/KERNEL_AND_KEXT_PATCHES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ XBool ABSTRACT_PATCH::IsPatchEnabledByBuildNumber(const XString8& Build)
for (size_t i = 0; i < mos.size(); ++i) {
// dot represent MatchOS
MacOsVersion mosv = mos[i];
MsgLog("\n check matchBuild %s\n", mos[i].c_str());
if ( mos[i].contains(Build) ) { // MatchBuild
//DBG("\nthis patch will activated for OS %ls!\n", mos->array[i]);
ret = true;
Expand Down Expand Up @@ -52,6 +53,7 @@ XBool ABSTRACT_PATCH::IsPatchEnabled(const MacOsVersion& CurrOS)
for (size_t i = 0; i < mos.size(); ++i) {
// dot represent MatchOS
MacOsVersion mosv = mos[i];
MsgLog("\n check MatchOS %s\n", mos[i].c_str());
if ( CurrOS.match(mos[i]) ) {
//DBG("\nthis patch will activated for OS %ls!\n", mos->array[i]);
ret = true;
Expand Down
4 changes: 2 additions & 2 deletions rEFIt_UEFI/refit/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ void LOADER_ENTRY::FilterKernelPatches()
KernelAndKextPatches.KernelPatches[i].Label.c_str(),
macOSVersion.asString().c_str(),
KernelAndKextPatches.KernelPatches[i].MatchOS.notEmpty() ? KernelAndKextPatches.KernelPatches[i].MatchOS.c_str() : "All",
KernelAndKextPatches.KernelPatches[i].MatchBuild.notEmpty() ? KernelAndKextPatches.KernelPatches[i].MatchBuild.c_str() : "no"
KernelAndKextPatches.KernelPatches[i].MatchBuild.notEmpty() ? KernelAndKextPatches.KernelPatches[i].MatchBuild.c_str() : "All"
);
if (!gSettings.KernelAndKextPatches.KernelPatches[i].MenuItem.BValue) {
KernelAndKextPatches.KernelPatches[i].MenuItem.BValue = false;
Expand Down Expand Up @@ -492,7 +492,7 @@ void LOADER_ENTRY::FilterBootPatches()
KernelAndKextPatches.BootPatches[i].Label.c_str(),
macOSVersion.asString().c_str(),
KernelAndKextPatches.BootPatches[i].MatchOS.notEmpty() ? KernelAndKextPatches.BootPatches[i].MatchOS.c_str() : "All",
KernelAndKextPatches.BootPatches[i].MatchBuild.notEmpty() ? KernelAndKextPatches.BootPatches[i].MatchBuild.c_str() : "no"
KernelAndKextPatches.BootPatches[i].MatchBuild.notEmpty() ? KernelAndKextPatches.BootPatches[i].MatchBuild.c_str() : "All"
);
if (!gSettings.KernelAndKextPatches.BootPatches[i].MenuItem.BValue) {
DBG(" ==> disabled by user\n");
Expand Down

0 comments on commit 62ad226

Please sign in to comment.