1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/net/gcoap_fileserver/Makefile

52 lines
1.2 KiB
Makefile

include ../Makefile.net_common
USEMODULE += auto_init_gnrc_netif
USEMODULE += auto_init_gnrc_rpl
USEMODULE += gnrc_ipv6_router_default
USEMODULE += gnrc_icmpv6_echo
USEMODULE += gnrc_rpl
USEMODULE += shell
USEMODULE += shell_cmds_default
USEMODULE += gcoap_fileserver
USEMODULE += gcoap_fileserver_put
USEMODULE += nanocoap_vfs
USEMODULE += constfs
USEMODULE += vfs_default
USEMODULE += vfs_auto_format
USEMODULE += hashes
USEMODULE += shell_cmd_md5sum
# automated test only works on native
TEST_ON_CI_WHITELIST += native
# use small blocksize for test to increase chance for errors
CFLAGS += -DCONFIG_NANOCOAP_BLOCKSIZE_DEFAULT=COAP_BLOCKSIZE_16
CFLAGS += -DCONFIG_COAP_ACK_TIMEOUT_MS=100UL
CFLAGS += -DCONFIG_COAP_MAX_RETRANSMIT=10
ifeq (native, $(BOARD))
USEMODULE += socket_zep
USEMODULE += socket_zep_hello
USEMODULE += netdev
TERMFLAGS += -z 127.0.0.1:17754 # Murdock has no IPv6 support
# make sure each instance gets their own fs
CFLAGS += -DCONFIG_NATIVE_ISOLATE_FS=1
else
USEMODULE += netdev_default
endif
.PHONY: host-tools
# Build zep_dispatch
host-tools:
$(Q)env -u CC -u CFLAGS $(MAKE) -C $(RIOTTOOLS)
TERMDEPS += host-tools
include $(RIOTBASE)/Makefile.include