diff --git a/CHANGELOG.md b/CHANGELOG.md index e00e9cf8e..55b8ea619 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ - Set iGPU-less iMacs to iMacPro1,1 - Additionally fixes Bluetooth on older iMacs with BRCM2046 modules - Add MacBook4,1 support +- Create dedicated RestrictEvents build for MacBookPro9,1 +- Fix Mac Pro and Xserve output issues ## 0.0.19 - Add SMC-Spoof.kext to avoid triggering `smcupdater` diff --git a/Resources/Constants.py b/Resources/Constants.py index 3a6e700b3..64ea4b0e9 100644 --- a/Resources/Constants.py +++ b/Resources/Constants.py @@ -24,7 +24,8 @@ class Constants: self.io80211high_sierra_version = "1.0.0" self.io80211mojave_version = "1.0.0" self.voodoohda_version = "296" - self.restrictevents_version = "1.0.1" + self.restrictevents_version = "1.0.0" + self.restrictevents_mbp_version = "1.0.1" self.piixata_version = "1.0.0" self.backlight_version = "1.0.0" self.cpufriend_version = "1.2.3" @@ -107,6 +108,8 @@ class Constants: @property def restrictevents_path(self): return self.payload_kexts_path / Path(f"Acidanthera/RestrictEvents-v{self.restrictevents_version}.zip") @property + def restrictevents_mbp_path(self): return self.payload_kexts_path / Path(f"Acidanthera/RestrictEvents-MBP91-v{self.restrictevents_mbp_version}.zip") + @property def bcm570_path(self): return self.payload_kexts_path / Path(f"Ethernet/CatalinaBCM5701Ethernet-v{self.bcm570_version}.zip") @property def marvel_path(self): return self.payload_kexts_path / Path(f"Ethernet/MarvelYukonEthernet-v{self.marvel_version}.zip") diff --git a/Resources/build.py b/Resources/build.py index bde10559d..af9a58b4e 100644 --- a/Resources/build.py +++ b/Resources/build.py @@ -75,7 +75,8 @@ class BuildOpenCore: # Essential kexts ("Lilu.kext", self.constants.lilu_version, self.constants.lilu_path, lambda: True), ("WhateverGreen.kext", self.constants.whatevergreen_version, self.constants.whatevergreen_path, lambda: True), - ("RestrictEvents.kext", self.constants.restrictevents_version, self.constants.restrictevents_path, lambda: (self.model in ModelArray.MacPro71) or (self.model == "MacBookPro9,1")), + ("RestrictEvents.kext", self.constants.restrictevents_version, self.constants.restrictevents_path, lambda: self.model in ModelArray.MacPro71), + ("RestrictEvents.kext", self.constants.restrictevents_mbp_version, self.constants.restrictevents_mbp_path, lambda: self.model == "MacBookPro9,1"), ("NightShiftEnabler.kext", self.constants.nightshift_version, self.constants.nightshift_path, lambda: self.model not in ModelArray.NightShiftExclude), ("SMC-Spoof.kext", self.constants.smcspoof_version, self.constants.smcspoof_path, lambda: True), # CPU patches diff --git a/payloads/Kexts/Acidanthera/RestrictEvents-v1.0.1.zip b/payloads/Kexts/Acidanthera/RestrictEvents-MBP91-v1.0.1.zip similarity index 100% rename from payloads/Kexts/Acidanthera/RestrictEvents-v1.0.1.zip rename to payloads/Kexts/Acidanthera/RestrictEvents-MBP91-v1.0.1.zip diff --git a/payloads/Kexts/Acidanthera/RestrictEvents-v1.0.0.zip b/payloads/Kexts/Acidanthera/RestrictEvents-v1.0.0.zip new file mode 100644 index 000000000..fc555ba7d Binary files /dev/null and b/payloads/Kexts/Acidanthera/RestrictEvents-v1.0.0.zip differ