mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-23 19:40:15 +10:00
firmware.py: Disable OpenLegacyBoot.efi
This commit is contained in:
@@ -16,6 +16,8 @@
|
|||||||
- Adjusted to use functions for better readability
|
- Adjusted to use functions for better readability
|
||||||
- Implements ZSH shebang
|
- Implements ZSH shebang
|
||||||
- Removes OS logging
|
- Removes OS logging
|
||||||
|
- Disable usage of `OpenLegacyBoot.efi`
|
||||||
|
- Resolves boot issues on certain CSM-based Macs
|
||||||
- Increment Binaries:
|
- Increment Binaries:
|
||||||
- OpenCorePkg 1.0.0 - release
|
- OpenCorePkg 1.0.0 - release
|
||||||
|
|
||||||
|
|||||||
@@ -242,12 +242,16 @@ class BuildFirmware:
|
|||||||
# For model support, check for GUID in firmware and as well as Bootcamp Assistant's Info.plist ('PreUEFIModels' key)
|
# For model support, check for GUID in firmware and as well as Bootcamp Assistant's Info.plist ('PreUEFIModels' key)
|
||||||
# Ref: https://github.com/acidanthera/OpenCorePkg/blob/0.9.5/Platform/OpenLegacyBoot/OpenLegacyBoot.c#L19
|
# Ref: https://github.com/acidanthera/OpenCorePkg/blob/0.9.5/Platform/OpenLegacyBoot/OpenLegacyBoot.c#L19
|
||||||
if Path(self.constants.drivers_path / Path("OpenLegacyBoot.efi")).exists():
|
if Path(self.constants.drivers_path / Path("OpenLegacyBoot.efi")).exists():
|
||||||
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.CPUGen.ivy_bridge.value and self.model != "MacPro6,1":
|
# if smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.CPUGen.ivy_bridge.value and self.model != "MacPro6,1":
|
||||||
logging.info("- Enabling CSM support")
|
# logging.info("- Enabling CSM support")
|
||||||
support.BuildSupport(self.model, self.constants, self.config).get_efi_binary_by_path("OpenLegacyBoot.efi", "UEFI", "Drivers")["Enabled"] = True
|
# support.BuildSupport(self.model, self.constants, self.config).get_efi_binary_by_path("OpenLegacyBoot.efi", "UEFI", "Drivers")["Enabled"] = True
|
||||||
else:
|
# else:
|
||||||
# Shipped alongside OpenCorePkg, so remove if unused
|
# # Shipped alongside OpenCorePkg, so remove if unused
|
||||||
(self.constants.drivers_path / Path("OpenLegacyBoot.efi")).unlink()
|
# (self.constants.drivers_path / Path("OpenLegacyBoot.efi")).unlink()
|
||||||
|
|
||||||
|
# Currently disabled for compatibility reasons
|
||||||
|
# Certain machines freeze on boot with OpenLegacyBoot.efi
|
||||||
|
(self.constants.drivers_path / Path("OpenLegacyBoot.efi")).unlink()
|
||||||
|
|
||||||
def _firmware_compatibility_handling(self) -> None:
|
def _firmware_compatibility_handling(self) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user