This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 267d19821299c2cc375e027e858eb8bd21f2c2ae
Author: raiden00pl <[email protected]>
AuthorDate: Sat Jan 22 17:05:43 2022 +0100

    canutils/candump: make stacksize configurable
---
 canutils/candump/Kconfig  | 5 +++++
 canutils/candump/Makefile | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/canutils/candump/Kconfig b/canutils/candump/Kconfig
index 0ba3eb0..eaf41db 100644
--- a/canutils/candump/Kconfig
+++ b/canutils/candump/Kconfig
@@ -13,4 +13,9 @@ config CANUTILS_CANDUMP
                https://github.com/linux-can/can-utils
 
 if CANUTILS_CANDUMP
+
+config CANUTILS_CANDUMP_STACKSIZE
+       int "SocketCAN candump stack size"
+       default DEFAULT_TASK_STACKSIZE
+
 endif
diff --git a/canutils/candump/Makefile b/canutils/candump/Makefile
index abbccfb..869cbce 100644
--- a/canutils/candump/Makefile
+++ b/canutils/candump/Makefile
@@ -25,7 +25,7 @@ include $(APPDIR)/Make.defs
 
 PROGNAME = candump
 PRIORITY = SCHED_PRIORITY_DEFAULT
-STACKSIZE = 3072
+STACKSIZE = $(CONFIG_CANUTILS_CANDUMP_STACKSIZE)
 MODULE = $(CONFIG_CANUTILS_CANDUMP)
 
 CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/canutils/libcanutils}

Reply via email to