mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
47 lines
1.7 KiB
Makefile
47 lines
1.7 KiB
Makefile
ifneq (,$(filter unicoap,$(USEMODULE)))
|
|
# Vectored data support
|
|
USEMODULE += iolist
|
|
endif
|
|
|
|
# This variable ensures the "No drivers" warning gets printed only once
|
|
_UNICOAP_MISSING_DRIVER ?= 0
|
|
|
|
ifeq (,$(filter %_udp %_dtls %_tcp %_tls %_websocket %_websocket_tls %_rfc7252_common_pdu %_rfc7252_pdu,$(filter unicoap_driver_%,$(USEMODULE))))
|
|
ifeq (0, $(_UNICOAP_MISSING_DRIVER))
|
|
$(warning No drivers imported, did you forget to import a driver?)
|
|
$(info +++ FIXIT: Makefile: USEMODULE += unicoap_driver_dtls for CoAP over DTLS driver)
|
|
$(info +++ FIXIT: Makefile: USEMODULE += unicoap_driver_udp for CoAP over UDP driver)
|
|
$(info +++ FIXIT: Makefile: USEMODULE += unicoap_driver_rfc7252_pdu for CoAP over UDP/DTLS PDU parser only)
|
|
# MARK: unicoap_driver_extension_point
|
|
endif
|
|
_UNICOAP_MISSING_DRIVER = 1
|
|
endif
|
|
|
|
# Alias for unicoap_driver_rfc7252_common_pdu
|
|
ifneq (,$(filter unicoap_driver_rfc7252_pdu,$(USEMODULE)))
|
|
USEMODULE += unicoap_driver_rfc7252_common_pdu
|
|
endif
|
|
|
|
# Umbrella pseudomodule enclosing support for PDU/framing and messaging
|
|
ifneq (,$(filter unicoap_driver_rfc7252_common,$(USEMODULE)))
|
|
# RFC 7252 messaging layer and RFC 7252 PDU parser
|
|
USEMODULE += unicoap_driver_rfc7252_common_pdu
|
|
USEMODULE += unicoap_driver_rfc7252_common_messaging
|
|
endif
|
|
|
|
ifneq (,$(filter unicoap_driver_udp,$(USEMODULE)))
|
|
# CoAP over UDP uses RFC 7252 messaging layer
|
|
USEMODULE += unicoap_driver_rfc7252_common
|
|
|
|
# FIXME: upcoming PR: CoAP over UDP driver implementation
|
|
endif
|
|
|
|
ifneq (,$(filter unicoap_driver_dtls,$(USEMODULE)))
|
|
# CoAP over DTLS uses RFC 7252 messaging layer
|
|
USEMODULE += unicoap_driver_rfc7252_common
|
|
|
|
# FIXME: upcoming PR: CoAP over DTLS driver implementation
|
|
endif
|
|
|
|
# MARK: unicoap_driver_extension_point
|