mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-30 08:51:19 +01:00
This makes use of the new bug modeling to declare all platforms that can use newlib and have no reentrancy hooks as affected by the non-thread-safe stdio bug. (Which is every platform but ESP* and AVR, the former because the reentrancy hooks are provided, the latter because we do not and never will support newlib on them.) Building on that, the mpaland-printf package is used when newlib is used and the bug is present. This way we can rely on the stdio being thread-safe on every platform and not causing random crashes at run time. Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
19 lines
527 B
Makefile
19 lines
527 B
Makefile
ifeq ($(findstring rv32,$(CPU_CORE)),rv32)
|
|
CPU_ARCH := rv32
|
|
endif
|
|
|
|
FEATURES_PROVIDED += arch_32bit
|
|
FEATURES_PROVIDED += arch_riscv
|
|
FEATURES_PROVIDED += bug_newlib_broken_stdio
|
|
FEATURES_PROVIDED += cpp
|
|
FEATURES_PROVIDED += libstdcpp
|
|
FEATURES_PROVIDED += newlib
|
|
FEATURES_PROVIDED += periph_coretimer
|
|
FEATURES_PROVIDED += periph_flashpage_aux
|
|
FEATURES_PROVIDED += puf_sram
|
|
FEATURES_PROVIDED += rust_target
|
|
FEATURES_PROVIDED += ssp
|
|
|
|
# RISC-V toolchain on CI does not work properly with picolibc yet
|
|
FEATURES_PROVIDED += picolibc
|