fix(tools/coredump): ignore missing project description

This commit is contained in:
Peter Dragun 2023-11-08 12:53:00 +01:00
parent d5a32fa5e8
commit 34a6d8ebe7
2 changed files with 4 additions and 2 deletions

View File

@ -99,6 +99,7 @@
- "**/build*/bootloader/*.bin"
- "**/build*/bootloader/*.elf"
- "**/build*/partition_table/*.bin"
- "**/build*/project_description.json"
- list_job_*.json
- size_info.txt
when: always

View File

@ -71,8 +71,9 @@ def main(): # type: () -> None
kwargs = {k: v for k, v in vars(args).items() if v is not None}
project_desc = get_project_desc(kwargs['prog'])
# pass the extra_gdbinit_file if the build is reproducible
kwargs['extra_gdbinit_file'] = project_desc.get('debug_prefix_map_gdbinit')
kwargs['parttable_off'] = get_sdkconfig_value(project_desc['config_file'], 'CONFIG_PARTITION_TABLE_OFFSET')
if project_desc:
kwargs['extra_gdbinit_file'] = project_desc.get('debug_prefix_map_gdbinit')
kwargs['parttable_off'] = get_sdkconfig_value(project_desc['config_file'], 'CONFIG_PARTITION_TABLE_OFFSET')
del kwargs['debug']
del kwargs['operation']