samples: misc: Convert doc to CMake

Convert misc samples doc to CMake.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2017-11-12 10:11:39 +01:00 committed by Anas Nashif
parent 915bf989cf
commit ece86b23ac
3 changed files with 27 additions and 20 deletions

View file

@ -17,18 +17,21 @@ Building and Running
This project outputs 'Hello World' to the console. It can be built and executed
on QEMU as follows:
.. code-block:: console
$ cd samples/hello_world
$ make run
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: qemu_x86
:goals: run
:compact:
To build the single thread version, use the supplied configuration file for
single thread: :file:`prj_single.conf`:
.. code-block:: console
$ make CONF_FILE=prj_single.conf run
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: qemu_x86
:conf: prj_single.conf
:goals: run
:compact:
Sample Output
=============

View file

@ -43,10 +43,11 @@ Building and Running
This project outputs to the console. It can be built and executed
on QEMU as follows:
.. code-block:: console
$ cd samples/philosophers
$ make run
.. zephyr-app-commands::
:zephyr-app: samples/philosophers
:board: qemu_x86
:goals: run
:compact:
Sample Output
=============

View file

@ -18,18 +18,21 @@ Building and Running
This project outputs to the console. It can be built and executed
on QEMU as follows:
.. code-block:: console
$ cd samples/synchronization
$ make run
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:board: qemu_x86
:goals: run
:compact:
On the supported ARM MCUs the project can be built with the MPU and the Thread
Stack Guard feature enabled:
.. code-block:: console
$ cd samples/synchronization
$ make BOARD=v2m_beetle CONF_FILE=prj_stack_guard.conf
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:board: v2m_beetle
:conf: prj_stack_guard.conf
:goals: build flash
:compact:
Sample Output
=============