examples/elf and nxff: Won't build with CONFIG_BUILD_KERNEL because the interface exec() is not available in that configuration. Also, remove a stray comma and a stray semacolon in examples/pty_test/Kconfig and examples/random/Kconfig
This commit is contained in:
parent
926a52bc5e
commit
1db7d34a84
@ -7,6 +7,7 @@ config EXAMPLES_ELF
|
||||
bool "ELF Loader Example"
|
||||
default n
|
||||
select LIBC_EXECFUNCS
|
||||
depends on ELF && !BUILD_KERNEL
|
||||
---help---
|
||||
Enable the ELF loader example
|
||||
|
||||
@ -15,7 +16,7 @@ if EXAMPLES_ELF
|
||||
config EXAMPLES_ELF_SYSCALL
|
||||
bool "Link with SYSCALL library"
|
||||
default n
|
||||
depends on LIB_SYSCALL && !BUILD_KERNEL
|
||||
depends on LIB_SYSCALL
|
||||
---help---
|
||||
Link with the SYSCALL library. By default, all undefined symbols
|
||||
must be provided via a symbol table. But if this option is
|
||||
@ -27,7 +28,6 @@ config EXAMPLES_ELF_SYSCALL
|
||||
config EXAMPLES_ELF_LIBC
|
||||
bool "Link with LIBC"
|
||||
default n
|
||||
depends on !BUILD_KERNEL
|
||||
---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
|
||||
|
@ -301,7 +301,14 @@ int elf_main(int argc, char *argv[])
|
||||
filename = fullpath;
|
||||
#endif
|
||||
|
||||
/* Execute the ELF module */
|
||||
/* Execute the ELF module.
|
||||
*
|
||||
* NOTE: The standard posix_spawn() interface would be more correct.
|
||||
* The non-standard exec() function is used because it provides a
|
||||
* simple way to pass the symbol table information needed to load the
|
||||
* program. posix_spawn(), on the other hand, will assume that symbol
|
||||
* table information is available within the OS.
|
||||
*/
|
||||
|
||||
args[0] = NULL;
|
||||
ret = exec(filename, args, exports, nexports);
|
||||
|
@ -7,7 +7,7 @@ config EXAMPLES_NXFLAT
|
||||
bool "NXFLAT example"
|
||||
default n
|
||||
select LIBC_EXECFUNCS
|
||||
depends on NXFLAT && BUILD_FLAT
|
||||
depends on NXFLAT && !BUILD_KERNEL
|
||||
---help---
|
||||
Enable the NXFLAT example
|
||||
|
||||
|
@ -223,7 +223,14 @@ int nxflat_main(int argc, char *argv[])
|
||||
filename = fullpath;
|
||||
#endif
|
||||
|
||||
/* Execute the NXFLAT module */
|
||||
/* Execute the NXFLAT module
|
||||
*
|
||||
* NOTE: The standard posix_spawn() interface would be more correct.
|
||||
* The non-standard exec() function is used because it provides a
|
||||
* simple way to pass the symbol table information needed to load the
|
||||
* program. posix_spawn(), on the other hand, will assume that symbol
|
||||
* table information is available within the OS.
|
||||
*/
|
||||
|
||||
args[0] = NULL;
|
||||
ret = exec(filename, args, exports, NEXPORTS);
|
||||
|
@ -37,7 +37,7 @@ config EXAMPLES_PTYTEST_STACKSIZE
|
||||
int "PTYTest stack size"
|
||||
default 2048
|
||||
|
||||
config EXAMPLES_PTYTEST_DAEMONPRIO,
|
||||
config EXAMPLES_PTYTEST_DAEMONPRIO
|
||||
int "PTY_Test daemon task priority"
|
||||
default 100
|
||||
|
||||
|
@ -19,7 +19,7 @@ config EXAMPLES_MAXSAMPLES
|
||||
This is the size of the /dev/random I/O buffer in units of 32-bit
|
||||
samples. Careful! This buffer is allocated on the stack as needed!
|
||||
|
||||
config EXAMPLES_NSAMPLES;
|
||||
config EXAMPLES_NSAMPLES
|
||||
int "Default samples"
|
||||
default 8
|
||||
---help---
|
||||
|
Loading…
Reference in New Issue
Block a user