mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
Merge pull request #7071 from kYc0o/gcoap_add_dependencies
gcoap: move dependencies to actual module
This commit is contained in:
commit
ea27e96e7e
@ -598,6 +598,11 @@ ifneq (,$(filter l2filter_%,$(USEMODULE)))
|
||||
USEMODULE += l2filter
|
||||
endif
|
||||
|
||||
ifneq (,$(filter gcoap,$(USEMODULE)))
|
||||
USEPKG += nanocoap
|
||||
USEMODULE += gnrc_sock_udp
|
||||
endif
|
||||
|
||||
# include package dependencies
|
||||
-include $(USEPKG:%=$(RIOTPKG)/%/Makefile.dep)
|
||||
|
||||
|
||||
@ -26,17 +26,12 @@ BOARD_BLACKLIST := nrf52dk
|
||||
#GCOAP_TOKENLEN = 2
|
||||
#CFLAGS += -DGCOAP_TOKENLEN=$(GCOAP_TOKENLEN)
|
||||
|
||||
USEPKG += nanocoap
|
||||
# Required by nanocoap, but only due to issue #5959.
|
||||
USEMODULE += posix
|
||||
|
||||
# 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
|
||||
USEMODULE += gnrc_ipv6_default
|
||||
USEMODULE += gnrc_sock_udp
|
||||
USEMODULE += gcoap
|
||||
# Additional networking modules that can be dropped if not needed
|
||||
USEMODULE += gnrc_icmpv6_echo
|
||||
|
||||
@ -42,16 +42,11 @@ INCLUDES += -I$(CURDIR)
|
||||
CFLAGS += -DSLIP_UART=$(SLIP_UART)
|
||||
CFLAGS += -DSLIP_BAUDRATE=$(SLIP_BAUDRATE)
|
||||
|
||||
USEPKG += nanocoap
|
||||
# Required by nanocoap, but only due to issue #5959.
|
||||
USEMODULE += posix
|
||||
|
||||
# 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
|
||||
USEMODULE += gnrc_sock_udp
|
||||
USEMODULE += gcoap
|
||||
# Add a routing protocol
|
||||
USEMODULE += gnrc_rpl
|
||||
|
||||
@ -1,8 +1,5 @@
|
||||
USEPKG += nanocoap
|
||||
|
||||
# Specify the mandatory networking modules
|
||||
USEMODULE += gcoap
|
||||
USEMODULE += gnrc_sock_udp
|
||||
USEMODULE += gnrc_ipv6
|
||||
|
||||
USEMODULE += random
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user