From b33449923aee0b4320bed6b3f4880fcc75da32ab Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 14 Oct 2013 07:32:20 -0600 Subject: apps/system/sysinfo: Ken Petit reportst that the sysinfo command's stack size is marginal. Stack size is now configurable with a default of 1024 bytes --- apps/system/sysinfo/Kconfig | 6 ++++++ apps/system/sysinfo/Makefile | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'apps/system') diff --git a/apps/system/sysinfo/Kconfig b/apps/system/sysinfo/Kconfig index 1f106dc8a..3d9bc56de 100644 --- a/apps/system/sysinfo/Kconfig +++ b/apps/system/sysinfo/Kconfig @@ -10,4 +10,10 @@ config SYSTEM_SYSINFO Enable support for the NSH sysinfo command. if SYSTEM_SYSINFO + +config SYSTEM_SYSINFO_STACKSIZE + int "NSHS sysinfo stack size" + default 1024 + endif + diff --git a/apps/system/sysinfo/Makefile b/apps/system/sysinfo/Makefile index eb788b01a..bbac0415b 100644 --- a/apps/system/sysinfo/Makefile +++ b/apps/system/sysinfo/Makefile @@ -46,12 +46,13 @@ ifeq ($(WINTOOL),y) INCDIROPT = -w endif -# Hello Application -# TODO: appname can be automatically extracted from the directory name +# NSH sysinfo command + +CONFIG_SYSTEM_SYSINFO_STACKSIZE ?= 1024 APPNAME = sysinfo PRIORITY = SCHED_PRIORITY_DEFAULT -STACKSIZE = 768 +STACKSIZE = $(CONFIG_SYSTEM_SYSINFO_STACKSIZE) ASRCS = CSRCS = sysinfo.c -- cgit v1.2.3