Skip to content

Commit

Permalink
Merge pull request #28 from SkyrilHD/0.9.2
Browse files Browse the repository at this point in the history
Update to OpenCore 0.9.2
  • Loading branch information
SkyrilHD authored Dec 14, 2023
2 parents ca175f1 + 1a5c49f commit 1ade0fd
Show file tree
Hide file tree
Showing 219 changed files with 5,872 additions and 1,164 deletions.
91 changes: 62 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,19 @@ on:
types: [published]

jobs:
build-monterey-nvidia:
name: Build (NVIDIA (Monterey))
build-nvidia-unsupported:
name: Build for unsupported OS (NVIDIA)
runs-on: macos-latest
steps:
- name: Build
uses: actions/checkout@v3

- run: plutil -remove "DeviceProperties"."Add"."PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)" EFI/OC/config.plist
- run: plutil -insert "DeviceProperties"."Add"."PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)" -xml "<dict><key>@0,built-in</key><string></string><key>@0,backlight-control</key><data>AQAAAA==</data></dict>" EFI/OC/config.plist
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."boot-args" -string "-v keepsyms=1 debug=0x100 ipc_control_port_options=0" EFI/OC/config.plist
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."csr-active-config" -data AwoAAA== EFI/OC/config.plist
- run: plutil -replace "Misc"."Security"."SecureBootModel" -string "Disabled" EFI/OC/config.plist
- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${{github.ref_name}}-NVIDIA-Monterey.zip" .
- run: plutil -insert "DeviceProperties"."Add"."PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)" -xml "<dict><key>@0,AAPL,boot-display</key><data>AQ==</data><key>@0,NVMT</key><data>DgN/IAAAAABACwgH4AtwC5ALAAA8BwsHEQcAAPCnIRQAAAABrwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAAAAAAAAAAAAABAAAAAAAA/wAAAAC8AgFaCgQAAAACAABACwgHQAsIBw==</data><key>@0,backlight-control</key><data>AQAAAA==</data><key>@0,built-in</key><data>AQAAAA==</data><key>@0,compatible</key><string>NVDA,NVMac</string><key>@0,connector-type</key><data>AAgAAA==</data><key>@0,device_type</key><string>display</string><key>@0,display-cfg</key><data>//82AA==</data><key>@0,display-type</key><string>LCD</string><key>@0,name</key><string>NVDA,Display-A</string><key>@0,pwm-info</key><data>AhgAZJBZAgAIUgAApRwAAAAEAAABAAAA</data><key>@0,use-backlight-blanking</key><data></data><key>@1,can-hot-plug</key><data></data><key>@1,compatible</key><string>NVDA,NVMac</string><key>@1,connector-type</key><data>AAgAAA==</data><key>@1,device_type</key><string>display</string><key>@1,display-cfg</key><data>/////w==</data><key>@1,name</key><string>NVDA,Display-B</string><key>AAPL,aux-power-connected</key><data>AQAAAA==</data><key>AAPL,backlight-control</key><data>AQAAAA==</data><key>AAPL,gray-page</key><data>AQAAAA==</data><key>AAPL00,blackscreen.preferences</key><data>AAAACA==</data><key>AAPL00,inverter</key><data>AAAAAA==</data><key>AAPL01,blackscreen.preferences</key><data>AAAACA==</data><key>NVPM</key><data>AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==</data><key>agdpmod</key><string>vit9696</string><key>hda-gfx</key><string>onboard-1</string><key>shikigva</key><integer>256</integer><key>applbkl</key><integer>1</integer></dict>" EFI/OC/config.plist
- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${{github.ref_name}}-NVIDIA-Sonoma.zip" .

- name: Upload to Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: Output/*.zip
Expand All @@ -35,17 +32,17 @@ jobs:
tag: ${{ github.ref }}
file_glob: true

build-monterey-amd:
name: Build (AMD (Monterey))
build-amd-unsupported:
name: Build for unsupported OS (AMD)
runs-on: macos-latest
steps:
- name: Build
uses: actions/checkout@v3

- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${{github.ref_name}}-AMD-Monterey.zip" .
- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${{github.ref_name}}-AMD-Sonoma.zip" .

- name: Upload to Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: Output/*.zip
Expand All @@ -59,22 +56,42 @@ jobs:
tag: ${{ github.ref }}
file_glob: true

build-ventura-nvidia:
name: Build (NVIDIA (Ventura))
build-nvidia-supported:
name: Build for supported OS (NVIDIA)
runs-on: macos-latest
steps:
- name: Build
uses: actions/checkout@v3

# add NVIDIA properties
- run: plutil -remove "DeviceProperties"."Add"."PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)" EFI/OC/config.plist
- run: plutil -insert "DeviceProperties"."Add"."PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)" -xml "<dict><key>@0,built-in</key><string></string><key>@0,backlight-control</key><data>AQAAAA==</data></dict>" EFI/OC/config.plist
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."boot-args" -string "-v keepsyms=1 debug=0x100 amfi_get_out_of_my_way=1 ipc_control_port_options=0 revblock=media" EFI/OC/config.plist
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."csr-active-config" -data AwgAAA== EFI/OC/config.plist
- run: plutil -replace "Misc"."Security"."SecureBootModel" -string "Disabled" EFI/OC/config.plist
- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${{github.ref_name}}-NVIDIA-Ventura.zip" .
- run: plutil -insert "DeviceProperties"."Add"."PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)" -xml "<dict><key>@0,AAPL,boot-display</key><data>AQ==</data><key>@0,NVMT</key><data>DgN/IAAAAABACwgH4AtwC5ALAAA8BwsHEQcAAPCnIRQAAAABrwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAAAAAAAAAAAAABAAAAAAAA/wAAAAC8AgFaCgQAAAACAABACwgHQAsIBw==</data><key>@0,backlight-control</key><data>AQAAAA==</data><key>@0,built-in</key><data>AQAAAA==</data><key>@0,compatible</key><string>NVDA,NVMac</string><key>@0,connector-type</key><data>AAgAAA==</data><key>@0,device_type</key><string>display</string><key>@0,display-cfg</key><data>//82AA==</data><key>@0,display-type</key><string>LCD</string><key>@0,name</key><string>NVDA,Display-A</string><key>@0,pwm-info</key><data>AhgAZJBZAgAIUgAApRwAAAAEAAABAAAA</data><key>@0,use-backlight-blanking</key><data></data><key>@1,can-hot-plug</key><data></data><key>@1,compatible</key><string>NVDA,NVMac</string><key>@1,connector-type</key><data>AAgAAA==</data><key>@1,device_type</key><string>display</string><key>@1,display-cfg</key><data>/////w==</data><key>@1,name</key><string>NVDA,Display-B</string><key>AAPL,aux-power-connected</key><data>AQAAAA==</data><key>AAPL,backlight-control</key><data>AQAAAA==</data><key>AAPL,gray-page</key><data>AQAAAA==</data><key>AAPL00,blackscreen.preferences</key><data>AAAACA==</data><key>AAPL00,inverter</key><data>AAAAAA==</data><key>AAPL01,blackscreen.preferences</key><data>AAAACA==</data><key>NVPM</key><data>AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==</data><key>agdpmod</key><string>vit9696</string><key>hda-gfx</key><string>onboard-1</string><key>shikigva</key><integer>256</integer><key>applbkl</key><integer>1</integer></dict>" EFI/OC/config.plist

# disable Sonoma specific patches
- run: plutil -replace "Booter"."Patch".0."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".19."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".20."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".21."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".31."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".32."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".33."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".34."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".35."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".36."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".0."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".1."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".2."Enabled" -bool false EFI/OC/config.plist

# remove Sonoma specific boot-args
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."boot-args" -string "" EFI/OC/config.plist

# enable SIP
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."csr-active-config" -data AAAAAA== EFI/OC/config.plist

- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${{github.ref_name}}-NVIDIA-Catalina.zip" .

- name: Upload to Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: Output/*.zip
Expand All @@ -88,20 +105,38 @@ jobs:
tag: ${{ github.ref }}
file_glob: true

build-ventura-amd:
name: Build (AMD (Ventura))
build-amd-supported:
name: Build for supported OS (AMD)
runs-on: macos-latest
steps:
- name: Build
uses: actions/checkout@v3

- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."boot-args" -string "-v keepsyms=1 debug=0x100 amfi_get_out_of_my_way=1 ipc_control_port_options=0" EFI/OC/config.plist
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."csr-active-config" -data AwgAAA== EFI/OC/config.plist
- run: plutil -replace "Misc"."Security"."SecureBootModel" -string "Disabled" EFI/OC/config.plist
- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${{github.ref_name}}-AMD-Ventura.zip" .
# disable Sonoma specific patches
- run: plutil -replace "Booter"."Patch".0."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".19."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".20."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".21."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".31."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".32."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".33."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".34."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".35."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Add".36."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".0."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".1."Enabled" -bool false EFI/OC/config.plist
- run: plutil -replace "Kernel"."Patch".2."Enabled" -bool false EFI/OC/config.plist

# remove Sonoma specific boot-args
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."boot-args" -string "" EFI/OC/config.plist

# enable SIP
- run: plutil -replace "NVRAM"."Add"."7C436110-AB2A-4BBB-A880-FE41995C9F82"."csr-active-config" -data AAAAAA== EFI/OC/config.plist

- run: mkdir Output && zip --exclude '*.git*' --exclude '*.github*' --exclude '*Output*' -r -X "Output/${{ github.event.repository.name }}-${{github.ref_name}}-AMD-Catalina.zip" .

- name: Upload to Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: Output/*.zip
Expand All @@ -114,5 +149,3 @@ jobs:
file: Output/*.zip
tag: ${{ github.ref }}
file_glob: true


Empty file modified EFI/BOOT/.contentFlavour
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions EFI/BOOT/.contentVisibility
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disabled
Binary file modified EFI/BOOT/BOOTx64.efi
100644 → 100755
Binary file not shown.
Empty file modified EFI/OC/.contentFlavour
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions EFI/OC/.contentVisibility
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disabled
Binary file added EFI/OC/ACPI/SSDT-BATC.aml
Binary file not shown.
Binary file added EFI/OC/ACPI/SSDT-BATT-8x70.aml
Binary file not shown.
Binary file added EFI/OC/ACPI/SSDT-BQRN.aml
Binary file not shown.
Binary file modified EFI/OC/ACPI/SSDT-EC.aml
100644 → 100755
Binary file not shown.
Binary file modified EFI/OC/ACPI/SSDT-HPET.aml
100644 → 100755
Binary file not shown.
Binary file removed EFI/OC/ACPI/SSDT-LIDpatch.aml
Binary file not shown.
Binary file modified EFI/OC/ACPI/SSDT-PLUG.aml
100644 → 100755
Binary file not shown.
Binary file modified EFI/OC/ACPI/SSDT-PNLF.aml
100644 → 100755
Binary file not shown.
Binary file removed EFI/OC/ACPI/SSDT-UPRW.aml
Binary file not shown.
Binary file added EFI/OC/ACPI/SSDT-USB-Reset.aml
Binary file not shown.
Binary file removed EFI/OC/ACPI/SSDT-WOSI.aml
Binary file not shown.
Binary file added EFI/OC/ACPI/SSDT-XOSI.aml
Binary file not shown.
Binary file modified EFI/OC/Drivers/AudioDxe.efi
100644 → 100755
Binary file not shown.
Binary file modified EFI/OC/Drivers/OpenCanopy.efi
100644 → 100755
Binary file not shown.
Binary file modified EFI/OC/Drivers/OpenHfsPlus.efi
100644 → 100755
Binary file not shown.
Binary file removed EFI/OC/Drivers/OpenLinuxBoot.efi
Binary file not shown.
Binary file modified EFI/OC/Drivers/OpenRuntime.efi
100644 → 100755
Binary file not shown.
Binary file added EFI/OC/Drivers/ProBookFanReset.efi
Binary file not shown.
Binary file modified EFI/OC/Drivers/ResetNvramEntry.efi
100644 → 100755
Binary file not shown.
Binary file removed EFI/OC/Drivers/btrfs_x64.efi
Binary file not shown.
Binary file removed EFI/OC/Drivers/ext4_x64.efi
Binary file not shown.
38 changes: 20 additions & 18 deletions ...ts/FeatureUnlock.kext/Contents/Info.plist → ...C/Kexts/AMFIPass.kext/Contents/Info.plist
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,63 +3,63 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>20G918</string>
<string>22F66</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>FeatureUnlock</string>
<string>AMFIPass</string>
<key>CFBundleIdentifier</key>
<string>com.khronokernel.FeatureUnlock</string>
<string>com.dhinakg.AMFIPass</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>FeatureUnlock</string>
<string>AMFIPass</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.1.0</string>
<string>1.3.1</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.1.0</string>
<string>1.3.1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>13C100</string>
<string>14C18</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>12.1</string>
<string>13.1</string>
<key>DTSDKBuild</key>
<string>21C46</string>
<string>22C55</string>
<key>DTSDKName</key>
<string>macosx12.1</string>
<string>macosx13.1</string>
<key>DTXcode</key>
<string>1321</string>
<string>1420</string>
<key>DTXcodeBuild</key>
<string>13C100</string>
<string>14C18</string>
<key>IOKitPersonalities</key>
<dict>
<key>FeatureUnlock</key>
<key>AMFIPass</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.khronokernel.FeatureUnlock</string>
<string>com.dhinakg.AMFIPass</string>
<key>IOClass</key>
<string>FeatureUnlock</string>
<string>AMFIPass</string>
<key>IOMatchCategory</key>
<string>FeatureUnlock</string>
<string>AMFIPass</string>
<key>IOProviderClass</key>
<string>IOResources</string>
<key>IOResourceMatch</key>
<string>IOKit</string>
</dict>
</dict>
<key>LSMinimumSystemVersion</key>
<string>10.14</string>
<string>10.15</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2021 Khronokernel. All rights reserved.</string>
<string>Copyright © 2022-2023 Dhinak G. All rights reserved.</string>
<key>OSBundleLibraries</key>
<dict>
<key>as.vit9696.Lilu</key>
Expand All @@ -74,6 +74,8 @@
<string>12.0.0</string>
<key>com.apple.kpi.mach</key>
<string>12.0.0</string>
<key>com.apple.kpi.private</key>
<string>12.0.0</string>
<key>com.apple.kpi.unsupported</key>
<string>12.0.0</string>
</dict>
Expand Down
Binary file not shown.
115 changes: 115 additions & 0 deletions EFI/OC/Kexts/AMFIPass.kext/Contents/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?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">
<dict>
<key>files</key>
<dict/>
<key>files2</key>
<dict/>
<key>rules</key>
<dict>
<key>^Resources/</key>
<true/>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
Loading

0 comments on commit 1ade0fd

Please sign in to comment.