mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-04 11:04:13 +08:00

`posix_spawn` depends on these configurations: - !BINFMT_DISABLE - !DISABLE_MOUNTPOINT - BOARDCTL - BOARDCTL_APP_SYMTAB - ELF - FS_ROMFS Check them in compile time may waste some time if the dependencies are not met, move them to Kconfig to avoid this. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
36 lines
1.1 KiB
Plaintext
36 lines
1.1 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_POSIXSPAWN
|
|
tristate "posix_spawn Unit Test"
|
|
default n
|
|
depends on !BINFMT_DISABLE
|
|
depends on !DISABLE_MOUNTPOINT
|
|
depends on BOARDCTL
|
|
depends on BOARDCTL_APP_SYMTAB
|
|
depends on ELF
|
|
depends on FS_ROMFS
|
|
---help---
|
|
Enable the posix_spawn() unit test
|
|
|
|
if EXAMPLES_POSIXSPAWN
|
|
config EXAMPLES_POSIXSPAWN_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_POSIXSPAWN_DEVPATH
|
|
string "ROMFS Devie Path"
|
|
default "/dev/ram0"
|
|
---help---
|
|
The path to the ROMFS block driver device. This must match EXAMPLES_POSIXSPAWN_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"
|
|
|
|
endif
|