Skip to content

Commit

Permalink
tools: sof_ri_info: fix memory layout match
Browse files Browse the repository at this point in the history
For sof-tgl.ri and sof-tgl-h.ri the old match function will
always return tgl layout. Add suffix in match to make sure
we always match the right name.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
  • Loading branch information
xiulipan authored and lgirdwood committed Jan 12, 2021
1 parent 586caa7 commit 0767ffa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/sof_ri_info/sof_ri_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,8 @@ def get_mem_map(ri_path):
""" Retrieves memory map for platform determined by the file name
"""
for plat_name in DSP_MEM_SPACE_EXT:
if plat_name in ri_path:
# use full firmware name for match
if "sof-{}.ri".format(plat_name) in ri_path:
return DSP_MEM_SPACE_EXT[plat_name]
return DspMemory('Memory layout undefined', [])

Expand Down

0 comments on commit 0767ffa

Please sign in to comment.