From 13fcbcb3d1f3cf66b7ade640fbbea9c35f9ed896 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Sat, 22 Jan 2022 17:06:32 +0100 Subject: [PATCH] canutils/cansend: make stacksize configurable --- canutils/cansend/Kconfig | 5 +++++ canutils/cansend/Makefile | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/canutils/cansend/Kconfig b/canutils/cansend/Kconfig index 9d4adea6d..c471b7de9 100644 --- a/canutils/cansend/Kconfig +++ b/canutils/cansend/Kconfig @@ -13,4 +13,9 @@ config CANUTILS_CANSEND https://github.com/linux-can/can-utils if CANUTILS_CANSEND + +config CANUTILS_CANSEND_STACKSIZE + int "SocketCAN cansend stack size" + default DEFAULT_TASK_STACKSIZE + endif diff --git a/canutils/cansend/Makefile b/canutils/cansend/Makefile index 8df205723..0f106276d 100644 --- a/canutils/cansend/Makefile +++ b/canutils/cansend/Makefile @@ -25,7 +25,7 @@ include $(APPDIR)/Make.defs PROGNAME = cansend PRIORITY = SCHED_PRIORITY_DEFAULT -STACKSIZE = 2048 +STACKSIZE = $(CONFIG_CANUTILS_CANSEND_STACKSIZE) MODULE = $(CONFIG_CANUTILS_CANSEND) CFLAGS += ${shell $(INCDIR) "$(CC)" $(APPDIR)/canutils/libcanutils}