er-coap-dtls: use tinydtls app if "WITH_DTLS_COAP" is set
This commit is contained in:
parent
59dc4413bb
commit
fcc4f6d39f
1 changed files with 9 additions and 0 deletions
|
@ -7,6 +7,15 @@ CFLAGS += -DREST=coap_rest_implementation
|
|||
|
||||
ifeq ($(WITH_DTLS_COAP),1)
|
||||
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
|
||||
er-coap_src += er-coap-udp.c
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue