From 97a985352646fefc22be7409ff99d79f4bcc0880 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Thu, 24 Feb 2022 11:25:44 -0700 Subject: [PATCH] Resolve crash on Vendor detection --- resources/build.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/resources/build.py b/resources/build.py index 8083240ec..fe5a7a704 100644 --- a/resources/build.py +++ b/resources/build.py @@ -409,12 +409,8 @@ class BuildOpenCore: # With macOS Monterey, Apple's SDXC driver requires the system to support VT-D # However pre-Ivy Bridge don't support this feature - # Big Sur's AppleSDXC driver only supported 14e4:16bc, so ignore other devices (avoids false positives from class code parsing) if smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.cpu_data.sandy_bridge.value: - if ( - (self.constants.computer.sdxc_controller and not self.constants.custom_model and self.constants.computer.sdxc_controller.vendor_id == 0x14e4 and self.constants.computer.sdxc_controller.device_id == 0x16bc) or - (self.model.startswith("MacBookPro8") or self.model.startswith("Macmini5")) - ): + if (self.constants.computer.sdxc_controller and not self.constants.custom_model) or (self.model.startswith("MacBookPro8") or self.model.startswith("Macmini5")): self.enable_kext("BigSurSDXC.kext", self.constants.bigsursdxc_version, self.constants.bigsursdxc_path) # USB Map