mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 22:50:51 +10:00
build: Implement KDKlessWorkaround
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
- Resolve Content Caching Patch Regression
|
- Resolve Content Caching Patch Regression
|
||||||
- Resolve KDK Versioning Fallback crashing when primary KDK site is down
|
- Resolve KDK Versioning Fallback crashing when primary KDK site is down
|
||||||
- Resolve AirPlay to Mac support on Ventura with VMM
|
- Resolve AirPlay to Mac support on Ventura with VMM
|
||||||
|
- Resolve WindowServer crashing on KDK-less with macOS 13.2 and Rapid Security Response updates
|
||||||
- Increment Binaries:
|
- Increment Binaries:
|
||||||
- OpenCorePkg 0.8.7 - release
|
- OpenCorePkg 0.8.7 - release
|
||||||
- FeatureUnlock 1.1.2 - rolling (94e29ce)
|
- FeatureUnlock 1.1.2 - rolling (94e29ce)
|
||||||
|
|||||||
@@ -1527,6 +1527,24 @@
|
|||||||
<key>PlistPath</key>
|
<key>PlistPath</key>
|
||||||
<string>Contents/Info.plist</string>
|
<string>Contents/Info.plist</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Arch</key>
|
||||||
|
<string>x86_64</string>
|
||||||
|
<key>BundlePath</key>
|
||||||
|
<string>KDKlessWorkaround.kext</string>
|
||||||
|
<key>Comment</key>
|
||||||
|
<string>KDKlessWorkaround</string>
|
||||||
|
<key>Enabled</key>
|
||||||
|
<false/>
|
||||||
|
<key>ExecutablePath</key>
|
||||||
|
<string>Contents/MacOS/KDKlessWorkaround</string>
|
||||||
|
<key>MaxKernel</key>
|
||||||
|
<string></string>
|
||||||
|
<key>MinKernel</key>
|
||||||
|
<string>22.0.0</string>
|
||||||
|
<key>PlistPath</key>
|
||||||
|
<string>Contents/Info.plist</string>
|
||||||
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>Block</key>
|
<key>Block</key>
|
||||||
<array/>
|
<array/>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -33,6 +33,7 @@ class build_misc:
|
|||||||
self.debug_handling()
|
self.debug_handling()
|
||||||
self.cpu_friend_handling()
|
self.cpu_friend_handling()
|
||||||
self.general_oc_handling()
|
self.general_oc_handling()
|
||||||
|
self.aux_kc_workaround()
|
||||||
|
|
||||||
def feature_unlock_handling(self):
|
def feature_unlock_handling(self):
|
||||||
if self.constants.fu_status is True:
|
if self.constants.fu_status is True:
|
||||||
@@ -228,3 +229,23 @@ class build_misc:
|
|||||||
print("- Setting Vault configuration")
|
print("- Setting Vault configuration")
|
||||||
self.config["Misc"]["Security"]["Vault"] = "Secure"
|
self.config["Misc"]["Security"]["Vault"] = "Secure"
|
||||||
support.build_support(self.model, self.constants, self.config).get_efi_binary_by_path("OpenShell.efi", "Misc", "Tools")["Enabled"] = False
|
support.build_support(self.model, self.constants, self.config).get_efi_binary_by_path("OpenShell.efi", "Misc", "Tools")["Enabled"] = False
|
||||||
|
|
||||||
|
def aux_kc_workaround(self):
|
||||||
|
gpu_dict = []
|
||||||
|
if not self.constants.custom_model:
|
||||||
|
gpu_dict = self.constants.computer.gpus
|
||||||
|
else:
|
||||||
|
if self.model in smbios_data.smbios_dictionary:
|
||||||
|
gpu_dict = smbios_data.smbios_dictionary[self.model]["Stock GPUs"]
|
||||||
|
for gpu in gpu_dict:
|
||||||
|
if not self.constants.custom_model:
|
||||||
|
gpu = gpu.arch
|
||||||
|
if gpu in [
|
||||||
|
device_probe.Intel.Archs.Ivy_Bridge,
|
||||||
|
device_probe.Intel.Archs.Haswell,
|
||||||
|
device_probe.Intel.Archs.Broadwell,
|
||||||
|
device_probe.Intel.Archs.Skylake,
|
||||||
|
device_probe.NVIDIA.Archs.Kepler,
|
||||||
|
]:
|
||||||
|
support.build_support(self.model, self.constants, self.config).enable_kext("KDKlessWorkaround.kext", self.constants.kdkless_version, self.constants.kdkless_path)
|
||||||
|
break
|
||||||
@@ -98,6 +98,10 @@ class Constants:
|
|||||||
## https://github.com/blackgate/AMDGPUWakeHandler
|
## https://github.com/blackgate/AMDGPUWakeHandler
|
||||||
self.gpu_wake_version = "1.0.0"
|
self.gpu_wake_version = "1.0.0"
|
||||||
|
|
||||||
|
## flagersgit
|
||||||
|
## https://github.com/flagersgit/KDKlessWorkaround
|
||||||
|
self.kdkless_version = "1.0.0"
|
||||||
|
|
||||||
# Get resource path
|
# Get resource path
|
||||||
self.current_path = Path(__file__).parent.parent.resolve()
|
self.current_path = Path(__file__).parent.parent.resolve()
|
||||||
self.payload_path = self.current_path / Path("payloads")
|
self.payload_path = self.current_path / Path("payloads")
|
||||||
@@ -462,6 +466,10 @@ class Constants:
|
|||||||
def apple_raid_path(self):
|
def apple_raid_path(self):
|
||||||
return self.payload_kexts_path / Path(f"Misc/AppleRAIDCard-v{self.apple_raid_version}.zip")
|
return self.payload_kexts_path / Path(f"Misc/AppleRAIDCard-v{self.apple_raid_version}.zip")
|
||||||
|
|
||||||
|
@property
|
||||||
|
def kdkless_path(self):
|
||||||
|
return self.payload_kexts_path / Path(f"Misc/KDKlessWorkaround-v{self.kdkless_version}-{self.kext_variant}.zip")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def plist_folder_path(self):
|
def plist_folder_path(self):
|
||||||
return self.payload_kexts_path / Path("Plists")
|
return self.payload_kexts_path / Path("Plists")
|
||||||
|
|||||||
Reference in New Issue
Block a user