mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-08-25 14:53:06 +00:00
Add USBToolBox kext
This commit is contained in:
+7
-12
@@ -148,7 +148,7 @@ class OCPE:
|
|||||||
|
|
||||||
for darwin_version in range(min_version, max_version + 1):
|
for darwin_version in range(min_version, max_version + 1):
|
||||||
name = os_data.get_macos_name_by_darwin(str(darwin_version))
|
name = os_data.get_macos_name_by_darwin(str(darwin_version))
|
||||||
label = " (Requires OpenCore Legacy Patcher)" if oclp_min <= darwin_version <= oclp_max else ""
|
label = " (\033[1;93mRequires OpenCore Legacy Patcher\033[0m)" if oclp_min <= darwin_version <= oclp_max else ""
|
||||||
print(" {}. {}{}".format(darwin_version, name, label))
|
print(" {}. {}{}".format(darwin_version, name, label))
|
||||||
|
|
||||||
print("")
|
print("")
|
||||||
@@ -303,7 +303,7 @@ class OCPE:
|
|||||||
|
|
||||||
return requirements
|
return requirements
|
||||||
|
|
||||||
def results(self, org_hardware_report, hardware_report, smbios_model):
|
def results(self, org_hardware_report, hardware_report):
|
||||||
self.u.head("Results")
|
self.u.head("Results")
|
||||||
print("")
|
print("")
|
||||||
print("Your OpenCore EFI for {} has been built at:".format(hardware_report.get("Motherboard").get("Name")))
|
print("Your OpenCore EFI for {} has been built at:".format(hardware_report.get("Motherboard").get("Name")))
|
||||||
@@ -322,14 +322,9 @@ class OCPE:
|
|||||||
print("")
|
print("")
|
||||||
|
|
||||||
print("* USB Mapping:")
|
print("* USB Mapping:")
|
||||||
if self.k.kexts[kext_maestro.kext_data.kext_index_by_name.get("USBInjectAll")].checked:
|
print(" - Use USBToolBox tool to map USB ports.")
|
||||||
print(" \033[93mNote:\033[0m USBInjectAll is not recommended. Please use USBMap.kext instead.")
|
print(" - Add created UTBMap.kext into the {} folder.".format("EFI\\OC\\Kexts" if os.name == "nt" else "EFI/OC/Kexts"))
|
||||||
print(" - To use USBMap.kext, remove USBInjectAll.kext from the {} folder.".format("EFI\\OC\\Kexts" if os.name == "nt" else "EFI/OC/Kexts"))
|
print(" - Remove UTBDefault.kext in the {} folder.".format("EFI\\OC\\Kexts" if os.name == "nt" else "EFI/OC/Kexts"))
|
||||||
|
|
||||||
print(" - Use USBToolBox:")
|
|
||||||
print(" - Mapping USB with the option 'Use Native Class' enabled.")
|
|
||||||
print(" - Use the model identifier '{}'.".format(smbios_model))
|
|
||||||
print(" - Add created USBMap.kext into the {} folder.".format("EFI\\OC\\Kexts" if os.name == "nt" else "EFI/OC/Kexts"))
|
|
||||||
print(" - Edit config.plist:")
|
print(" - Edit config.plist:")
|
||||||
print(" - Use ProperTree to open your config.plist.")
|
print(" - Use ProperTree to open your config.plist.")
|
||||||
print(" - Run OC Snapshot by pressing Command/Ctrl + R.")
|
print(" - Run OC Snapshot by pressing Command/Ctrl + R.")
|
||||||
@@ -362,7 +357,7 @@ class OCPE:
|
|||||||
for index, device_name in enumerate(disabled_devices, start=1):
|
for index, device_name in enumerate(disabled_devices, start=1):
|
||||||
print("{}{}. {}".format(" "*6, index, device_name))
|
print("{}{}. {}".format(" "*6, index, device_name))
|
||||||
print("* EFI Options:")
|
print("* EFI Options:")
|
||||||
print(" - macOS Version: {}{}{}".format("Unknown" if not macos_version else os_data.get_macos_name_by_darwin(macos_version), "" if not macos_version else " ({})".format(macos_version), ". \033[1;36mRequires OpenCore Legacy Patcher\033[0m" if needs_oclp else ""))
|
print(" - macOS Version: {}{}{}".format("Unknown" if not macos_version else os_data.get_macos_name_by_darwin(macos_version), "" if not macos_version else " ({})".format(macos_version), ". \033[1;93mRequires OpenCore Legacy Patcher\033[0m" if needs_oclp else ""))
|
||||||
print(" - SMBIOS: {}".format("Unknown" if not smbios_model else smbios_model))
|
print(" - SMBIOS: {}".format("Unknown" if not smbios_model else smbios_model))
|
||||||
print("")
|
print("")
|
||||||
print("1. Select Hardware Report")
|
print("1. Select Hardware Report")
|
||||||
@@ -427,7 +422,7 @@ class OCPE:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
self.build_opencore_efi(customized_hardware, disabled_devices, smbios_model, macos_version, needs_oclp)
|
self.build_opencore_efi(customized_hardware, disabled_devices, smbios_model, macos_version, needs_oclp)
|
||||||
self.results(hardware_report, customized_hardware, smbios_model)
|
self.results(hardware_report, customized_hardware)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
update_flag = updater.Updater().run_update()
|
update_flag = updater.Updater().run_update()
|
||||||
|
|||||||
@@ -696,9 +696,6 @@ class ConfigProdigy:
|
|||||||
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["bluetoothExternalDongleFailed"] = self.utils.hex_to_bytes("00")
|
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["bluetoothExternalDongleFailed"] = self.utils.hex_to_bytes("00")
|
||||||
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["bluetoothInternalControllerInfo"] = self.utils.hex_to_bytes("0000000000000000000000000000")
|
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["bluetoothInternalControllerInfo"] = self.utils.hex_to_bytes("0000000000000000000000000000")
|
||||||
|
|
||||||
if kexts[kext_data.kext_index_by_name.get("USBInjectAll")].checked:
|
|
||||||
config["Kernel"]["Quirks"]["XhciPortLimit"] = True
|
|
||||||
|
|
||||||
if kexts[kext_data.kext_index_by_name.get("RestrictEvents")].checked:
|
if kexts[kext_data.kext_index_by_name.get("RestrictEvents")].checked:
|
||||||
revpatch = []
|
revpatch = []
|
||||||
revblock = []
|
revblock = []
|
||||||
|
|||||||
@@ -473,12 +473,22 @@ kexts = [
|
|||||||
}
|
}
|
||||||
),
|
),
|
||||||
KextInfo(
|
KextInfo(
|
||||||
name = "USBInjectAll",
|
name = "USBToolBox",
|
||||||
description = "Inject all USB ports for the installed Intel EHCI/XHCI chipset automatically",
|
description = "Flexible USB mapping",
|
||||||
category = "USB",
|
category = "USB",
|
||||||
github_repo = {
|
github_repo = {
|
||||||
"owner": "daliansky",
|
"owner": "USBToolBox",
|
||||||
"repo": "OS-X-USB-Inject-All"
|
"repo": "kext"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
KextInfo(
|
||||||
|
name = "UTBDefault",
|
||||||
|
description = "Enables all USB ports (assumes no port limit)",
|
||||||
|
category = "USB",
|
||||||
|
requires_kexts = ["USBToolBox"],
|
||||||
|
github_repo = {
|
||||||
|
"owner": "USBToolBox",
|
||||||
|
"repo": "kext"
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
KextInfo(
|
KextInfo(
|
||||||
|
|||||||
@@ -181,6 +181,8 @@ class gatheringFiles:
|
|||||||
product_name = "IntelBluetoothFirmware"
|
product_name = "IntelBluetoothFirmware"
|
||||||
elif product_name.startswith("VoodooI2C"):
|
elif product_name.startswith("VoodooI2C"):
|
||||||
product_name = "VoodooI2C"
|
product_name = "VoodooI2C"
|
||||||
|
elif product_name == "UTBDefault":
|
||||||
|
product_name = "USBToolBox"
|
||||||
|
|
||||||
product_download_index = self.get_product_index(bootloader_kext_urls, product_name)
|
product_download_index = self.get_product_index(bootloader_kext_urls, product_name)
|
||||||
if product_download_index is None:
|
if product_download_index is None:
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ class KextMaestro:
|
|||||||
for kext in self.kexts:
|
for kext in self.kexts:
|
||||||
kext.checked = kext.required
|
kext.checked = kext.required
|
||||||
|
|
||||||
selected_kexts = []
|
selected_kexts = ["UTBDefault"]
|
||||||
|
|
||||||
if "Intel" in hardware_report.get("CPU").get("Manufacturer"):
|
if "Intel" in hardware_report.get("CPU").get("Manufacturer"):
|
||||||
selected_kexts.extend(("SMCProcessor", "SMCSuperIO"))
|
selected_kexts.extend(("SMCProcessor", "SMCSuperIO"))
|
||||||
|
|||||||
Reference in New Issue
Block a user