er-coap-dtls: use tinydtls app if "WITH_DTLS_COAP" is set

This commit is contained in:
Gaëtan Harter 2016-12-14 11:51:49 +01:00
parent 59dc4413bb
commit fcc4f6d39f

View file

@ -7,6 +7,15 @@ CFLAGS += -DREST=coap_rest_implementation
ifeq ($(WITH_DTLS_COAP),1) ifeq ($(WITH_DTLS_COAP),1)
er-coap_src += er-coap-dtls.c er-coap_src += er-coap-dtls.c
# Load tinydtls
APPS += tinydtls
$(CONTIKI)/apps/tinydtls/Makefile.tinydtls:
@echo " You should run 'git submodule update --init' to clone 'app/tinydtls'"
@exit 1
include $(CONTIKI)/apps/tinydtls/Makefile.tinydtls
PROJECTDIRS+=$(CONTIKI)/apps/tinydtls/aes $(CONTIKI)/apps/tinydtls/sha2 $(CONTIKI)/apps/tinydtls/ecc
else else
er-coap_src += er-coap-udp.c er-coap_src += er-coap-udp.c
endif endif