1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/net/cord : Set 'CONFIG_CORD_LT' if not Kconfig

This commit is contained in:
Akshai M 2020-06-18 22:39:41 +05:30
parent bb8d3cd72b
commit a8e627f1c8
2 changed files with 15 additions and 8 deletions

View File

@ -24,10 +24,13 @@ USEMODULE += fmt
# development process:
DEVELHELP ?= 1
# For debugging and demonstration purposes, we limit the lifetime to 60s
CFLAGS += -DCONFIG_CORD_LT=60
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1
include $(RIOTBASE)/Makefile.include
# For debugging and demonstration purposes, we limit the lifetime to 60s
# Set CONFIG_CORD_LT only if not being set via Kconfig
ifndef CONFIG_CORD_LT
CFLAGS += -DCONFIG_CORD_LT=60
endif

View File

@ -23,11 +23,6 @@ USEMODULE += xtimer
# development process:
DEVELHELP ?= 1
# For debugging and demonstration purposes, we limit the lifetime to the minimal
# allowed value of 60s (see draft-ietf-core-resource-directory-11, Table 2)
RD_LT ?= 60
CFLAGS += -DCONFIG_CORD_LT=$(RD_LT)
# The RD server's address must be defined by the build environment by setting
# the RD_ADDR environment variable. Per default, this value is set to the
# loopback address for enabling the build tests to successfully build this
@ -36,3 +31,12 @@ RD_ADDR ?= \"[affe::1]\"
CFLAGS += -DRD_ADDR=$(RD_ADDR)
include $(RIOTBASE)/Makefile.include
# For debugging and demonstration purposes, we limit the lifetime to the minimal
# allowed value of 60s (see draft-ietf-core-resource-directory-11, Table 2)
RD_LT ?= 60
# Set CONFIG_CORD_LT only if not being set via Kconfig
ifndef CONFIG_CORD_LT
CFLAGS += -DCONFIG_CORD_LT=$(RD_LT)
endif