misc.py: Fix CPUFriend handling

This commit is contained in:
Mykola Grymalyuk
2023-03-28 21:03:42 -06:00
parent 06350355ff
commit bb6ef48e95

View File

@@ -133,13 +133,7 @@ class BuildMiscellaneous:
CPUFriend Handler CPUFriend Handler
""" """
if self.constants.disallow_cpufriend is True: if self.constants.allow_oc_everywhere is False and self.model not in ["iMac7,1", "Xserve2,1", "Dortania1,1"] and self.constants.disallow_cpufriend is False and self.constants.serial_settings != "None":
return
if self.model not in ["iMac7,1", "Xserve2,1", "Dortania1,1"]:
return
if self.constants.serial_settings == "None":
return
support.BuildSupport(self.model, self.constants, self.config).enable_kext("CPUFriend.kext", self.constants.cpufriend_version, self.constants.cpufriend_path) support.BuildSupport(self.model, self.constants, self.config).enable_kext("CPUFriend.kext", self.constants.cpufriend_version, self.constants.cpufriend_path)
# CPUFriendDataProvider handling # CPUFriendDataProvider handling