samples: synch: Add Thread Stack Guards conf

This patch adds the Thread Stack Guards configuration option to the
synchronization sample.

This is meant to be an easy way to prove that the MPU can be dynamically
programmed on the supported platforms.

Change-Id: I77fbe6af3303ff8a2904768abd4cc9797f03c092
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
This commit is contained in:
Vincenzo Frascino 2017-03-29 11:39:17 +01:00 committed by Kumar Gala
commit 1a1df7cc64
3 changed files with 20 additions and 0 deletions

View file

@ -23,6 +23,14 @@ on QEMU as follows:
$ cd samples/synchronization
$ make run
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
Sample Output
=============

View file

@ -0,0 +1,5 @@
CONFIG_STDOUT_CONSOLE=y
CONFIG_MPU_STACK_GUARD=y
CONFIG_SYS_LOG=y
CONFIG_SYS_LOG_DEFAULT_LEVEL=4
CONFIG_SYS_LOG_OVERRIDE_LEVEL=4

View file

@ -1,3 +1,10 @@
[test]
build_only = true
tags = apps
[test_stack_guard]
build_only = true
extra_args = CONF_FILE=prj_stack_guard.conf
tags = apps
arch_whitelist = arm
filter = CONFIG_MPU_STACK_GUARD and CONFIG_ARM_MPU