build.py: Add AVXpel-based NoAVX kext

Resolves Zlib-based instability in Ventura on pre-Sandy Bridge Macs

Credit to @educovas for developing
This commit is contained in:
Mykola Grymalyuk
2022-09-21 18:45:29 -06:00
parent daf28a62ef
commit 92ff4244ae
4 changed files with 25 additions and 1 deletions
+1
View File
@@ -268,6 +268,7 @@ class BuildOpenCore:
# To verify the non-AVX kext is used, check IOService for 'com_apple_AppleFSCompression_NoAVXCompressionTypeZlib'
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] < cpu_data.cpu_data.sandy_bridge.value:
self.enable_kext("NoAVXFSCompressionTypeZlib.kext", self.constants.apfs_zlib_version, self.constants.apfs_zlib_path)
self.enable_kext("NoAVXFSCompressionTypeZlib-AVXpel.kext", self.constants.apfs_zlib_v2_version, self.constants.apfs_zlib_v2_path)
if not self.constants.custom_model and (self.constants.allow_oc_everywhere is True or self.model in model_array.MacPro):
# Use Innie's same logic: