mirror of
https://github.com/thenickdude/KVM-Opencore.git
synced 2024-10-27 20:34:10 +00:00
Add CryptexFixup to support CPUs without AVX2 on Ventura
This commit is contained in:
parent
3d8784ff16
commit
425b45da38
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,6 +16,7 @@ EFI/OC/Kexts/BrcmNonPatchRAM2.kext
|
|||||||
EFI/OC/Kexts/BrcmFirmwareData.kext
|
EFI/OC/Kexts/BrcmFirmwareData.kext
|
||||||
EFI/OC/Kexts/BrcmPatchRAM2.kext
|
EFI/OC/Kexts/BrcmPatchRAM2.kext
|
||||||
EFI/OC/Kexts/BrcmPatchRAM3.kext
|
EFI/OC/Kexts/BrcmPatchRAM3.kext
|
||||||
|
EFI/OC/Kexts/CryptexFixup.kext
|
||||||
EFI/OC/Tools/Shell.efi
|
EFI/OC/Tools/Shell.efi
|
||||||
EFI/OC/Tools/ResetSystem.efi
|
EFI/OC/Tools/ResetSystem.efi
|
||||||
EFI/OC/Resources
|
EFI/OC/Resources
|
||||||
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -26,3 +26,6 @@
|
|||||||
[submodule "src/BrcmPatchRAM"]
|
[submodule "src/BrcmPatchRAM"]
|
||||||
path = src/BrcmPatchRAM
|
path = src/BrcmPatchRAM
|
||||||
url = https://github.com/acidanthera/BrcmPatchRAM.git
|
url = https://github.com/acidanthera/BrcmPatchRAM.git
|
||||||
|
[submodule "src/CryptexFixup"]
|
||||||
|
path = src/CryptexFixup
|
||||||
|
url = https://github.com/acidanthera/CryptexFixup.git
|
||||||
|
@ -702,6 +702,24 @@
|
|||||||
<key>PlistPath</key>
|
<key>PlistPath</key>
|
||||||
<string>Contents/Info.plist</string>
|
<string>Contents/Info.plist</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Arch</key>
|
||||||
|
<string>x86_64</string>
|
||||||
|
<key>BundlePath</key>
|
||||||
|
<string>CryptexFixup.kext</string>
|
||||||
|
<key>Comment</key>
|
||||||
|
<string>Support for non-AVX2 CPUs in Ventura</string>
|
||||||
|
<key>Enabled</key>
|
||||||
|
<true/>
|
||||||
|
<key>ExecutablePath</key>
|
||||||
|
<string>Contents/MacOS/CryptexFixup</string>
|
||||||
|
<key>MaxKernel</key>
|
||||||
|
<string>22.99.99</string>
|
||||||
|
<key>MinKernel</key>
|
||||||
|
<string>22.1.0</string>
|
||||||
|
<key>PlistPath</key>
|
||||||
|
<string>Contents/Info.plist</string>
|
||||||
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>Block</key>
|
<key>Block</key>
|
||||||
<array>
|
<array>
|
||||||
@ -807,7 +825,7 @@
|
|||||||
<key>Base</key>
|
<key>Base</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>algrey - thenickdude - cpuid_set_cpufamily - force CPUFAMILY_INTEL_PENRYN (Big Sur 11.3+, Monterey)</string>
|
<string>algrey - thenickdude - cpuid_set_cpufamily - force CPUFAMILY_INTEL_PENRYN (Big Sur 11.3+, Monterey, Ventura)</string>
|
||||||
<key>Count</key>
|
<key>Count</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Enabled</key>
|
<key>Enabled</key>
|
||||||
@ -825,7 +843,7 @@
|
|||||||
////////AAAAAP//
|
////////AAAAAP//
|
||||||
</data>
|
</data>
|
||||||
<key>MaxKernel</key>
|
<key>MaxKernel</key>
|
||||||
<string>21.99.99</string>
|
<string>22.99.99</string>
|
||||||
<key>MinKernel</key>
|
<key>MinKernel</key>
|
||||||
<string>20.4.0</string>
|
<string>20.4.0</string>
|
||||||
<key>Replace</key>
|
<key>Replace</key>
|
||||||
|
30
Makefile
30
Makefile
@ -8,7 +8,8 @@ KEXTS= \
|
|||||||
EFI/OC/Kexts/BrcmPatchRAM3.kext \
|
EFI/OC/Kexts/BrcmPatchRAM3.kext \
|
||||||
EFI/OC/Kexts/BrcmBluetoothInjector.kext \
|
EFI/OC/Kexts/BrcmBluetoothInjector.kext \
|
||||||
EFI/OC/Kexts/BlueToolFixup.kext \
|
EFI/OC/Kexts/BlueToolFixup.kext \
|
||||||
EFI/OC/Kexts/BrcmFirmwareData.kext
|
EFI/OC/Kexts/BrcmFirmwareData.kext \
|
||||||
|
EFI/OC/Kexts/CryptexFixup.kext
|
||||||
|
|
||||||
DRIVERS= \
|
DRIVERS= \
|
||||||
EFI/OC/Drivers/OpenHfsPlus.efi \
|
EFI/OC/Drivers/OpenHfsPlus.efi \
|
||||||
@ -36,7 +37,8 @@ SUBMODULES = \
|
|||||||
src/OpenCorePkg/README.md \
|
src/OpenCorePkg/README.md \
|
||||||
src/VirtualSMC/README.md \
|
src/VirtualSMC/README.md \
|
||||||
src/OcBinaryData/Resources \
|
src/OcBinaryData/Resources \
|
||||||
src/MacKernelSDK/README.md
|
src/MacKernelSDK/README.md \
|
||||||
|
src/CryptexFixup/README.md
|
||||||
|
|
||||||
# Set me to include the version number in the packaged filenames
|
# Set me to include the version number in the packaged filenames
|
||||||
RELEASE_VERSION ?= master
|
RELEASE_VERSION ?= master
|
||||||
@ -84,7 +86,7 @@ EFI/OC/Kexts/AppleALC.kext : src/AppleALC/build/Release/AppleALC.kext
|
|||||||
cp -a $< $@
|
cp -a $< $@
|
||||||
|
|
||||||
src/AppleALC/build/Release/AppleALC.kext : src/AppleALC src/AppleALC/Lilu.kext src/AppleALC/MacKernelSDK
|
src/AppleALC/build/Release/AppleALC.kext : src/AppleALC src/AppleALC/Lilu.kext src/AppleALC/MacKernelSDK
|
||||||
cd src/AppleALC && xcodebuild -configuration Release
|
cd src/AppleALC && xcodebuild -configuration $(OPENCORE_MODE)
|
||||||
|
|
||||||
# WhateverGreen:
|
# WhateverGreen:
|
||||||
|
|
||||||
@ -92,7 +94,7 @@ EFI/OC/Kexts/WhateverGreen.kext : src/WhateverGreen/build/Release/WhateverGreen.
|
|||||||
cp -a $< $@
|
cp -a $< $@
|
||||||
|
|
||||||
src/WhateverGreen/build/Release/WhateverGreen.kext : src/WhateverGreen src/WhateverGreen/Lilu.kext src/WhateverGreen/MacKernelSDK
|
src/WhateverGreen/build/Release/WhateverGreen.kext : src/WhateverGreen src/WhateverGreen/Lilu.kext src/WhateverGreen/MacKernelSDK
|
||||||
cd src/WhateverGreen && xcodebuild -configuration Release
|
cd src/WhateverGreen && xcodebuild -configuration $(OPENCORE_MODE)
|
||||||
|
|
||||||
# VirtualSMC:
|
# VirtualSMC:
|
||||||
|
|
||||||
@ -100,7 +102,7 @@ EFI/OC/Kexts/VirtualSMC.kext : src/VirtualSMC/build/Release/VirtualSMC.kext
|
|||||||
cp -a $< $@
|
cp -a $< $@
|
||||||
|
|
||||||
src/VirtualSMC/build/Release/VirtualSMC.kext : src/VirtualSMC/Lilu.kext src/VirtualSMC/MacKernelSDK
|
src/VirtualSMC/build/Release/VirtualSMC.kext : src/VirtualSMC/Lilu.kext src/VirtualSMC/MacKernelSDK
|
||||||
cd src/VirtualSMC && xcodebuild -configuration Release
|
cd src/VirtualSMC && xcodebuild -configuration $(OPENCORE_MODE)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
# BrcmPatchRAM:
|
# BrcmPatchRAM:
|
||||||
@ -114,7 +116,7 @@ src/BrcmPatchRAM/build/Products/Release/BrcmFirmwareData.kext \
|
|||||||
src/BrcmPatchRAM/build/Products/Release/BrcmBluetoothInjector.kext : src/BrcmPatchRAM/Lilu.kext src/BrcmPatchRAM/MacKernelSDK
|
src/BrcmPatchRAM/build/Products/Release/BrcmBluetoothInjector.kext : src/BrcmPatchRAM/Lilu.kext src/BrcmPatchRAM/MacKernelSDK
|
||||||
# Needs macOS 11 SDK rather than 12.0 to meet deployment target, e.g. from https://github.com/phracker/MacOSX-SDKs and:
|
# Needs macOS 11 SDK rather than 12.0 to meet deployment target, e.g. from https://github.com/phracker/MacOSX-SDKs and:
|
||||||
# export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
|
# export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
|
||||||
cd src/BrcmPatchRAM && xcodebuild -configuration Release
|
cd src/BrcmPatchRAM && xcodebuild -configuration $(OPENCORE_MODE)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
EFI/OC/Kexts/BrcmNonPatchRAM.kext : src/BrcmPatchRAM/build/Products/Release/BrcmNonPatchRAM.kext
|
EFI/OC/Kexts/BrcmNonPatchRAM.kext : src/BrcmPatchRAM/build/Products/Release/BrcmNonPatchRAM.kext
|
||||||
@ -138,6 +140,14 @@ EFI/OC/Kexts/BlueToolFixup.kext : src/BrcmPatchRAM/build/Products/Release/BlueTo
|
|||||||
EFI/OC/Kexts/BrcmFirmwareData.kext : src/BrcmPatchRAM/build/Products/Release/BrcmFirmwareData.kext
|
EFI/OC/Kexts/BrcmFirmwareData.kext : src/BrcmPatchRAM/build/Products/Release/BrcmFirmwareData.kext
|
||||||
cp -a $< $@
|
cp -a $< $@
|
||||||
|
|
||||||
|
# CryptexFixup:
|
||||||
|
|
||||||
|
EFI/OC/Kexts/CryptexFixup.kext : src/CryptexFixup/build/Release/CryptexFixup.kext
|
||||||
|
cp -a $< $@
|
||||||
|
|
||||||
|
src/CryptexFixup/build/Release/CryptexFixup.kext : src/CryptexFixup src/CryptexFixup/Lilu.kext src/CryptexFixup/MacKernelSDK
|
||||||
|
cd src/CryptexFixup && xcodebuild -configuration $(OPENCORE_MODE)
|
||||||
|
|
||||||
# Lilu:
|
# Lilu:
|
||||||
|
|
||||||
EFI/OC/Kexts/Lilu.kext : src/Lilu/build/Release/Lilu.kext
|
EFI/OC/Kexts/Lilu.kext : src/Lilu/build/Release/Lilu.kext
|
||||||
@ -150,7 +160,8 @@ src/Lilu/build/Release/Lilu.kext src/Lilu/build/Debug/Lilu.kext : src/Lilu/MacKe
|
|||||||
src/WhateverGreen/Lilu.kext \
|
src/WhateverGreen/Lilu.kext \
|
||||||
src/AppleALC/Lilu.kext \
|
src/AppleALC/Lilu.kext \
|
||||||
src/VirtualSMC/Lilu.kext \
|
src/VirtualSMC/Lilu.kext \
|
||||||
src/BrcmPatchRAM/Lilu.kext : src/Lilu/build/Debug/Lilu.kext
|
src/BrcmPatchRAM/Lilu.kext \
|
||||||
|
src/CryptexFixup/Lilu.kext : src/Lilu/build/Debug/Lilu.kext
|
||||||
ln -s ../Lilu/build/Debug/Lilu.kext $@
|
ln -s ../Lilu/build/Debug/Lilu.kext $@
|
||||||
|
|
||||||
# MacKernelSDK:
|
# MacKernelSDK:
|
||||||
@ -159,7 +170,8 @@ src/Lilu/MacKernelSDK \
|
|||||||
src/WhateverGreen/MacKernelSDK \
|
src/WhateverGreen/MacKernelSDK \
|
||||||
src/AppleALC/MacKernelSDK \
|
src/AppleALC/MacKernelSDK \
|
||||||
src/VirtualSMC/MacKernelSDK \
|
src/VirtualSMC/MacKernelSDK \
|
||||||
src/BrcmPatchRAM/MacKernelSDK : src/MacKernelSDK
|
src/BrcmPatchRAM/MacKernelSDK \
|
||||||
|
src/CryptexFixup/MacKernelSDK : src/MacKernelSDK
|
||||||
ln -s ../MacKernelSDK $@
|
ln -s ../MacKernelSDK $@
|
||||||
|
|
||||||
# OpenCore:
|
# OpenCore:
|
||||||
@ -215,5 +227,5 @@ very-clean : clean
|
|||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm -rf OpenCore-Image/ src/Lilu/build src/WhateverGreen/build src/OpenCorePkg/UDK/Build src/BrcmPatchRAM/build \
|
rm -rf OpenCore-Image/ src/Lilu/build src/WhateverGreen/build src/OpenCorePkg/UDK/Build src/BrcmPatchRAM/build \
|
||||||
src/AppleALC/build $(KEXTS) $(DRIVERS) $(TOOLS) $(MISC)
|
src/AppleALC/build src/CryptexFixup/build $(KEXTS) $(DRIVERS) $(TOOLS) $(MISC)
|
||||||
rm -f OpenCore-${RELEASE_VERSION}.dmg* OpenCore-${RELEASE_VERSION}.iso* OpenCoreEFIFolder-${RELEASE_VERSION}.zip
|
rm -f OpenCore-${RELEASE_VERSION}.dmg* OpenCore-${RELEASE_VERSION}.iso* OpenCoreEFIFolder-${RELEASE_VERSION}.zip
|
1
src/CryptexFixup
Submodule
1
src/CryptexFixup
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit cf3a1e4794daf9db8045003c893540c7af8180a1
|
Loading…
Reference in New Issue
Block a user