samples: hello_world_user: fail in compilation if userspace is not enabled
The sample depends on CONFIG_USERSPACE. Signed-off-by: Wojciech Sipak <wsipak@antmicro.com>
This commit is contained in:
parent
37158ebf15
commit
12f4f4dc86
|
@ -8,6 +8,10 @@
|
|||
#include <stdio.h>
|
||||
#define USER_STACKSIZE 2048
|
||||
|
||||
#ifndef CONFIG_USERSPACE
|
||||
#error This sample requires CONFIG_USERSPACE.
|
||||
#endif
|
||||
|
||||
struct k_thread user_thread;
|
||||
K_THREAD_STACK_DEFINE(user_stack, USER_STACKSIZE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue