Merge "sencha: add simulate+cli target"
diff --git a/platforms/sencha/sim.mk b/platforms/sencha/sim.mk
index 5ff05ee..42ce255 100644
--- a/platforms/sencha/sim.mk
+++ b/platforms/sencha/sim.mk
@@ -77,6 +77,18 @@
$(PORT_PRESTART_CMDS) i @${SENCHA_RESC_RELEASE}; \
$(RENODE_PRESTART_CMDS) start"
+## Version of the `simulate` target that also enables the simulator command
+## line interface on port 4567. To access the simulator use something like
+## telnet localhost 4567. Note renode will block until the cli is connected.
+simulate+cli: renode cheriot_sim kelvin_sim multihart_boot_rom ext_flash_release
+ $(RENODE_CMD) -e "\
+ \$$repl_file = @${SENCHA_REPL}; \
+ \$$tar = @$(EXT_FLASH_RELEASE); \
+ \$$sc_bin =@$(TMP_RELEASE)/matcha-tock-bundle.bin; \
+ \$$cli_port = 4567; \
+ $(PORT_PRESTART_CMDS) i @${SENCHA_RESC_RELEASE}; \
+ $(RENODE_PRESTART_CMDS) start"
+
## Debug version of the `simulate` target
#
# This top-level target does the same job as `simulate`, but instead of