Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
811 B

# Copyright (c) 2024 Antmicro <www.antmicro.com>
#
# SPDX-License-Identifier: Apache-2.0
from run_common import add_parser_common, do_run_common
from west.commands import WestCommand
EXPORT_DESCRIPTION = '''\
Simulate the board on a runner of choice using generated artifacts.
'''
class Simulate(WestCommand):
def __init__(self):
super().__init__(
'simulate',
# Keep this in sync with the string in west-commands.yml.
'simulate board',
EXPORT_DESCRIPTION,
accepts_unknown_args=True)
self.runner_key = 'sim-runner' # in runners.yaml
def do_add_parser(self, parser_adder):
return add_parser_common(self, parser_adder)
def do_run(self, my_args, runner_args):
do_run_common(self, my_args, runner_args)