From 267d19821299c2cc375e027e858eb8bd21f2c2ae Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Sat, 22 Jan 2022 17:05:43 +0100 Subject: [PATCH] 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 0ba3eb056..eaf41db5b 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 abbccfb5f..869cbced4 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}