This website requires JavaScript.
Explore
Help
Sign In
OrgZephyr
/
zephyr
mirror of
https://github.com/zephyrproject-rtos/zephyr.git
Watch
1
Star
0
Fork
You've already forked zephyr
0
Code
Issues
Releases
Wiki
Activity
5db2390e9d
zephyr
/
samples
/
posix
/
uname
/
prj.conf
5 lines
86 B
Plaintext
Raw
Normal View
History
Unescape
Escape
samples: posix: add sample for uname Add a simple, testable sample to print everything in the utsname struct, and added a `uname` shell cmd basically copied from nuttx just for fun. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2023-07-05 00:21:37 +08:00
CONFIG_POSIX_API=y
CONFIG_SHELL=y
posix: uname: move `uname` shell from sample Relocate the `uname` shell implementation from uname sample, so that it can be reused by other application and the uname sample only uses POSIX APIs. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-01-16 14:33:12 +08:00
CONFIG_POSIX_UNAME_SHELL=y
samples: posix: uname: Set to 1cpu as shell_thread is not SMP-safe The sample will leverage shell_thread function, which is not SMP-safe. This will cause issues on some SMP platform. Set CONFIG_MP_MAX_NUM_CPUS to 1 to fix the issue. Signed-off-by: Jaxson Han <jaxson.han@arm.com>
2023-08-21 11:38:15 +08:00
CONFIG_MP_MAX_NUM_CPUS=1