From 9b4c66f3d3c19e34cbb4d28200aab25ef9393462 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Wed, 31 Mar 2021 19:37:02 -0600 Subject: [PATCH] Fix Ironlake typo --- Resources/Constants.py | 23 +++++++++++++++++++++-- Resources/ModelArray.py | 2 ++ Resources/SysPatch.py | 2 ++ 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Resources/Constants.py b/Resources/Constants.py index ff325a753..e84310277 100644 --- a/Resources/Constants.py +++ b/Resources/Constants.py @@ -229,7 +229,7 @@ class Constants: @property def legacy_amd_path(self): return self.legacy_graphics / Path("AMD-ATI") @property - def legacy_intel_gen1_path(self): return self.legacy_graphics / Path("Intel-Gen5-Iconlake") + def legacy_intel_gen1_path(self): return self.legacy_graphics / Path("Intel-Gen5-Ironlake") @property def legacy_intel_gen2_path(self): return self.legacy_graphics / Path("Intel-Gen6-SandyBridge") @@ -264,4 +264,23 @@ class Constants: "CSR_ALLOW_UNAPPROVED_KEXTS ": False, # 0x200 - Introduced in High Sierra "CSR_ALLOW_EXECUTABLE_POLICY_OVERRIDE": False, # 0x400 - Introduced in Mojave "CSR_ALLOW_UNAUTHENTICATED_ROOT ": False, # 0x800 - Introduced in Big Sur - } \ No newline at end of file + } + + sbm_values = [ + "j137", + "j680", + "j132", + "j174", + "j140k", + "j780", + "j213", + "j140a", + "j152f", + "j160", + "j230k", + "j214k", + "j223", + "j215", + "j185", + "j185f", + ] \ No newline at end of file diff --git a/Resources/ModelArray.py b/Resources/ModelArray.py index fc1611223..0b6d8f0cc 100644 --- a/Resources/ModelArray.py +++ b/Resources/ModelArray.py @@ -879,6 +879,7 @@ AddIntelGen1Accel = [ "AppleIntelHDGraphicsGA.plugin", "AppleIntelHDGraphicsGLDriver.bundle", "AppleIntelHDGraphicsVADriver.bundle", + "IOSurface.kext", ] AddIntelGen2Accel = [ @@ -888,4 +889,5 @@ AddIntelGen2Accel = [ "AppleIntelHD3000GraphicsVADriver.bundle", "AppleIntelSNBGraphicsFB.kext", "AppleIntelSNBVA.bundle", + "IOSurface.kext", ] diff --git a/Resources/SysPatch.py b/Resources/SysPatch.py index fd0bc4778..8e265913d 100644 --- a/Resources/SysPatch.py +++ b/Resources/SysPatch.py @@ -114,9 +114,11 @@ class PatchSysVolume: self.add_new_binaries(ModelArray.AddAMDAccel11, self.constants.legacy_amd_path) if self.model in ModelArray.LegacyGPUIntelGen1: print("- Merging legacy Intel 1st Gen Kexts and Bundles") + self.delete_old_binaries(ModelArray.DeleteNvidiaAccel11) self.add_new_binaries(ModelArray.AddIntelGen1Accel, self.constants.legacy_intel_gen1_path) elif self.model in ModelArray.LegacyGPUIntelGen2: print("- Merging legacy Intel 2nd Gen Kexts and Bundles") + self.delete_old_binaries(ModelArray.DeleteNvidiaAccel11) self.add_new_binaries(ModelArray.AddIntelGen2Accel, self.constants.legacy_intel_gen2_path) # iMac10,1 came in both AMD and Nvidia GPU models, so we must do hardware detection if self.model == "iMac10,1":