2016-10-27 15:58:04 +02:00
|
|
|
# name of your application
|
|
|
|
APPLICATION = dtls_echo
|
|
|
|
|
|
|
|
# If no BOARD is found in the environment, use this default:
|
|
|
|
BOARD ?= native
|
|
|
|
|
|
|
|
# This has to be the absolute path to the RIOT base directory:
|
|
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
|
2016-11-03 16:53:24 +01:00
|
|
|
# TinyDTLS only has support for 32-bit architectures ATM
|
|
|
|
BOARD_BLACKLIST := arduino-duemilanove arduino-mega2560 arduino-uno chronos \
|
|
|
|
msb-430 msb-430h telosb waspmote-pro wsn430-v1_3b wsn430-v1_4 \
|
2018-02-27 14:08:10 +01:00
|
|
|
z1 jiminy-mega256rfr2
|
2016-10-27 15:58:04 +02:00
|
|
|
|
2017-10-12 19:09:53 +02:00
|
|
|
BOARD_INSUFFICIENT_MEMORY := airfy-beacon b-l072z-lrwan1 bluepill calliope-mini \
|
2017-09-20 10:59:37 +02:00
|
|
|
cc2650-launchpad cc2650stk maple-mini \
|
2017-03-13 18:27:50 +01:00
|
|
|
microbit nrf51dongle nrf6310 nucleo32-f031 \
|
2017-02-16 15:25:48 +01:00
|
|
|
nucleo32-f042 nucleo32-f303 nucleo32-l031 nucleo-f030 \
|
|
|
|
nucleo-f070 nucleo-f072 nucleo-f103 nucleo-f302 nucleo-f334 \
|
2017-11-09 13:59:18 +01:00
|
|
|
nucleo-l053 nucleo-l073 opencm904 \
|
2017-08-24 17:10:27 +02:00
|
|
|
spark-core stm32f0discovery yunjia-nrf51822
|
2016-10-27 15:58:04 +02:00
|
|
|
|
|
|
|
# Include packages that pull up and auto-init the link layer.
|
|
|
|
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
|
|
|
|
USEMODULE += gnrc_netdev_default
|
|
|
|
USEMODULE += auto_init_gnrc_netif
|
|
|
|
# Specify the mandatory networking modules for IPv6 and sUDP
|
|
|
|
USEMODULE += gnrc_ipv6_router_default
|
|
|
|
USEMODULE += gnrc_udp
|
|
|
|
# Add a routing protocol
|
|
|
|
USEMODULE += gnrc_rpl
|
|
|
|
# This application dumps received packets to STDIO using the pktdump module
|
|
|
|
USEMODULE += gnrc_pktdump
|
|
|
|
# Additional networking modules that can be dropped if not needed
|
|
|
|
USEMODULE += gnrc_icmpv6_echo
|
|
|
|
# Add also the shell, some shell commands
|
|
|
|
USEMODULE += shell
|
|
|
|
USEMODULE += shell_commands
|
|
|
|
USEMODULE += ps
|
|
|
|
|
|
|
|
#TinyDTLs (crypto.c) made use of pthread
|
|
|
|
ifneq ($(BOARD),native)
|
2017-09-22 14:52:38 +02:00
|
|
|
USEMODULE += pthread
|
2016-10-27 15:58:04 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Comment this out to disable code in RIOT that does safety checking
|
|
|
|
# which is not needed in a production environment but helps in the
|
|
|
|
# development process:
|
2017-11-19 14:12:25 +01:00
|
|
|
DEVELHELP ?= 1
|
2016-10-27 15:58:04 +02:00
|
|
|
|
|
|
|
# NOTE: Add the package for TinyDTLS
|
|
|
|
USEPKG += tinydtls
|
|
|
|
|
|
|
|
# NOTE: Those are taken from TinyDTLS. As the original Makefiles are
|
|
|
|
# overwitten is a good idea to preserve them here.
|
|
|
|
CFLAGS += -DDTLSv12 -DWITH_SHA256
|
|
|
|
|
|
|
|
# NOTE: This adds support for TLS_PSK_WITH_AES_128_CCM_8
|
|
|
|
CFLAGS += -DDTLS_PSK
|
|
|
|
|
|
|
|
# NOTE: This adds support for TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8
|
|
|
|
CFLAGS += -DDTLS_ECC
|
|
|
|
|
|
|
|
# NOTE: If enabled TinyDTLS' log are disabled (if memory is a issue).
|
|
|
|
# WARNING: Sometimes the log leads to Stack pointer corrupted.
|
|
|
|
# The reason is not identified yet.
|
|
|
|
# If said issue appears, enable this line.
|
|
|
|
#CFLAGS += -DNDEBUG
|
|
|
|
|
|
|
|
# NOTE: The configuration for socket or non-socket communication in TinyDTLS.
|
|
|
|
CFLAGS += -DWITH_RIOT_GNRC
|
|
|
|
|
|
|
|
# Change this to 0 show compiler invocation lines by default:
|
|
|
|
QUIET ?= 1
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|