mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
build: Test RE kern.hv_vmm_present routing
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -119,10 +119,8 @@ class BuildMiscellaneous:
|
|||||||
|
|
||||||
re_patch_args = []
|
re_patch_args = []
|
||||||
|
|
||||||
# Resolve content caching when kern.hv_vmm_present is set
|
if self.constants.allow_oc_everywhere is False and self.constants.serial_settings == "None":
|
||||||
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:
|
re_patch_args.append("sbvmm")
|
||||||
logging.info("- Fixing Content Caching support")
|
|
||||||
re_patch_args.append("asset")
|
|
||||||
|
|
||||||
# Resolve CoreGraphics.framework crashing on Ivy Bridge in macOS 13.3+
|
# Resolve CoreGraphics.framework crashing on Ivy Bridge in macOS 13.3+
|
||||||
# Ref: https://github.com/acidanthera/RestrictEvents/pull/12
|
# Ref: https://github.com/acidanthera/RestrictEvents/pull/12
|
||||||
|
|||||||
@@ -76,9 +76,4 @@ class BuildSecurity:
|
|||||||
|
|
||||||
if self.constants.secure_status is False:
|
if self.constants.secure_status is False:
|
||||||
logging.info("- Disabling SecureBootModel")
|
logging.info("- Disabling SecureBootModel")
|
||||||
self.config["Misc"]["Security"]["SecureBootModel"] = "Disabled"
|
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
|
|
||||||
@@ -41,10 +41,6 @@ class BuildSMBIOS:
|
|||||||
logging.info("- Enabling Board ID exemption patch")
|
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
|
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:
|
else:
|
||||||
logging.info("- Enabling SMC exemption patch")
|
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
|
support.BuildSupport(self.model, self.constants, self.config).get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.driver.AppleSMC")["Enabled"] = True
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class Constants:
|
|||||||
self.airportbcrmfixup_version: str = "2.1.7" # AirPortBrcmFixup
|
self.airportbcrmfixup_version: str = "2.1.7" # AirPortBrcmFixup
|
||||||
self.nvmefix_version: str = "1.1.0" # NVMeFix
|
self.nvmefix_version: str = "1.1.0" # NVMeFix
|
||||||
self.applealc_version: str = "1.6.3" # AppleALC
|
self.applealc_version: str = "1.6.3" # AppleALC
|
||||||
self.restrictevents_version: str = "1.1.1" # RestrictEvents
|
self.restrictevents_version: str = "1.1.2" # RestrictEvents
|
||||||
self.featureunlock_version: str = "1.1.4" # FeatureUnlock
|
self.featureunlock_version: str = "1.1.4" # FeatureUnlock
|
||||||
self.debugenhancer_version: str = "1.0.7" # DebugEnhancer
|
self.debugenhancer_version: str = "1.0.7" # DebugEnhancer
|
||||||
self.cpufriend_version: str = "1.2.6" # CPUFriend
|
self.cpufriend_version: str = "1.2.6" # CPUFriend
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ class RemoteInstallerCatalog:
|
|||||||
Parses Apple's Software Update catalog and finds all macOS installers.
|
Parses Apple's Software Update catalog and finds all macOS installers.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, seed_override: SeedType = SeedType.PublicRelease, os_override: int = os_data.os_data.ventura) -> None:
|
def __init__(self, seed_override: SeedType = SeedType.PublicRelease, os_override: int = os_data.os_data.sonoma) -> None:
|
||||||
|
|
||||||
self.catalog_url: str = self._construct_catalog_url(seed_override, os_override)
|
self.catalog_url: str = self._construct_catalog_url(seed_override, os_override)
|
||||||
|
|
||||||
@@ -421,8 +421,7 @@ class RemoteInstallerCatalog:
|
|||||||
return {}
|
return {}
|
||||||
|
|
||||||
newest_apps: dict = self.available_apps.copy()
|
newest_apps: dict = self.available_apps.copy()
|
||||||
supported_versions = ["10.13", "10.14", "10.15", "11", "12", "13"]
|
supported_versions = ["10.13", "10.14", "10.15", "11", "12", "13", "14"]
|
||||||
|
|
||||||
|
|
||||||
for version in supported_versions:
|
for version in supported_versions:
|
||||||
remote_version_minor = 0
|
remote_version_minor = 0
|
||||||
@@ -489,11 +488,6 @@ class RemoteInstallerCatalog:
|
|||||||
newest_apps.pop(ia)
|
newest_apps.pop(ia)
|
||||||
break
|
break
|
||||||
|
|
||||||
# Remove unsupported versions (namely 14)
|
|
||||||
for ia in list(newest_apps):
|
|
||||||
if newest_apps[ia]["Version"].split(".")[0] not in supported_versions:
|
|
||||||
newest_apps.pop(ia)
|
|
||||||
|
|
||||||
return newest_apps
|
return newest_apps
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user