From df28ea288a9321333200f6db89956aff629965f6 Mon Sep 17 00:00:00 2001 From: Eva Isabella Luna Date: Thu, 22 Aug 2024 18:18:57 -0400 Subject: [PATCH] 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. --- opencore_legacy_patcher/efi_builder/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opencore_legacy_patcher/efi_builder/storage.py b/opencore_legacy_patcher/efi_builder/storage.py index e7b10410f..bed24c556 100644 --- a/opencore_legacy_patcher/efi_builder/storage.py +++ b/opencore_legacy_patcher/efi_builder/storage.py @@ -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 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_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) # Apple RAID Card check @@ -193,4 +193,4 @@ class BuildStorage: if self.constants.apfs_trim_timeout is False: logging.info(f"- Disabling APFS TRIM timeout") - self.config["Kernel"]["Quirks"]["SetApfsTrimTimeout"] = 0 \ No newline at end of file + self.config["Kernel"]["Quirks"]["SetApfsTrimTimeout"] = 0