scripts: list_hardware: Do not check qualifiers for run once config

Removes validating the qualifiers for flash run once configuration
as files may be present that contain information for qualifiers
that are not present in a single repository but are spaced out in
other repositories, or might be optional

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2024-07-08 13:25:12 +01:00 committed by Henrik Brix Andersen
parent a04dfc4ece
commit 33e70b32dc

View file

@ -100,25 +100,13 @@ class Systems:
for item_data in data['runners']['run_once'][grp]: for item_data in data['runners']['run_once'][grp]:
for group in item_data['groups']: for group in item_data['groups']:
for qualifiers in group['qualifiers']: for qualifiers in group['qualifiers']:
soc_name, *components = qualifiers.split('/') soc_name = qualifiers.split('/')[0]
found_match = False found_match = False
# Allow 'ns' as final qualifier until "virtual" CPUs are ported to soc.yml
# https://github.com/zephyrproject-rtos/zephyr/issues/70721
if components and components[-1] == 'ns':
components.pop()
for soc in self._socs + self._extended_socs: for soc in self._socs + self._extended_socs:
if re.match(fr'^{soc_name}$', soc.name) is not None: if re.match(fr'^{soc_name}$', soc.name) is not None:
if soc.cpuclusters and components: found_match = True
check_string = '/'.join(components) break
for cpucluster in soc.cpuclusters:
if re.match(fr'^{check_string}$', cpucluster) is not None:
found_match = True
break
elif not soc.cpuclusters and not components:
found_match = True
break
if found_match is False: if found_match is False:
sys.exit(f'ERROR: SoC qualifier match unresolved: {qualifiers}') sys.exit(f'ERROR: SoC qualifier match unresolved: {qualifiers}')