Skip to content

Commit

Permalink
Update device check in download_trusty_symbols_if_needed (#4475) (#4545)
Browse files Browse the repository at this point in the history
The device check is updated to use find instead of a literal match so
that sanitized version of the devices (e.g: cheetah_hwasan) can also be
used

---------

Cherry pick: #4256

Co-authored-by: svasudevprasad <[email protected]>
  • Loading branch information
jonathanmetzman and svasudevprasad authored Dec 26, 2024
1 parent 8786d5c commit c7759c7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,12 @@ def download_trusty_symbols_if_needed(symbols_directory, app_name, bid):
"""Downloads and extracts Trusted App ELF files"""
ab_target = ''
device = settings.get_build_parameters().get('target')
if device in ['cheetah', 'panther']:
if 'cheetah' in device or 'panther' in device:
ab_target = 'cloudripper-fuzz-test-debug'
if device in ['oriole', 'raven', 'bluejay']:
elif 'oriole' in device or 'raven' in device or 'bluejay' in device:
ab_target = 'slider-fuzz-test-debug'
else:
logs.error(f'Unsupported device {device}.')

branch = 'polygon-trusty-whitechapel-master'
if not bid:
Expand Down

0 comments on commit c7759c7

Please sign in to comment.