From d35b83668c12f2bf879db8267087e3dea890cbbf Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 14 Oct 2013 07:32:20 -0600 Subject: [PATCH] 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 --- system/sysinfo/Kconfig | 6 ++++++ system/sysinfo/Makefile | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/system/sysinfo/Kconfig b/system/sysinfo/Kconfig index 1f106dc8a..3d9bc56de 100644 --- a/system/sysinfo/Kconfig +++ b/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/system/sysinfo/Makefile b/system/sysinfo/Makefile index eb788b01a..bbac0415b 100644 --- a/system/sysinfo/Makefile +++ b/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