cmake: emu: Add arm fvp emulator
Add arm fvp emulator in order to use ninja run or west build -t run. Add armfvp in order to run twister. Set env ARMFVP_BIN_PATH before using it, e.g. export ARMFVP_BIN_PATH=<path/to/fvp/dir> NOTE: ARMFVP_BIN_PATH is the dir path. Signed-off-by: Jaxson Han <jaxson.han@arm.com>
This commit is contained in:
parent
8f46bc97a3
commit
8af11d40d0
3 changed files with 27 additions and 2 deletions
|
@ -1810,7 +1810,7 @@ class TestInstance(DisablePyTestCollectionMixin):
|
|||
|
||||
target_ready = bool(self.testcase.type == "unit" or \
|
||||
self.platform.type == "native" or \
|
||||
self.platform.simulation in ["mdb-nsim", "nsim", "renode", "qemu", "tsim"] or \
|
||||
self.platform.simulation in ["mdb-nsim", "nsim", "renode", "qemu", "tsim", "armfvp"] or \
|
||||
filter == 'runnable')
|
||||
|
||||
if self.platform.simulation == "nsim":
|
||||
|
@ -2268,6 +2268,9 @@ class ProjectBuilder(FilterBuilder):
|
|||
instance.handler = BinaryHandler(instance, "nsim")
|
||||
instance.handler.pid_fn = os.path.join(instance.build_dir, "mdb.pid")
|
||||
instance.handler.call_west_flash = True
|
||||
elif instance.platform.simulation == "armfvp":
|
||||
instance.handler = BinaryHandler(instance, "armfvp")
|
||||
instance.handler.call_make_run = True
|
||||
|
||||
if instance.handler:
|
||||
instance.handler.args = args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue