From e1e302f8d150f1b08ad5d72e253d5668daef5e8b Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Mon, 16 Dec 2019 09:57:21 +0100 Subject: [PATCH] tests/gnrc_ipv6_ext_frag: Set limits pool size if not set by Kconfig --- tests/gnrc_ipv6_ext_frag/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/gnrc_ipv6_ext_frag/Makefile b/tests/gnrc_ipv6_ext_frag/Makefile index 8862249f3b..49593888fc 100644 --- a/tests/gnrc_ipv6_ext_frag/Makefile +++ b/tests/gnrc_ipv6_ext_frag/Makefile @@ -6,7 +6,6 @@ export TAP ?= tap0 CFLAGS += -DOUTPUT=TEXT CFLAGS += -DTEST_SUITES="gnrc_ipv6_ext_frag" -CFLAGS += -DCONFIG_GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE=3 ifeq (native,$(BOARD)) TERMFLAGS ?= $(TAP) @@ -48,3 +47,8 @@ ethos: $(Q)env -u CC -u CFLAGS make -C $(RIOTTOOLS)/ethos include $(RIOTBASE)/Makefile.include + +# Set the pool size for limit objects if not being set by Kconfig +ifndef CONFIG_GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE + CFLAGS += -DCONFIG_GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE=3 +endif