mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
build: Test RE kern.hv_vmm_present routing
This commit is contained in:
@@ -119,10 +119,8 @@ class BuildMiscellaneous:
|
||||
|
||||
re_patch_args = []
|
||||
|
||||
# Resolve content caching when kern.hv_vmm_present is set
|
||||
if support.BuildSupport(self.model, self.constants, self.config).get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Reroute kern.hv_vmm_present patch (1)")["Enabled"] is True and self.constants.set_content_caching is True:
|
||||
logging.info("- Fixing Content Caching support")
|
||||
re_patch_args.append("asset")
|
||||
if self.constants.allow_oc_everywhere is False and self.constants.serial_settings == "None":
|
||||
re_patch_args.append("sbvmm")
|
||||
|
||||
# Resolve CoreGraphics.framework crashing on Ivy Bridge in macOS 13.3+
|
||||
# Ref: https://github.com/acidanthera/RestrictEvents/pull/12
|
||||
|
||||
@@ -76,9 +76,4 @@ class BuildSecurity:
|
||||
|
||||
if self.constants.secure_status is False:
|
||||
logging.info("- Disabling SecureBootModel")
|
||||
self.config["Misc"]["Security"]["SecureBootModel"] = "Disabled"
|
||||
if self.constants.force_vmm is True:
|
||||
logging.info("- Forcing VMM patchset to support OTA updates")
|
||||
support.BuildSupport(self.model, self.constants, self.config).get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Reroute kern.hv_vmm_present patch (1)")["Enabled"] = True
|
||||
support.BuildSupport(self.model, self.constants, self.config).get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Reroute kern.hv_vmm_present patch (2) Legacy")["Enabled"] = True
|
||||
support.BuildSupport(self.model, self.constants, self.config).get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Reroute kern.hv_vmm_present patch (2) Ventura")["Enabled"] = True
|
||||
self.config["Misc"]["Security"]["SecureBootModel"] = "Disabled"
|
||||
@@ -41,10 +41,6 @@ class BuildSMBIOS:
|
||||
logging.info("- Enabling Board ID exemption patch")
|
||||
support.BuildSupport(self.model, self.constants, self.config).get_item_by_kv(self.config["Booter"]["Patch"], "Comment", "Skip Board ID check")["Enabled"] = True
|
||||
|
||||
logging.info("- Enabling VMM exemption patch")
|
||||
support.BuildSupport(self.model, self.constants, self.config).get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Reroute kern.hv_vmm_present patch (1)")["Enabled"] = True
|
||||
support.BuildSupport(self.model, self.constants, self.config).get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Reroute kern.hv_vmm_present patch (2) Legacy")["Enabled"] = True
|
||||
support.BuildSupport(self.model, self.constants, self.config).get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Reroute kern.hv_vmm_present patch (2) Ventura")["Enabled"] = True
|
||||
else:
|
||||
logging.info("- Enabling SMC exemption patch")
|
||||
support.BuildSupport(self.model, self.constants, self.config).get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.driver.AppleSMC")["Enabled"] = True
|
||||
|
||||
Reference in New Issue
Block a user