nuttx-apps/system/popen/Kconfig
anchao 220653f21c Squashed commit of the following:
Author: anchao <anchao@pinecone.net>

     apps/, most main() function: Correct CONFIG_BUILD_LOADABLE usage
     Loadable apps/: Correct loadable symbol table generate
     apps/system/ubloxmodem:  Fix build break
     apps/examples/ostest: start restart/waitpid/user test from main loop
     apps/nshlib:  Expand reboot and poweroff commands to include a second, optional mode argument

    Author: Gregory Nutt <gnutt@nuttx.org>

     An attempt to fix build issues.  Does not work.
     apps/examples/ostest:  Fix some inappropriate renaming of static functions introduced with recent patches.
     apps/builtin/exec_builtin.c:  Fix a error introduced by recent comments.  Found in build testing.

    Author: anchao <anchao@pinecone.net>

     apps/builtin/exec_builtin.c:  Try posix_spawn if builtin apps do not have have an entry point.
     apps/Application.mk: introduce MODULE config to simplify tristate(m)
     apps/nsh:  Change the nuttx shell module type to tristate
     apps:  Add loadable application support
     script/mksymtab:  Generate symbol table name by default
     apps/builtin:  Allow loadable applications can register with apps/builtin.
2018-08-23 11:06:15 -06:00

47 lines
1.3 KiB
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config SYSTEM_POPEN
bool "popen()/pclose() Functions"
default n
select SCHED_WAITPID
depends on NSH_LIBRARY
---help---
Enable support for the popen() and pclose() interfaces.
This will support execution of NSH commands from C code with
pipe communications with the shell.
if SYSTEM_POPEN
config SYSTEM_POPEN_SHPATH
string "Path to shell command"
default "/bin/nsh"
depends on BUILD_LOADABLE
---help---
This is the full path to the program in a mounted file system that
implements the system() command. That is, a program that starts the
NSH shell, executes one command (in argv[1]), then exits.
config SYSTEM_POPEN_STACKSIZE
int "Shell stack size"
default 2048 if !ARCH_SIM
default 4096 if ARCH_SIM
---help---
The size of stack allocated for the shell.
NOTE: I needed to set the stack size quite large to get this example
working on the simulated target (perhaps because of the 64-bit
stack? Or perhaps that is a sneak call into the host libc that I
have not caught). I assume that a smaller stack would be okay on
real hardware, but I have not yet verified that.
config SYSTEM_POPEN_PRIORITY
int "Shell priority"
default 100
---help---
The priority of the shell.
endif