Skip to content

Commit 90f828f

Browse files
committed
serial: set up serial from cmake
Don't need to replace the qemu rules from zephyr with a script.
1 parent d74134e commit 90f828f

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

samples/rust-app-serial/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
cmake_minimum_required(VERSION 3.13.1)
44
get_filename_component(ZEPHYR_RUST ${CMAKE_CURRENT_SOURCE_DIR}/../.. ABSOLUTE)
55
list(APPEND ZEPHYR_MODULES ${ZEPHYR_RUST})
6+
list(APPEND QEMU_EXTRA_FLAGS -serial tcp:localhost:4444,server,nowait)
67
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
78
project(hello_world)
89
target_sources(app PRIVATE ./src/main.c)

samples/rust-app-serial/README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ Run
1111
===
1212

1313
.. code-block:: console
14-
sh ../run.sh
14+
ninja run
1515
16-
A `run.sh` script has been provided which adds the following line to the qemu
17-
command:
16+
CMakeLists.txt adds the following line to the qemu command:
1817

1918
.. code-block:: console
2019
-serial tcp:localhost:4444,server,nowait

samples/rust-app-serial/run.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)