2012-04-06 18:33:17 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 18:33:17 +02:00
|
|
|
#
|
2012-04-13 04:14:09 +02:00
|
|
|
|
2018-08-18 17:04:43 +02:00
|
|
|
config SYSTEM_NSH
|
2018-08-22 20:06:32 +02:00
|
|
|
bool "NuttShell (NSH) example"
|
2012-04-13 04:14:09 +02:00
|
|
|
default n
|
2012-09-05 14:45:35 +02:00
|
|
|
select NSH_LIBRARY
|
|
|
|
select SYSTEM_READLINE
|
2012-04-13 04:14:09 +02:00
|
|
|
---help---
|
|
|
|
Enable the NuttShell (NSH) example
|
|
|
|
|
2018-08-18 17:04:43 +02:00
|
|
|
if SYSTEM_NSH
|
2013-06-21 17:32:57 +02:00
|
|
|
|
2018-08-18 17:04:43 +02:00
|
|
|
config SYSTEM_NSH_SYMTAB
|
2018-07-13 14:27:59 +02:00
|
|
|
bool "Register symbol table"
|
|
|
|
default n
|
|
|
|
depends on LIBC_EXECFUNCS && LIB_BOARDCTL && !EXECFUNCS_HAVE_SYMTAB
|
|
|
|
select BOARDCTL_APP_SYMTAB
|
|
|
|
---help---
|
|
|
|
Enable logic to automatically register an application symbol table
|
|
|
|
as part of NSH initialization. If enabled, then application logic
|
|
|
|
must provide the following:
|
|
|
|
|
|
|
|
const struct symtab_s g_exports[];
|
|
|
|
const int g_nexports;
|
|
|
|
|
|
|
|
Where g_exports is the name of the exported application symbol table
|
|
|
|
and g_nexports holds the number of entries in the application symbol
|
|
|
|
table.
|
|
|
|
|
2018-07-15 00:23:42 +02:00
|
|
|
This is done very early in the NSH initialization sequence.
|
|
|
|
|
|
|
|
Why might you want to do this? There is really only one reason: You
|
|
|
|
would like to have the symbol tables in place early so that programs
|
|
|
|
started by NSH, perhaps via an initialization script, will have all
|
|
|
|
of the necessary symbols in place. Otherwise, you probably do *not*
|
|
|
|
want this option!
|
|
|
|
|
2018-08-18 17:04:43 +02:00
|
|
|
if SYSTEM_NSH_SYMTAB
|
|
|
|
|
|
|
|
config SYSTEM_NSH_SYMTAB_ARRAYNAME
|
2018-07-15 00:47:06 +02:00
|
|
|
string "Symbol table used by exec[l|v]"
|
|
|
|
default "g_exports"
|
|
|
|
---help---
|
|
|
|
The exec[l|v] and posix_spawn() functions needs to have (1) a
|
|
|
|
symbol table that provides the list of symbols exported by the base
|
|
|
|
code, and (2) the number of symbols in that table. This selection
|
|
|
|
provides the name of that symbol table.
|
|
|
|
|
2018-08-18 17:04:43 +02:00
|
|
|
config SYSTEM_NSH_SYMTAB_COUNTNAME
|
2018-07-15 00:47:06 +02:00
|
|
|
string "Variable holding the number of symbols"
|
|
|
|
default "g_nexports"
|
|
|
|
---help---
|
|
|
|
The exec[l|v] and posix_spawn() functions needs to have (1) a
|
|
|
|
symbol table that provides the list of symbols exported by the base
|
|
|
|
code, and (2) the number of symbols in that table. This selection
|
|
|
|
provides the name of 'int' variable that holds the number of symbol
|
|
|
|
in the table.
|
|
|
|
|
2018-08-18 17:04:43 +02:00
|
|
|
endif # SYSTEM_NSH_SYMTAB
|
2018-07-15 00:47:06 +02:00
|
|
|
|
2018-08-18 17:04:43 +02:00
|
|
|
config SYSTEM_NSH_PROGNAME
|
2014-09-06 19:17:05 +02:00
|
|
|
string "Program name"
|
|
|
|
default "nsh"
|
2018-08-22 20:06:32 +02:00
|
|
|
depends on BUILD_KERNEL
|
2014-09-06 19:17:05 +02:00
|
|
|
---help---
|
|
|
|
This is the name of the program that will be use when the NSH ELF
|
|
|
|
program is installed.
|
|
|
|
|
2018-08-18 17:04:43 +02:00
|
|
|
config SYSTEM_NSH_CXXINITIALIZE
|
2013-06-21 17:32:57 +02:00
|
|
|
bool "C++ Initialization"
|
|
|
|
default n
|
|
|
|
depends on HAVE_CXX && HAVE_CXXINITIALIZE
|
|
|
|
---help---
|
|
|
|
If HAVE_CXX and HAVE_CXXINITIALIZE are slected, then this NSH
|
|
|
|
example can be configured to initialize C++ constructors when it
|
|
|
|
is started. NSH does not use C++ and, by default, assumes that
|
|
|
|
constructors are initialized elsewhere. However, you can force
|
|
|
|
NSH to initialize constructors by setting this option.
|
|
|
|
|
2012-04-13 04:14:09 +02:00
|
|
|
endif
|