diff --git a/netutils/cjson/Kconfig b/netutils/cjson/Kconfig index d602ba852..d50a0d544 100644 --- a/netutils/cjson/Kconfig +++ b/netutils/cjson/Kconfig @@ -30,6 +30,14 @@ config CJSON_UNITY_TEST_DIR string "cJSON test directory" default "/data" +config CJSON_TEST_PRIORITY + int "task priority" + default 100 + +config CJSON_TEST_STACKSIZE + int "stack size" + default 102400 + endif endif diff --git a/netutils/cjson/Makefile b/netutils/cjson/Makefile index 0af762961..dc9927353 100644 --- a/netutils/cjson/Makefile +++ b/netutils/cjson/Makefile @@ -31,8 +31,8 @@ CONFIG_NETUTILS_CJSON_VERSION ?= "1.7.10" CJSON_VERSION = $(patsubst "%",%,$(strip $(CONFIG_NETUTILS_CJSON_VERSION))) CJSON_TARBALL = v$(CJSON_VERSION).tar.gz - CJSON_UNPACKNAME = cJSON + UNPACK ?= tar -zxf CJSON_UNPACKDIR = $(WD)/$(CJSON_UNPACKNAME) @@ -75,8 +75,8 @@ MAINSRC += $(UNITY_CJSONTESTCS) CSRCS += $(CJSON_SRCDIR)/tests/unity_setup.c CFLAGS += -Wno-unused-function -PRIORITY = SCHED_PRIORITY_DEFAULT -STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE) +PRIORITY = $(CONFIG_CJSON_TEST_PRIORITY) +STACKSIZE = $(CONFIG_CJSON_TEST_STACKSIZE) endif $(CJSON_SRCDIR)$(DELIM)cJSON.h: $(CJSON_UNPACKNAME)