Skip to content

Commit

Permalink
Misc fixes
Browse files Browse the repository at this point in the history
Closes #53
Closes #47
Closes #52
  • Loading branch information
khronokernel committed Feb 8, 2021
1 parent c655c4a commit 8ed5fd8
Show file tree
Hide file tree
Showing 11 changed files with 64 additions and 12 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# OpenCore Legacy Patcher changelog

## 0.0.10
- Increment binaries
- OpenCore 43f5339(0.6.6 release)
- Lilu d107554(1.5.1 release)
- WhateverGreen 9e53d8a(1.4.7 release)
- Add IDE support to MacPro3,1
- Set SecureBootModel to iMac Pro(should aid in booting older OSes with OpenCore)
- Update MacBookPro SMBIOS

## 0.0.9
- Resolve firmware install issues bricking Macs

Expand Down
2 changes: 1 addition & 1 deletion OpenCore-Patcher.command
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ except NameError:
pass

# List build versions
patcher_version = "0.0.9"
patcher_version = "0.0.10"

CustomSMBIOS=False
MainMenu=True
Expand Down
14 changes: 11 additions & 3 deletions Resources/BuildOpenCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@ def BuildEFI():
"<true/><!--SSDT-CPBG-->"
)

if current_model in ModelArray.IDEPatch:
print("- Adding AppleIntelPIIXATA v%s" % Versions.piixata_version)
copy(Versions.piixata_path, Versions.kext_path_build)
Versions.plist_data = Versions.plist_data.replace(
"<false/><!--AppleIntelPIIXATA-->",
"<true/><!--AppleIntelPIIXATA-->"
)

usb_map_path = os.path.join(Versions.current_path, "payloads/Kexts/Maps/Zip/" "USB-Map-%s.zip" % current_model)
if os.path.exists(usb_map_path):
print("- Adding USB Map for %s" % current_model)
Expand Down Expand Up @@ -277,9 +285,9 @@ def BuildSMBIOS():
elif current_model in ModelArray.MacBookPro111:
print("- Spoofing to MacBookPro11,1")
new_model = "MacBookPro11,1"
elif current_model in ModelArray.MacBookPro112:
print("- Spoofing to MacBookPro11,2")
new_model = "MacBookPro11,2"
elif current_model in ModelArray.MacBookPro113:
print("- Spoofing to MacBookPro11,3")
new_model = "MacBookPro11,3"
elif current_model in ModelArray.Macmini71:
print("- Spoofing to Macmini7,1")
new_model = "Macmini7,1"
Expand Down
6 changes: 5 additions & 1 deletion Resources/ModelArray.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@
"MacBookPro10,2",
]

IDEPatch = [
"MacPro3,1"
]

# 11" Air
MacBookAir61 = [
"MacBookAir3,1",
Expand Down Expand Up @@ -424,7 +428,7 @@

# MacBook Pro 15" and 17"

MacBookPro112 = [
MacBookPro113 = [
"MacBookPro3,1",
"MacBookPro4,1",
"MacBookPro5,1",
Expand Down
6 changes: 4 additions & 2 deletions Resources/Versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

# List build versions
opencore_version = "0.6.6"
lilu_version = "1.5.0"
whatevergreen_version = "1.4.6"
lilu_version = "1.5.1"
whatevergreen_version = "1.4.7"
airportbcrmfixup_version = "2.1.2"
bcm570_version = "1.0.0"
marvel_version = "1.0.0"
Expand All @@ -25,6 +25,7 @@
io80211mojave_version = "1.0.0"
voodoohda_version = "296"
restrictevents_version = "1.0.0"
piixata_version = "1.0.0"

# List current location
os.chdir(os.path.dirname(os.path.realpath(__file__)))
Expand All @@ -51,6 +52,7 @@
marvel_path = os.path.join(current_path, "payloads/Kexts/Ethernet/" "MarvelYukonEthernet-v%s.zip" % marvel_version)
nforce_path = os.path.join(current_path, "payloads/Kexts/Ethernet/" "nForceEthernet-v%s.zip" % nforce_version)
mce_path = os.path.join(current_path, "payloads/Kexts/Misc/" "AppleMCEReporterDisabler-v%s.zip" % mce_version)
piixata_path = os.path.join(current_path, "payloads/Kexts/Misc/" "AppleIntelPIIXATA-v%s.zip" % piixata_version)
mousse_path = os.path.join(current_path, "payloads/Kexts/SSE/" "AAAMouSSE-v%s.zip" % mousse_version)
telemetrap_path = os.path.join(current_path, "payloads/Kexts/SSE/" "telemetrap-v%s.zip" % telemetrap_version)
io80211high_sierra_path = os.path.join(current_path, "payloads/Kexts/Wifi/" "IO80211HighSierra-v%s.zip" % io80211high_sierra_version)
Expand Down
2 changes: 1 addition & 1 deletion payloads/Config/v0.6.5/config.plist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!--OpenCore 0.6.4 config-->
<!--OpenCore 0.6.5 config-->
<dict>
<key>ACPI</key>
<dict>
Expand Down
37 changes: 33 additions & 4 deletions payloads/Config/v0.6.6/config.plist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!--OpenCore 0.6.4 config-->
<!--OpenCore 0.6.6 config-->
<dict>
<key>ACPI</key>
<dict>
Expand Down Expand Up @@ -117,6 +117,9 @@
<dict>
<key>MmioWhitelist</key>
<array/>
<key>Patch</key>
<array>
</array>
<key>Quirks</key>
<dict>
<key>AllowRelocationBlock</key>
Expand Down Expand Up @@ -462,6 +465,24 @@
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>Comment</key>
<string>AppleIntelPIIXATA</string>
<key>Enabled</key>
<false/><!--AppleIntelPIIXATA-->
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string>20.0.0</string>
<key>BundlePath</key>
<string>AppleIntelPIIXATA.kext</string>
<key>ExecutablePath</key>
<string>Contents/MacOS/AppleIntelPIIXATA</string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
Expand Down Expand Up @@ -565,6 +586,8 @@
<false/>
<key>PowerTimeoutKernelPanic</key>
<false/>
<key>SetApfsTrimTimeout</key>
<integer>-1</integer>
<key>ThirdPartyDrives</key>
<false/>
<key>XhciPortLimit</key>
Expand Down Expand Up @@ -592,6 +615,10 @@
<string>Auto</string>
<key>HideAuxiliary</key>
<true/>
<key>LauncherPath</key>
<string>Full</string>
<key>LauncherOption</key>
<string>Default</string>
<key>PickerAttributes</key>
<integer>1</integer>
<key>PickerAudioAssist</key>
Expand Down Expand Up @@ -640,8 +667,6 @@
<integer>0</integer>
<key>AuthRestart</key>
<false/>
<key>BootProtect</key>
<string>Bootstrap</string>
<key>BlacklistAppleUpdate</key>
<true/>
<key>DmgLoading</key>
Expand All @@ -659,7 +684,7 @@
<key>ScanPolicy</key>
<integer>0</integer>
<key>SecureBootModel</key>
<string>x86legacy</string>
<string>j137</string>
<key>Vault</key>
<string>Optional</string>
</dict>
Expand Down Expand Up @@ -817,6 +842,8 @@
<true/>
<key>UpdateSMBIOSMode</key>
<string>Create</string>
<key>UseRawUuidEncoding</key>
<false/>
</dict>
<key>UEFI</key>
<dict>
Expand Down Expand Up @@ -951,6 +978,8 @@
</dict>
<key>Quirks</key>
<dict>
<key>DisableSecurityPolicy</key>
<false/>
<key>ExitBootServicesDelay</key>
<integer>0</integer>
<key>IgnoreInvalidFlexRatio</key>
Expand Down
Binary file added payloads/Kexts/Acidanthera/Lilu-v1.5.1.zip
Binary file not shown.
Binary file not shown.
Binary file added payloads/Kexts/Misc/AppleIntelPIIXATA-v1.0.0.zip
Binary file not shown.
Binary file modified payloads/OpenCore/OpenCore-v0.6.6.zip
Binary file not shown.

0 comments on commit 8ed5fd8

Please sign in to comment.