1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/cortexm_common/Makefile.dep
Benjamin Valentin 6d42c9fcfe cpu: make newlib_nano a DEFAULT_MODULE
This allows to disable nanospecs with

    DISABLE_MODULE += newlib_nano

if a full-features version of newlib is desired.
2021-05-04 12:12:36 +02:00

29 lines
783 B
Makefile

# Tell the build system that the CPU depends on the Cortex-M common files:
USEMODULE += cortexm_common
# include common periph code
USEMODULE += cortexm_common_periph
FEATURES_REQUIRED_ANY += newlib|picolibc
ifneq (,$(filter newlib,$(USEMODULE)))
# use the nano-specs of Newlib when available
DEFAULT_MODULE += newlib_nano
endif
# Export the peripheral drivers to be linked into the final binary:
USEMODULE += periph
# Use Hardware FPU by default if present
FEATURES_OPTIONAL += cortexm_fpu
ifneq (,$(filter cortexm_fpu,$(FEATURES_USED)))
DEFAULT_MODULE += cortexm_fpu
endif
# Enable the MPU stack guard if develhelp is enabled
ifeq (1, $(DEVELHELP))
FEATURES_OPTIONAL += cortexm_mpu
endif
# Make calls to malloc and friends thread-safe
USEMODULE += malloc_thread_safe