2016-10-27 15:58:04 +02:00
|
|
|
PKG_NAME=tinydtls
|
2019-03-21 14:43:47 +01:00
|
|
|
PKG_URL=https://github.com/eclipse/tinydtls.git
|
2023-12-06 19:01:30 +01:00
|
|
|
PKG_VERSION=95d02ee28ea745541d6c55dba49f3b3ab8b71a43
|
2017-01-08 21:55:47 +01:00
|
|
|
PKG_LICENSE=EPL-1.0,EDL-1.0
|
2016-10-27 15:58:04 +02:00
|
|
|
|
2019-10-02 12:47:02 +02:00
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|
|
|
|
|
2023-03-04 22:48:07 +01:00
|
|
|
# tinyDTLS custom logging functions pass non-literals to printf(), so disable them
|
|
|
|
ifneq (,$(filter arch_avr8,$(FEATURES_USED)))
|
|
|
|
CFLAGS += -DNDEBUG
|
|
|
|
endif
|
2018-01-16 10:31:56 +01:00
|
|
|
|
2019-06-27 15:18:37 +02:00
|
|
|
all:
|
2021-03-12 15:50:14 +01:00
|
|
|
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(PKG_SOURCE_DIR)/Makefile.riot
|
|
|
|
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/aes -f $(PKG_SOURCE_DIR)/aes/Makefile.riot
|
|
|
|
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/ecc -f $(PKG_SOURCE_DIR)/ecc/Makefile.riot
|
2016-10-27 15:58:04 +02:00
|
|
|
|
2018-08-03 17:56:34 +02:00
|
|
|
ifeq (llvm,$(TOOLCHAIN))
|
|
|
|
CFLAGS += -Wno-format-nonliteral
|
|
|
|
endif
|
2023-03-02 09:15:51 +01:00
|
|
|
|
2023-03-02 09:16:09 +01:00
|
|
|
# TinyDTLS emits several messages during connection establishment at the info
|
|
|
|
# level; this is way more verbose than common in RIOT.
|
|
|
|
TINYDTLS_LOG_LEVEL ?= LOG_WARNING
|
|
|
|
CFLAGS += -DLOG_LEVEL=$(TINYDTLS_LOG_LEVEL)
|