summaryrefslogtreecommitdiff
path: root/nuttx/sched/Kconfig
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-30 13:27:23 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-30 13:27:23 -0600
commit6589a0ca8924c1166152a5386e30ea49cd266f51 (patch)
tree5c4eb249cbbee7db43a5ea13779d3dc72825612d /nuttx/sched/Kconfig
parent7af9398910df9a007a16856956fd7754fa6e89ff (diff)
downloadpx4-nuttx-6589a0ca8924c1166152a5386e30ea49cd266f51.tar.gz
px4-nuttx-6589a0ca8924c1166152a5386e30ea49cd266f51.tar.bz2
px4-nuttx-6589a0ca8924c1166152a5386e30ea49cd266f51.zip
Add configuration options to start the system from a program on a file system
Diffstat (limited to 'nuttx/sched/Kconfig')
-rw-r--r--nuttx/sched/Kconfig52
1 files changed, 52 insertions, 0 deletions
diff --git a/nuttx/sched/Kconfig b/nuttx/sched/Kconfig
index c3f7dbbf2..02f35d5a0 100644
--- a/nuttx/sched/Kconfig
+++ b/nuttx/sched/Kconfig
@@ -218,6 +218,26 @@ endmenu # Clocks and Timers
menu "Tasks and Scheduling"
+choice
+ prompt "Initialization Task"
+ default INIT_ENTRYPOINT if !BUILD_KERNEL
+ default INIT_FILEPATH if BUILD_KERNEL && !BINFMT_DISABLE
+ default INIT_NONE if BUILD_KERNEL && BINFMT_DISABLE
+
+config INIT_NONE
+ bool
+
+config INIT_ENTRYPOINT
+ bool "Via application entry point"
+ depends on !BUILD_KERNEL
+
+config INIT_FILEPATH
+ bool "Via executable file"
+ depends on !BINFMT_DISABLE
+
+endchoice # Initialization task
+
+if INIT_ENTRYPOINT
config USER_ENTRYPOINT
string "Application entry point"
default "main"
@@ -226,6 +246,38 @@ config USER_ENTRYPOINT
applications this is of the form 'app_main' where 'app' is the application
name. If not defined, USER_ENTRYPOINT defaults to "main".
+endif # INIT_ENTRYPOINT
+
+if INIT_FILEPATH
+
+config USER_INITPATH
+ string "Application initialization path"
+ default "/bin/init"
+ ---help---
+ The name of the entry point for user applications. For the example
+ applications this is of the form 'app_main' where 'app' is the application
+ name. If not defined, USER_ENTRYPOINT defaults to "main".
+
+config INIT_SYMTAB
+ string "Symbol table"
+ default "NULL"
+ ---help---
+ The name of othe global array that holds the exported symbol table.
+ The special string "NULL" may be provided if there is no symbol
+ table. Quotation marks will be stripped when config.h is generated.
+
+config INIT_NEXPORTS
+ string "Symbol table size"
+ default "0"
+ ---help---
+ The size of the symbol table. NOTE that is is logically a numeric
+ value but is represent by a string. That allows you to put
+ sizeof(something) or a macro or a global variable name for the
+ symbol table size. Quotation marks will be stripped when config.h
+ is generated.
+
+endif # INIT_FILEPATH
+
config RR_INTERVAL
int "Round robin timeslice (MSEC)"
default 0