Added a top level `posix` shell command for other POSIX commands. Currently only `uname` is supported. New POSIX commands can be added by including the `posix_shell.h` header and use the `POSIX_CMD_ADD` helper macro. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
13 lines
258 B
Text
13 lines
258 B
Text
# Copyright (c) 2024 Meta
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if POSIX_UNAME
|
|
|
|
config POSIX_UNAME_SHELL
|
|
bool "Support for `uname` command"
|
|
select SHELL_GETOPT
|
|
select POSIX_SHELL
|
|
help
|
|
Support for `uname` command in the terminal.
|
|
|
|
endif # POSIX_UNAME
|