From 45654bce16cd0415a672cdb83c7b9437a3a18349 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sat, 27 Aug 2022 13:00:20 -0600 Subject: [PATCH] build.py: Ensure WEG is installed on Mac Pro configs --- CHANGELOG.md | 1 + resources/build.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e6498ced..e5cd10060 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Avoids Apple's odd bug of publishing 2 different 12.5.1 products - Implement deeper macOS installer parsing - Provides better version detection than Apple provides in .app +- Ensure WhateverGreen is always installed on Mac Pro configurations ## 0.4.10 - Resolve Nvidia Kepler support in macOS 12.5 Beta 3 and newer diff --git a/resources/build.py b/resources/build.py index facf18913..1b13ee8e8 100644 --- a/resources/build.py +++ b/resources/build.py @@ -723,6 +723,8 @@ class BuildOpenCore: print("- Adding Mac Pro, Xserve DRM patches") self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] += " shikigva=128 unfairgva=1 -wegtree" + if not self.get_kext_by_bundle_path("WhateverGreen.kext")["Enabled"] is True: + self.enable_kext("WhateverGreen.kext", self.constants.whatevergreen_version, self.constants.whatevergreen_path) if not self.constants.custom_model: for i, device in enumerate(self.computer.gpus):