2012-10-25 22:06:46 +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-10-25 22:06:46 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
config EXAMPLES_ELF
|
|
|
|
bool "ELF Loader Example"
|
|
|
|
default n
|
2017-10-02 22:32:17 +02:00
|
|
|
select LIBC_EXECFUNCS
|
2012-10-25 22:06:46 +02:00
|
|
|
---help---
|
|
|
|
Enable the ELF loader example
|
|
|
|
|
|
|
|
if EXAMPLES_ELF
|
2014-05-08 19:08:01 +02:00
|
|
|
|
2014-08-29 15:20:07 +02:00
|
|
|
config EXAMPLES_ELF_SYSCALL
|
|
|
|
bool "Link with SYSCALL library"
|
|
|
|
default n
|
2014-09-05 19:25:34 +02:00
|
|
|
depends on LIB_SYSCALL && !BUILD_KERNEL
|
2014-08-29 15:20:07 +02:00
|
|
|
---help---
|
2015-05-29 19:47:40 +02:00
|
|
|
Link with the SYSCALL library. By default, all undefined symbols
|
2014-08-29 15:20:07 +02:00
|
|
|
must be provided via a symbol table. But if this option is
|
|
|
|
selected, then each ELF test program will link with the SYSCALL
|
|
|
|
library and will interface with the OS system calls. In this case,
|
|
|
|
those symbols will not be undefined. If the SYSCALL library is
|
|
|
|
available then you probably will want to select this option.
|
|
|
|
|
|
|
|
config EXAMPLES_ELF_LIBC
|
|
|
|
bool "Link with LIBC"
|
|
|
|
default n
|
2014-09-05 19:25:34 +02:00
|
|
|
depends on !BUILD_KERNEL
|
2014-08-29 15:20:07 +02:00
|
|
|
---help---
|
|
|
|
Link with the C library (and also math library if it was built).
|
|
|
|
By default, all undefined symbols must be provided via a symbol
|
|
|
|
table. But if this option is selected, then each ELF test program
|
|
|
|
will link with the SYSCALL library and will interface with the OS
|
|
|
|
system calls. You probably will NOT want this option, however,
|
|
|
|
because it will substantially increase the size of code. For
|
|
|
|
example, a separate copy of printf() would be linked with every
|
|
|
|
program greatly increasing the total code size. This option is
|
|
|
|
primarily intended only for testing.
|
|
|
|
|
2012-10-26 00:10:56 +02:00
|
|
|
config EXAMPLES_ELF_DEVMINOR
|
|
|
|
int "ROMFS Minor Device Number"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
The minor device number of the ROMFS block. For example, the N in /dev/ramN.
|
|
|
|
Used for registering the RAM block driver that will hold the ROMFS file system
|
|
|
|
containing the ELF executables to be tested. Default: 0
|
|
|
|
|
|
|
|
config EXAMPLES_ELF_DEVPATH
|
2014-05-08 19:08:01 +02:00
|
|
|
string "ROMFS Device Path"
|
2012-10-26 00:10:56 +02:00
|
|
|
default "/dev/ram0"
|
|
|
|
---help---
|
|
|
|
The path to the ROMFS block driver device. This must match EXAMPLES_ELF_DEVMINOR.
|
|
|
|
Used for registering the RAM block driver that will hold the ROMFS file system
|
|
|
|
containing the ELF executables to be tested. Default: "/dev/ram0"
|
|
|
|
|
2015-05-29 19:47:40 +02:00
|
|
|
config EXAMPLES_ELF_CXXINITIALIZE
|
|
|
|
bool "C++ Initialization"
|
|
|
|
default y
|
|
|
|
depends on HAVE_CXX && HAVE_CXXINITIALIZE
|
|
|
|
---help---
|
|
|
|
By default, if CONFIG_HAVE_CXX and CONFIG_HAVE_CXXINITIALIZE are
|
|
|
|
defined, then this example will call the NuttX function to
|
|
|
|
initialize static C++ constructors. This option may be disabled,
|
|
|
|
however, if that static initialization was performed elsewhere.
|
|
|
|
|
|
|
|
config EXAMPLES_ELF_UCLIBCXX
|
|
|
|
bool "uClibc++ is installed"
|
|
|
|
default n
|
|
|
|
depends on UCLIBCXX
|
|
|
|
---help---
|
|
|
|
By default, uClibc++ is not installed and configured. If the
|
|
|
|
user installs and configures the C++ standard library, this
|
|
|
|
example will compile the demos using it.
|
|
|
|
|
2012-10-25 22:06:46 +02:00
|
|
|
endif
|