mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 20:10:14 +10:00
Increase model range of S1X/S3X kext inclusion
While stock systems with S1X/S3X drives only include Broadwell to Kaby Lake Macs, Haswell Macs and MacPro6,1 are able to use these drives as well, causing issues when building OpenCore for those models from a different machine.
This commit is contained in:
committed by
GitHub
parent
fc5b250d41
commit
df28ea288a
@@ -152,7 +152,7 @@ class BuildStorage:
|
|||||||
# Apple's usage of the S1X and S3X is quite sporadic and inconsistent, so we'll try a catch all for units with NVMe drives
|
# Apple's usage of the S1X and S3X is quite sporadic and inconsistent, so we'll try a catch all for units with NVMe drives
|
||||||
if self.constants.custom_model and self.model in smbios_data.smbios_dictionary:
|
if self.constants.custom_model and self.model in smbios_data.smbios_dictionary:
|
||||||
if "CPU Generation" in smbios_data.smbios_dictionary[self.model]:
|
if "CPU Generation" in smbios_data.smbios_dictionary[self.model]:
|
||||||
if cpu_data.CPUGen.broadwell <= smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.CPUGen.kaby_lake:
|
if cpu_data.CPUGen.haswell <= smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.CPUGen.kaby_lake or self.model in [ "MacPro6,1" ]:
|
||||||
support.BuildSupport(self.model, self.constants, self.config).enable_kext("IOS3XeFamily.kext", self.constants.s3x_nvme_version, self.constants.s3x_nvme_path)
|
support.BuildSupport(self.model, self.constants, self.config).enable_kext("IOS3XeFamily.kext", self.constants.s3x_nvme_version, self.constants.s3x_nvme_path)
|
||||||
|
|
||||||
# Apple RAID Card check
|
# Apple RAID Card check
|
||||||
@@ -193,4 +193,4 @@ class BuildStorage:
|
|||||||
|
|
||||||
if self.constants.apfs_trim_timeout is False:
|
if self.constants.apfs_trim_timeout is False:
|
||||||
logging.info(f"- Disabling APFS TRIM timeout")
|
logging.info(f"- Disabling APFS TRIM timeout")
|
||||||
self.config["Kernel"]["Quirks"]["SetApfsTrimTimeout"] = 0
|
self.config["Kernel"]["Quirks"]["SetApfsTrimTimeout"] = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user