mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
47b25c3595
On microbit-v2, getting .well-known/core would otherwise result in a stack overflow. Consequently, some boards were removed from the list of supported boards as the currently required RAM exceeds their capacity.
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# name of your application
|
|
APPLICATION = rust_gcoap
|
|
|
|
# If no BOARD is found in the environment, use this default:
|
|
BOARD ?= native
|
|
|
|
# This has to be the absolute path to the RIOT base directory:
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
# Basic networking, and gcoap
|
|
USEMODULE += gcoap
|
|
USEMODULE += netdev_default
|
|
USEMODULE += auto_init_gnrc_netif
|
|
USEMODULE += gnrc_ipv6_default
|
|
USEMODULE += gnrc_icmpv6_echo
|
|
|
|
USEMODULE += ztimer
|
|
USEMODULE += ztimer_usec
|
|
USEMODULE += ztimer_msec
|
|
USEMODULE += ztimer_sec
|
|
|
|
USEMODULE += vfs
|
|
USEMODULE += constfs
|
|
|
|
# Comment this out to disable code in RIOT that does safety checking
|
|
# which is not needed in a production environment but helps in the
|
|
# development process:
|
|
DEVELHELP ?= 1
|
|
|
|
# Change this to 0 show compiler invocation lines by default:
|
|
QUIET ?= 1
|
|
|
|
# Add 3k extra stack: The Rust examples take more of it than gcoap expects,
|
|
# presumably because the example use the standard library's sting formatting
|
|
# instead of one of the more optimized formatters.
|
|
CFLAGS += -DGCOAP_STACK_SIZE='(THREAD_STACKSIZE_DEFAULT + DEBUG_EXTRA_STACKSIZE \
|
|
+ sizeof(coap_pkt_t) + 3072)'
|
|
|
|
# The name of crate (as per Cargo.toml package name, but with '-' replaced with '_')
|
|
APPLICATION_RUST_MODULE = rust_gcoap
|
|
BASELIBS += $(APPLICATION_RUST_MODULE).module
|
|
|
|
FEATURES_REQUIRED += rust_target
|
|
|
|
# Currently unknown, something related to the LED_PORT definition that doesn't
|
|
# pass C2Rust's transpilation
|
|
BOARD_BLACKLIST := ek-lm4f120xl
|
|
|
|
include $(RIOTBASE)/Makefile.include
|