64 lines
2.2 KiB
Plaintext
64 lines
2.2 KiB
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config EXAMPLES_MODULE
|
|
bool "Module Example"
|
|
default n
|
|
depends on MODULE && LIB_BOARDCTL && BUILD_FLAT
|
|
select BOARDCTL_OS_SYMTAB
|
|
---help---
|
|
Enable the module example
|
|
|
|
NOTE: This example can only be used in the FLAT build mode because
|
|
it makes illegal OS calls to ramdisk_register(), register_device(),
|
|
and unregister_device(). A proper solution would include the ROMFS
|
|
file system containing the test module file in the kernel address
|
|
space and would register it with logic in the configs/ board directory
|
|
at start-up.
|
|
|
|
if EXAMPLES_MODULE
|
|
|
|
config EXAMPLES_MODULE_LIBC
|
|
bool "Link with LIBC"
|
|
default n
|
|
depends on !BUILD_KERNEL && EXPERIMENTAL
|
|
---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 MODULE 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.
|
|
|
|
WARNING: Libc will not be built with -mlong-calls and this may
|
|
result in runtime linking failures due to out-of-range functions
|
|
calls.
|
|
|
|
config EXAMPLES_MODULE_LIBGCC
|
|
bool "Link with LIBGCC"
|
|
default n
|
|
depends on !BUILD_KERNEL && EXPERIMENTAL
|
|
|
|
config EXAMPLES_MODULE_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 MODULE executables to be tested. Default: 0
|
|
|
|
config EXAMPLES_MODULE_DEVPATH
|
|
string "ROMFS Device Path"
|
|
default "/dev/ram0"
|
|
---help---
|
|
The path to the ROMFS block driver device. This must match EXAMPLES_MODULE_DEVMINOR.
|
|
Used for registering the RAM block driver that will hold the ROMFS file system
|
|
containing the MODULE executables to be tested. Default: "/dev/ram0"
|
|
|
|
endif
|