Skip to content

Commit

Permalink
Add AGDP patch for dual GPU models
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Dec 3, 2020
1 parent 33df90c commit e284214
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Resources/BuildOpenCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ def BuildEFI():
"USB-Map-SMBIOS.kext",
map_name
)

if current_model in ModelArray.DualGPUPatch:
print("- Adding dual GPU patch")
Versions.plist_data = Versions.plist_data.replace(
"debug=0x100",
"debug=0x100 agdpmod=pikera"
)


def BuildGUI():
print("- Adding OpenCanopy GUI")
Expand Down
20 changes: 20 additions & 0 deletions Resources/ModelArray.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,26 @@
"iMac14,3"
]

DualGPUPatch = [
"MacBookPro5,1",
"MacBookPro5,2",
"MacBookPro5,3",
"MacBookPro5,4",
"MacBookPro5,5",
"MacBookPro6,1",
"MacBookPro6,2",
"MacBookPro8,2",
"MacBookPro8,3",
"MacBookPro9,1",
"MacBookPro10,1",
"Macmini5,2",
"iMac12,1",
"iMac12,2",
"iMac13,2",
"iMac14,2",
"iMac14,3",
]

# 11" Air
MacBookAir61 = [
"MacBookAir3,1",
Expand Down

0 comments on commit e284214

Please sign in to comment.