mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
examples/gcoap_dtls: match Makefile of examples/gcoap
This commit is contained in:
parent
2520b5c608
commit
e6242ae205
@ -12,12 +12,22 @@ RIOTBASE ?= $(CURDIR)/../..
|
|||||||
# Include packages that pull up and auto-init the link layer.
|
# Include packages that pull up and auto-init the link layer.
|
||||||
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
|
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
|
||||||
USEMODULE += netdev_default
|
USEMODULE += netdev_default
|
||||||
USEMODULE += auto_init_gnrc_netif
|
|
||||||
# Specify the mandatory networking modules
|
# use GNRC by default
|
||||||
USEMODULE += gnrc_ipv6_default
|
LWIP ?= 0
|
||||||
|
|
||||||
|
ifeq (0,$(LWIP))
|
||||||
|
USEMODULE += auto_init_gnrc_netif
|
||||||
|
# Specify the mandatory networking modules
|
||||||
|
USEMODULE += gnrc_ipv6_default
|
||||||
|
# Additional networking modules that can be dropped if not needed
|
||||||
|
USEMODULE += gnrc_icmpv6_echo
|
||||||
|
else
|
||||||
|
USEMODULE += lwip_ipv6
|
||||||
|
USEMODULE += lwip_netdev
|
||||||
|
endif
|
||||||
|
|
||||||
USEMODULE += gcoap
|
USEMODULE += gcoap
|
||||||
# Additional networking modules that can be dropped if not needed
|
|
||||||
USEMODULE += gnrc_icmpv6_echo
|
|
||||||
|
|
||||||
# Required by gcoap example
|
# Required by gcoap example
|
||||||
USEMODULE += od
|
USEMODULE += od
|
||||||
@ -39,16 +49,16 @@ QUIET ?= 1
|
|||||||
# Enables DTLS-secured CoAP messaging
|
# Enables DTLS-secured CoAP messaging
|
||||||
GCOAP_ENABLE_DTLS ?= 1
|
GCOAP_ENABLE_DTLS ?= 1
|
||||||
ifeq (1,$(GCOAP_ENABLE_DTLS))
|
ifeq (1,$(GCOAP_ENABLE_DTLS))
|
||||||
# Required by DTLS. Currently, only tinyDTLS is supported by sock_dtls.
|
# Required by DTLS. Currently, only tinyDTLS is supported by sock_dtls.
|
||||||
USEPKG += tinydtls
|
USEPKG += tinydtls
|
||||||
USEMODULE += sock_dtls
|
USEMODULE += sock_dtls
|
||||||
USEMODULE += tinydtls_sock_dtls
|
USEMODULE += tinydtls_sock_dtls
|
||||||
USEMODULE += gcoap_dtls
|
USEMODULE += gcoap_dtls
|
||||||
# tinydtls needs crypto secure PRNG
|
# tinydtls needs crypto secure PRNG
|
||||||
USEMODULE += prng_sha1prng
|
USEMODULE += prng_sha1prng
|
||||||
|
|
||||||
# Maximum number of DTLS sessions
|
# Maximum number of DTLS sessions
|
||||||
CFLAGS += -DDTLS_PEER_MAX=1
|
CFLAGS += -DDTLS_PEER_MAX=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Instead of simulating an Ethernet connection, we can also simulate
|
# Instead of simulating an Ethernet connection, we can also simulate
|
||||||
|
Loading…
Reference in New Issue
Block a user