mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
runner: intel_adsp: no need to specify host in --pty if no port assign
No need to specify host again in --pty when not specifying the port, slightly reduce the input. Signed-off-by: Enjia Mai <enjia.mai@intel.com>
This commit is contained in:
@@ -71,7 +71,7 @@ class IntelAdspBinaryRunner(ZephyrBinaryRunner):
|
||||
help='the default basename of the key store in board.cmake')
|
||||
parser.add_argument('--key',
|
||||
help='specify where the signing key is')
|
||||
parser.add_argument('--pty',
|
||||
parser.add_argument('--pty', nargs='?', const="remote-host", type=str,
|
||||
help=''''Capture the output of cavstool.py running on --remote-host \
|
||||
and stream it remotely to west's standard output.''')
|
||||
|
||||
@@ -147,7 +147,10 @@ class IntelAdspBinaryRunner(ZephyrBinaryRunner):
|
||||
#
|
||||
# to get the result later separately.
|
||||
if self.pty is not None:
|
||||
self.log_cmd = ([f'{self.cavstool}','-s', f'{self.pty}', '-l'])
|
||||
if self.pty == 'remote-host':
|
||||
self.log_cmd = ([f'{self.cavstool}','-s', f'{self.remote_host}', '-l'])
|
||||
else:
|
||||
self.log_cmd = ([f'{self.cavstool}','-s', f'{self.pty}', '-l'])
|
||||
|
||||
self.logger.debug(f"rcmd: {self.log_cmd}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user