mirror of
https://github.com/chipsec/chipsec
synced 2026-06-08 13:31:00 +00:00
dev-2.0.0 only load platform and pch files
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
This commit is contained in:
committed by
Nathaniel Mitchell
parent
70a46219a6
commit
4eab99f160
@@ -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/<code>*.xml) configuration XML files.
|
||||
if self.code and CHIPSET_CODE_UNKNOWN != self.code:
|
||||
for _xml in _cfg_files:
|
||||
|
||||
Reference in New Issue
Block a user