pkg/tinydtls: cleanup Makefile.include
- Removes `TINYDTLS_LOG` because it is redundant with `TINYDTLS_LOG_LVL` - Remove check for using tinydtls module because the Makefile will only be included if the tinydtls module is used
This commit is contained in:
parent
24b42d192c
commit
5391e50bb7
@ -7,8 +7,6 @@ ifeq ($(TOOLCHAIN), llvm)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
INCLUDES += -I$(RIOTBASE)/pkg/tinydtls/include
|
INCLUDES += -I$(RIOTBASE)/pkg/tinydtls/include
|
||||||
|
|
||||||
ifneq (,$(filter tinydtls,$(USEMODULE)))
|
|
||||||
INCLUDES += -I$(PKG_BUILDDIR)
|
INCLUDES += -I$(PKG_BUILDDIR)
|
||||||
# Mandatory for tinyDTLS
|
# Mandatory for tinyDTLS
|
||||||
CFLAGS += -DDTLSv12 -DWITH_SHA256
|
CFLAGS += -DDTLSv12 -DWITH_SHA256
|
||||||
@ -29,24 +27,12 @@ ifneq (,$(filter tinydtls,$(USEMODULE)))
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Enable debug when using tinydtls_sock_dtls
|
|
||||||
ifneq (,$(filter -DDTLS_DEBUG,$(CFLAGS)))
|
|
||||||
ifeq (,$(TINYDTLS_LOG))
|
|
||||||
CFLAGS += -DTINYDTLS_DEBUG
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Handles the verbosity of tinyDTLS. Default: Minimum or just error messages.
|
# Handles the verbosity of tinyDTLS. Default: Minimum or just error messages.
|
||||||
ifeq (,$(filter -DTINYDTLS_DEBUG,$(CFLAGS)))
|
ifeq (,$(filter -DDTLS_DEBUG,$(CFLAGS)))
|
||||||
ifeq ( , $(TINYDTLS_LOG))
|
|
||||||
CFLAGS += -DTINYDTLS_LOG_LVL=0
|
CFLAGS += -DTINYDTLS_LOG_LVL=0
|
||||||
else
|
|
||||||
CFLAGS += -DTINYDTLS_LOG_LVL=$(TINYDTLS_LOG)
|
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
CFLAGS += -DTINYDTLS_LOG_LVL=6
|
CFLAGS += -DTINYDTLS_LOG_LVL=6
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq (,$(filter tinydtls_aes,$(USEMODULE)))
|
ifneq (,$(filter tinydtls_aes,$(USEMODULE)))
|
||||||
DIRS += $(PKG_BUILDDIR)/aes
|
DIRS += $(PKG_BUILDDIR)/aes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user