Skip to content

Commit

Permalink
Implement Automatic Rosetta Cryptex installation
Browse files Browse the repository at this point in the history
Drops need for manual OS.dmg swapping on pre-Haswell
  • Loading branch information
khronokernel committed Sep 25, 2022
1 parent 4ef2c00 commit 653692f
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -27,6 +27,8 @@
- Implement KDK-less root patching for Metal Intel and Nvidia GPUs
- AMD GCN will still require a KDK installed for patching
- Resolve OpenCL support for legacy Metal Intel iGPUs
- Implement Automatic Rosetta Cryptex installation on OS installs and updates
- Drops need for manual OS.dmg swapping on pre-Haswell
- Increment Binaries:
- OpenCorePkg 0.8.3 release
- Lilu 1.6.2 - release
Expand Down
18 changes: 18 additions & 0 deletions payloads/Config/config.plist
Expand Up @@ -1455,6 +1455,24 @@
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key>
<string>CryptexFixup.kext</string>
<key>Comment</key>
<string>CryptexFixup</string>
<key>Enabled</key>
<false/>
<key>ExecutablePath</key>
<string>Contents/MacOS/CryptexFixup</string>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string>22.0.0</string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
</array>
<key>Block</key>
<array/>
Expand Down
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions resources/build.py
Expand Up @@ -1072,6 +1072,7 @@ def amd_patch(self, backlight_path):
# Lets us check in sys_patch.py if config supports FileVault
self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Settings"] += " -allow_fv"
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.cpu_data.ivy_bridge.value:
self.enable_kext("CryptexFixup.kext", self.constants.cryptexfixup_version, self.constants.cryptexfixup_path)
print("- Allowing swapped dyld shared cache in Ventura")
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Disable Root Hash validation")["Enabled"] = True
if self.constants.disable_msr_power_ctl is True:
Expand Down
5 changes: 5 additions & 0 deletions resources/constants.py
Expand Up @@ -45,6 +45,7 @@ def __init__(self):
self.bluetool_version = "2.6.3" # BlueToolFixup (BrcmPatchRAM)
self.cslvfixup_version = "2.6.1" # CSLVFixup
self.autopkg_version = "1.0.1" # AutoPkgInstaller
self.cryptexfixup_version = "1.0.0" # CryptexFixup

## Apple
## https://www.apple.com
Expand Down Expand Up @@ -412,6 +413,10 @@ def cslvfixup_path(self):
def autopkg_path(self):
return self.payload_kexts_path / Path(f"Acidanthera/AutoPkgInstaller-v{self.autopkg_version}-{self.kext_variant}.zip")

@property
def cryptexfixup_path(self):
return self.payload_kexts_path / Path(f"Acidanthera/CryptexFixup-v{self.cryptexfixup_version}-{self.kext_variant}.zip")

@property
def innie_path(self):
return self.payload_kexts_path / Path(f"Misc/Innie-v{self.innie_version}.zip")
Expand Down

0 comments on commit 653692f

Please sign in to comment.