Skip to content

Commit

Permalink
Update OpenCore to 0.6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
thenickdude committed Apr 10, 2021
1 parent f12337d commit ca04c24
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 74 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Files that will be built from source
EFI/BOOT/BOOTx64.efi
EFI/OC/Drivers/VBoxHfs.efi
EFI/OC/Drivers/OpenHfsPlus.efi
EFI/OC/Drivers/OpenRuntime.efi
EFI/OC/Drivers/OpenCanopy.efi
EFI/OC/Drivers/OpenPartitionDxe.efi
EFI/OC/Kexts/Lilu.kext
EFI/OC/Kexts/AppleALC.kext
EFI/OC/Kexts/WhateverGreen.kext
Expand Down
98 changes: 69 additions & 29 deletions EFI/OC/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
<key>Patch</key>
<array>
<dict>
<key>Base</key>
<string></string>
<key>BaseSkip</key>
<integer>0</integer>
<key>Comment</key>
<string>_Q11 to XQ11</string>
<key>Count</key>
Expand All @@ -99,6 +103,10 @@
<data></data>
</dict>
<dict>
<key>Base</key>
<string></string>
<key>BaseSkip</key>
<integer>0</integer>
<key>Comment</key>
<string>_Q12 to XQ12</string>
<key>Count</key>
Expand Down Expand Up @@ -136,7 +144,7 @@
<key>ResetHwSig</key>
<false/>
<key>ResetLogoStatus</key>
<false/>
<true/>
</dict>
</dict>
<key>Booter</key>
Expand All @@ -145,6 +153,8 @@
<array/>
<key>Quirks</key>
<dict>
<key>AllowRelocationBlock</key>
<false/>
<key>AvoidRuntimeDefrag</key>
<true/>
<key>DevirtualiseMmio</key>
Expand All @@ -159,6 +169,8 @@
<true/>
<key>EnableWriteUnprotector</key>
<true/>
<key>ForceBooterSignature</key>
<false/>
<key>ForceExitBootServices</key>
<false/>
<key>ProtectMemoryRegions</key>
Expand Down Expand Up @@ -198,12 +210,7 @@
</dict>
</dict>
<key>Delete</key>
<dict>
<key>PciRoot(0x0)/Pci(0x1b,0x0)</key>
<array>
<string>MaximumBootBeepVolume</string>
</array>
</dict>
<dict/>
</dict>
<key>Kernel</key>
<dict>
Expand All @@ -223,7 +230,7 @@
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string>12.0.0</string>
<string>10.0.0</string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
Expand All @@ -241,7 +248,7 @@
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string>12.0.0</string>
<string>10.0.0</string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
Expand Down Expand Up @@ -351,8 +358,6 @@
</array>
<key>Emulate</key>
<dict>
<key>DummyPowerManagement</key>
<true/>
<key>Cpuid1Data</key>
<data>
VAYFAAAAAAAAAAAAAAAAAA==
Expand All @@ -361,6 +366,8 @@
<data>
////AAAAAAAAAAAAAAAAAA==
</data>
<key>DummyPowerManagement</key>
<true/>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
Expand All @@ -377,10 +384,10 @@
<string></string>
<key>Enabled</key>
<false/>
<key>Identifier</key>
<string>com.apple.iokit.IONetworkingFamily</string>
<key>ExecutablePath</key>
<string>Contents/MacOS/IONetworkingFamily</string>
<key>Identifier</key>
<string>com.apple.iokit.IONetworkingFamily</string>
<key>MaxKernel</key>
<string>13.99.99</string>
<key>MinKernel</key>
Expand All @@ -392,6 +399,8 @@
<key>Patch</key>
<array>
<dict>
<key>Arch</key>
<string>Any</string>
<key>Base</key>
<string>_cpu_topology_sort</string>
<key>Comment</key>
Expand Down Expand Up @@ -427,6 +436,8 @@
<integer>0</integer>
</dict>
<dict>
<key>Arch</key>
<string>Any</string>
<key>Base</key>
<string></string>
<key>Comment</key>
Expand Down Expand Up @@ -496,6 +507,8 @@
<false/>
<key>PowerTimeoutKernelPanic</key>
<false/>
<key>SetApfsTrimTimeout</key>
<integer>-1</integer>
<key>ThirdPartyDrives</key>
<false/>
<key>XhciPortLimit</key>
Expand Down Expand Up @@ -523,12 +536,18 @@
<string>Auto</string>
<key>HideAuxiliary</key>
<false/>
<key>LauncherOption</key>
<string>Disabled</string>
<key>LauncherPath</key>
<string>Default</string>
<key>PickerAttributes</key>
<integer>1</integer>
<integer>17</integer>
<key>PickerAudioAssist</key>
<false/>
<key>PickerMode</key>
<string>External</string>
<key>PickerVariant</key>
<string>Auto</string>
<key>PollAppleHotKeys</key>
<true/>
<key>ShowPicker</key>
Expand Down Expand Up @@ -571,8 +590,6 @@
<false/>
<key>BlacklistAppleUpdate</key>
<true/>
<key>BootProtect</key>
<string>None</string>
<key>DmgLoading</key>
<string>Signed</string>
<key>EnablePassword</key>
Expand Down Expand Up @@ -672,12 +689,12 @@
<data>Rg==</data>
<key>boot-args</key>
<string>keepsyms=1</string>
<key>run-efi-updater</key>
<string>No</string>
<key>csr-active-config</key>
<data>AAAAAA==</data>
<key>prev-lang:kbd</key>
<data>ZW4tVVM6MA==</data>
<key>run-efi-updater</key>
<string>No</string>
</dict>
</dict>
<key>Delete</key>
Expand Down Expand Up @@ -741,8 +758,8 @@
<dict>
<key>AdviseWindows</key>
<false/>
<key>SystemMemoryStatus</key>
<string>Auto</string>
<key>MaxBIOSVersion</key>
<false/>
<key>MLB</key>
<string>C02717306J9JG361M</string>
<key>ProcessorType</key>
Expand All @@ -751,6 +768,8 @@
<data>m7zhIYfl</data>
<key>SpoofVendor</key>
<true/>
<key>SystemMemoryStatus</key>
<string>Auto</string>
<key>SystemProductName</key>
<string>iMacPro1,1</string>
<key>SystemSerialNumber</key>
Expand All @@ -766,6 +785,8 @@
<true/>
<key>UpdateSMBIOSMode</key>
<string>Create</string>
<key>UseRawUuidEncoding</key>
<false/>
</dict>
<key>UEFI</key>
<dict>
Expand All @@ -784,6 +805,21 @@
<key>MinVersion</key>
<integer>-1</integer>
</dict>
<key>AppleInput</key>
<dict>
<key>AppleEvent</key>
<string>Builtin</string>
<key>CustomDelays</key>
<string>Auto</string>
<key>KeyInitialDelay</key>
<integer>0</integer>
<key>KeySubsequentDelay</key>
<integer>5</integer>
<key>PointerSpeedDiv</key>
<integer>1</integer>
<key>PointerSpeedMul</key>
<integer>1</integer>
</dict>
<key>Audio</key>
<dict>
<key>AudioCodec</key>
Expand All @@ -797,18 +833,23 @@
<key>MinimumVolume</key>
<integer>20</integer>
<key>PlayChime</key>
<string>Auto</string>
<key>ResetTrafficClass</key>
<false/>
<key>SetupDelay</key>
<integer>0</integer>
<key>VolumeAmplifier</key>
<integer>0</integer>
</dict>
<key>ConnectDrivers</key>
<true/>
<key>Drivers</key>
<array>
<string>VBoxHfs.efi</string>
<string>OpenHfsPlus.efi</string>
<string>OpenRuntime.efi</string>
<string>OpenCanopy.efi</string>
<string>#AudioDxe.efi</string>
<string>OpenPartitionDxe.efi</string>
<string>#OpenUsbKbDxe.efi</string>
<string>#UsbMouseDxe.efi</string>
<string>#Ps2KeyboardDxe.efi</string>
Expand All @@ -817,7 +858,6 @@
<string>#NvmExpressDxe.efi</string>
<string>#XhciDxe.efi</string>
<string>#ExFatDxe.efi</string>
<string>#PartitionDxe.efi</string>
<string>#CrScreenshotDxe.efi</string>
</array>
<key>Input</key>
Expand All @@ -826,8 +866,6 @@
<false/>
<key>KeyForgetThreshold</key>
<integer>5</integer>
<key>KeyMergeThreshold</key>
<integer>2</integer>
<key>KeySupport</key>
<true/>
<key>KeySupportMode</key>
Expand All @@ -851,6 +889,8 @@
<false/>
<key>ForceResolution</key>
<false/>
<key>GopPassThrough</key>
<false/>
<key>IgnoreTextInGraphics</key>
<false/>
<key>ProvideConsoleGop</key>
Expand All @@ -876,8 +916,6 @@
<false/>
<key>AppleDebugLog</key>
<false/>
<key>AppleEvent</key>
<false/>
<key>AppleFramebufferInfo</key>
<false/>
<key>AppleImageConversion</key>
Expand All @@ -899,7 +937,7 @@
<key>DeviceProperties</key>
<false/>
<key>FirmwareVolume</key>
<false/>
<true/>
<key>HashServices</key>
<false/>
<key>OSInfo</key>
Expand All @@ -909,8 +947,10 @@
</dict>
<key>Quirks</key>
<dict>
<key>DeduplicateBootOrder</key>
<true/>
<key>ActivateHpetSupport</key>
<false/>
<key>DisableSecurityPolicy</key>
<false/>
<key>ExitBootServicesDelay</key>
<integer>0</integer>
<key>IgnoreInvalidFlexRatio</key>
Expand Down
19 changes: 8 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ KEXTS= \
EFI/OC/Kexts/VirtualSMC.kext

DRIVERS= \
EFI/OC/Drivers/VBoxHfs.efi \
EFI/OC/Drivers/OpenHfsPlus.efi \
EFI/OC/Drivers/OpenRuntime.efi \
EFI/OC/Drivers/OpenCanopy.efi
EFI/OC/Drivers/OpenCanopy.efi \
EFI/OC/Drivers/OpenPartitionDxe.efi

TOOLS = \
EFI/OC/Tools/Shell.efi \
Expand Down Expand Up @@ -51,7 +52,7 @@ OpenCore-$(RELEASE_VERSION).dmg : Makefile $(EFI_FILES)
rm -f $@
hdiutil create -layout GPTSPUD -partitionType EFI -fs "FAT32" -megabytes 150 -volname EFI $@
mkdir -p OpenCore-Image
DEV_NAME=$$(hdiutil attach -nomount -plist $@ | xpath "/plist/dict/array/dict/key[text()='content-hint']/following-sibling::string[1][text()='EFI']/../key[text()='dev-entry']/following-sibling::string[1]/text()" 2> /dev/null) && \
DEV_NAME=$$(hdiutil attach -nomount -plist $@ | xpath -e "/plist/dict/array/dict/key[text()='content-hint']/following-sibling::string[1][text()='EFI']/../key[text()='dev-entry']/following-sibling::string[1]/text()" 2> /dev/null) && \
mount -tmsdos "$$DEV_NAME" OpenCore-Image
cp -a EFI OpenCore-Image/
hdiutil detach -force OpenCore-Image
Expand Down Expand Up @@ -119,13 +120,10 @@ src/VirtualSMC/MacKernelSDK : src/MacKernelSDK
EFI/OC/OpenCore.efi : $(OPENCORE_UDK_BUILD_DIR)/OpenCore.efi
cp -a $< $@

EFI/OC/Drivers/OpenRuntime.efi : $(OPENCORE_UDK_BUILD_DIR)/OpenRuntime.efi
EFI/OC/Drivers/OpenRuntime.efi EFI/OC/Drivers/OpenHfsPlus.efi EFI/OC/Drivers/OpenPartitionDxe.efi \
: $(OPENCORE_UDK_BUILD_DIR)/OpenRuntime.efi $(OPENCORE_UDK_BUILD_DIR)/OpenHfsPlus.efi $(OPENCORE_UDK_BUILD_DIR)/OpenPartitionDxe.efi
mkdir -p EFI/OC/Drivers
cp -a $< $@

EFI/OC/Drivers/VBoxHfs.efi : $(OPENCORE_UDK_BUILD_DIR)/VBoxHfs.efi
mkdir -p EFI/OC/Drivers
cp -a $< $@
cp -a $? EFI/OC/Drivers/

EFI/BOOT/BOOTx64.efi : $(OPENCORE_UDK_BUILD_DIR)/Bootstrap.efi
mkdir -p EFI/BOOT
Expand All @@ -134,9 +132,8 @@ EFI/BOOT/BOOTx64.efi : $(OPENCORE_UDK_BUILD_DIR)/Bootstrap.efi
$(OPENCORE_UDK_BUILD_DIR)/OpenCore.efi $(OPENCORE_UDK_BUILD_DIR)/OpenRuntime.efi \
$(OPENCORE_UDK_BUILD_DIR)/Bootstrap.efi $(OPENCORE_UDK_BUILD_DIR)/Shell.efi \
$(OPENCORE_UDK_BUILD_DIR)/ResetSystem.efi $(OPENCORE_UDK_BUILD_DIR)/OpenCanopy.efi \
$(OPENCORE_UDK_BUILD_DIR)/VBoxHfs.efi \
$(OPENCORE_UDK_BUILD_DIR)/OpenHfsPlus.efi $(OPENCORE_UDK_BUILD_DIR)/OpenPartitionDxe.efi \
:
cd src/OpenCorePkg && patch -p1 --forward < ../0001-vboxhfs.patch || true
cd src/OpenCorePkg && ARCHS=X64 ./build_oc.tool --skip-package $(OPENCORE_MODE)

# Tools
Expand Down
Loading

0 comments on commit ca04c24

Please sign in to comment.