From 414a0b0fa5f26454cc979b20860b7187ef997d51 Mon Sep 17 00:00:00 2001 From: Akshai M Date: Sun, 24 May 2020 18:21:13 +0530 Subject: [PATCH] tests/unittests/mac : Added check for macro if set via Kconfig --- tests/unittests/tests-gnrc_mac_internal/Makefile.include | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unittests/tests-gnrc_mac_internal/Makefile.include b/tests/unittests/tests-gnrc_mac_internal/Makefile.include index 29394f3096..49f45a1f5c 100644 --- a/tests/unittests/tests-gnrc_mac_internal/Makefile.include +++ b/tests/unittests/tests-gnrc_mac_internal/Makefile.include @@ -1,3 +1,5 @@ USEMODULE += gnrc_priority_pktqueue USEMODULE += gnrc_mac -CFLAGS += -DGNRC_MAC_TX_QUEUE_SIZE=4 -DGNRC_MAC_NEIGHBOR_COUNT=4 + +# Set CFLAGS if not being set via Kconfig +CFLAGS += $(if $(CONFIG_KCONFIG_MODULE_GNRC_MAC),,-DGNRC_MAC_TX_QUEUE_SIZE=4 -DCONFIG_GNRC_MAC_NEIGHBOR_COUNT=4)