Skip to content

Commit

Permalink
tests/gnrc_tcp/ : Set 'CONFIG_' if not Kconfig
Browse files Browse the repository at this point in the history
Set CONFIG_GNRC_TCP_MSL and
CONFIG_GNRC_TCP_CONNECTION_TIMEOUT_DURATION if not set via Kconfig
  • Loading branch information
akshaim committed May 24, 2020
1 parent d7ad471 commit 8269a26
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/gnrc_tcp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ TIMEOUT_US ?= 3000000
TEST_ON_CI_BLACKLIST += all

CFLAGS += -DSHELL_NO_ECHO
CFLAGS += -DCONFIG_GNRC_TCP_MSL=$(MSL_US)
CFLAGS += -DCONFIG_GNRC_TCP_CONNECTION_TIMEOUT_DURATION=$(TIMEOUT_US)
CFLAGS += -DGNRC_NETIF_SINGLE # Only one interface used and it makes
# shell commands easier

Expand Down Expand Up @@ -45,3 +43,14 @@ ethos:
$(Q)env -u CC -u CFLAGS make -C $(RIOTTOOLS)/ethos

include $(RIOTBASE)/Makefile.include

# Set CONFIG_GNRC_TCP_MSL via CFLAGS if not being set via Kconfig
ifndef CONFIG_GNRC_TCP_MSL
CFLAGS += -DCONFIG_GNRC_TCP_MSL=$(MSL_US)
endif

# Set CONFIG_GNRC_TCP_CONNECTION_TIMEOUT_DURATION via CFLAGS if not being set
# via Kconfig
ifndef CONFIG_GNRC_TCP_CONNECTION_TIMEOUT_DURATION
CFLAGS += -DCONFIG_GNRC_TCP_CONNECTION_TIMEOUT_DURATION=$(TIMEOUT_US)
endif

0 comments on commit 8269a26

Please sign in to comment.