From 4eab99f16093eaa83dd7694c04670f9e3d0fc111 Mon Sep 17 00:00:00 2001 From: brentholtsclaw Date: Tue, 23 Nov 2021 16:18:24 -0800 Subject: [PATCH] dev-2.0.0 only load platform and pch files Signed-off-by: brentholtsclaw --- chipsec/chipset.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/chipsec/chipset.py b/chipsec/chipset.py index 75b7b22d..a539d174 100644 --- a/chipsec/chipset.py +++ b/chipsec/chipset.py @@ -451,12 +451,6 @@ class Chipset: loaded_files = [] - # Locate configuration files from all other XML files recursively (if any) excluding other platform configuration files. - platform_files = [] - for plat in [c.lower() for c in self.chipset_codes]: - platform_files.extend([x for x in _cfg_files if fnmatch.fnmatch(os.path.basename(x), '{}*.xml'.format(plat)) or os.path.basename(x).startswith(PCH_CODE_PREFIX.lower())]) - loaded_files.extend([x for x in _cfg_files if x not in loaded_files and x not in platform_files]) - # Locate platform specific (chipsec/cfg/*.xml) configuration XML files. if self.code and CHIPSET_CODE_UNKNOWN != self.code: for _xml in _cfg_files: