Skip to content

Commit

Permalink
Fix ThirdPartyDrives model detection
Browse files Browse the repository at this point in the history
Reference: #83
  • Loading branch information
khronokernel committed Mar 7, 2021
1 parent 65cb3cf commit 90274ee
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.0.15
- Add user-configurable OpenCore DEBUG builds
- Add user-configurable Wifi and GPU patches
- Fix ThirdPartyDrives model detection

## 0.0.14
- Enable ThirdPartyDrives to aid with hibernation on 3rd party SATA drives
Expand Down
12 changes: 12 additions & 0 deletions Resources/ModelArray.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,4 +801,16 @@

UGAtoGOP = [
"MacPro3,1"
]

NoSATAPatch = [
"MacBookAir5,1",
"MacBookAir5,2",
"MacBookPro10,1",
"MacBookPro10,2",
"iMac13,1",
"iMac13,2",
"iMac14,1",
"iMac14,2",
"iMac14,3",
]
5 changes: 5 additions & 0 deletions Resources/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ def build_efi(self):
print("- Adding UGA to GOP Patch")
self.config["UEFI"]["ProtocolOverrides"]["GopPassThrough"] = True

# ThridPartDrives Check
if self.model not in ModelArray.NoSATAPatch:
print("- Adding SATA Hibernation Patch")
self.config["Kernel"]["Quirks"]["ThirdPartyDrives"] = True

#DEBUG Settings
if self.constants.verbose_debug == True:
print("- Enabling Verbose boot")
Expand Down
2 changes: 1 addition & 1 deletion payloads/Config/v0.6.8/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@
<key>SetApfsTrimTimeout</key>
<integer>-1</integer>
<key>ThirdPartyDrives</key>
<true/>
<false/>
<key>XhciPortLimit</key>
<false/>
</dict>
Expand Down

0 comments on commit 90274ee

Please sign in to comment.