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

examples/suit_update: allow the use of large MTUs

Transfer time is reduced significantly if we can use fewer frames
with large MTUs.
This commit is contained in:
Benjamin Valentin 2021-04-10 01:16:26 +02:00
parent 44fa20dcc0
commit 737578a7bf

View File

@ -98,11 +98,17 @@ TEST_ON_CI_BLACKLIST = all
include $(RIOTBASE)/Makefile.include
# allow to use large blocks to utilize large MTUs (802.15.4g, Ethernet, WiFi)
LARGE_BLOCKS ?= 0
ifeq (1, $(LARGE_BLOCKS))
CFLAGS += -DCONFIG_SUIT_COAP_BLOCKSIZE=COAP_BLOCKSIZE_1024
else
# lower pktbuf size to something sufficient for this application
# Set GNRC_PKTBUF_SIZE via CFLAGS if not being set via Kconfig.
ifndef CONFIG_GNRC_PKTBUF_SIZE
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=2000
endif
endif
.PHONY: host-tools