Add ExFat support for models missing driver

This commit is contained in:
Mykola Grymalyuk
2021-04-05 23:52:05 -06:00
parent 7a41b0c4a5
commit a521667e54
5 changed files with 43 additions and 0 deletions

View File

@@ -254,6 +254,13 @@ class BuildOpenCore:
shutil.rmtree(self.constants.resources_path, onerror=rmtree_handler)
shutil.copy(self.constants.gui_path, self.constants.oc_folder)
self.config["UEFI"]["Drivers"] = ["OpenCanopy.efi", "OpenRuntime.efi"]
# Exfat check
if self.model in ModelArray.NoExFat:
print("- Adding ExFatDxeLegacy.efi")
exfat = "ExFatDxeLegacy.efi"
shutil.copy(self.constants.exfat_legacy_driver_path, self.constants.drivers_path)
self.config["UEFI"]["Drivers"] += ["ExFatDxeLegacy.efi"]
# Add UGA to GOP layer
if self.model in ModelArray.UGAtoGOP: