diff --git a/system/cfgdata/Kconfig b/system/cfgdata/Kconfig index abe130c7b..d2f5b9898 100644 --- a/system/cfgdata/Kconfig +++ b/system/cfgdata/Kconfig @@ -11,5 +11,18 @@ config SYSTEM_CFGDATA Enable support for the CFGDATA tool. if SYSTEM_CFGDATA + +config SYSTEM_CFGDATA_STACKSIZE + int "Builtin task stack size" + default 2048 + ---help--- + Size of the task to configure when started cfgdata from NSH + +config SYSTEM_CFGDATA_PRIORITY + int "Builtin task priority" + default 100 + ---help--- + Priority of the task to configure when started cfgdata from NSH + endif diff --git a/system/cfgdata/Makefile b/system/cfgdata/Makefile index 4cb717398..735b02e59 100644 --- a/system/cfgdata/Makefile +++ b/system/cfgdata/Makefile @@ -43,9 +43,12 @@ # config Application # TODO: appname can be automatically extracted from the directory name +CONFIG_SYSTEM_CFGDATA_STACKSIZE ?= 2048 +CONFIG_SYSTEM_CFGDATA_PRIORITY ?= SCHED_PRIORITY_DEFAULT + APPNAME = cfgdata -PRIORITY = SCHED_PRIORITY_DEFAULT -STACKSIZE = 1024 +PRIORITY = $(CONFIG_SYSTEM_CFGDATA_PRIORITY) +STACKSIZE = $(CONFIG_SYSTEM_CFGDATA_STACKSIZE) MAINSRC = cfgdata_main.c