build: Expand KDKLWA usage to pre-AVX2 with native AMD

This commit is contained in:
Mykola Grymalyuk
2022-12-27 18:05:39 -07:00
parent 60f6482d43
commit fcda4a26bf
5 changed files with 47 additions and 23 deletions
+1 -22
View File
@@ -33,7 +33,6 @@ class build_misc:
self.debug_handling()
self.cpu_friend_handling()
self.general_oc_handling()
self.aux_kc_workaround()
def feature_unlock_handling(self):
if self.constants.fu_status is True:
@@ -247,24 +246,4 @@ class build_misc:
if self.constants.vault is True and utilities.check_command_line_tools() is True:
print("- Setting Vault configuration")
self.config["Misc"]["Security"]["Vault"] = "Secure"
support.build_support(self.model, self.constants, self.config).get_efi_binary_by_path("OpenShell.efi", "Misc", "Tools")["Enabled"] = False
def aux_kc_workaround(self):
gpu_dict = []
if not self.constants.custom_model:
gpu_dict = self.constants.computer.gpus
else:
if self.model in smbios_data.smbios_dictionary:
gpu_dict = smbios_data.smbios_dictionary[self.model]["Stock GPUs"]
for gpu in gpu_dict:
if not self.constants.custom_model:
gpu = gpu.arch
if gpu in [
device_probe.Intel.Archs.Ivy_Bridge,
device_probe.Intel.Archs.Haswell,
device_probe.Intel.Archs.Broadwell,
device_probe.Intel.Archs.Skylake,
device_probe.NVIDIA.Archs.Kepler,
]:
support.build_support(self.model, self.constants, self.config).enable_kext("KDKlessWorkaround.kext", self.constants.kdkless_version, self.constants.kdkless_path)
break
support.build_support(self.model, self.constants, self.config).get_efi_binary_by_path("OpenShell.efi", "Misc", "Tools")["Enabled"] = False