cpu/riscv_common: move C lib selection to common place

This commit is contained in:
Benjamin Valentin 2021-08-25 10:53:00 +02:00
parent a9c83017ee
commit a75ae3c938
3 changed files with 9 additions and 15 deletions

View File

@ -1,10 +1,3 @@
FEATURES_REQUIRED_ANY += newlib|picolibc
ifneq (,$(filter newlib,$(USEMODULE)))
DEFAULT_MODULE += newlib_nano
USEMODULE += newlib_syscalls_default
endif
USEMODULE += periph
USEMODULE += sifive_drivers_fe310

View File

@ -1,12 +1,6 @@
FEATURES_REQUIRED += periph_clic
FEATURES_REQUIRED_ANY += newlib|picolibc
ifneq (,$(filter newlib,$(USEMODULE)))
USEMODULE += newlib_nano
USEMODULE += newlib_syscalls_default
endif
USEMODULE += periph
USEMODULE += riscv_common
FEATURES_REQUIRED += periph_clic
ifneq (,$(filter periph_pm,$(USEMODULE)))
FEATURES_REQUIRED += periph_wdt

View File

@ -1,3 +1,10 @@
# Select a C library
FEATURES_REQUIRED_ANY += newlib|picolibc
ifneq (,$(filter newlib,$(USEMODULE)))
DEFAULT_MODULE += newlib_nano
USEMODULE += newlib_syscalls_default
endif
# Tell the build system that the CPU depends on the risc-v common files:
USEMODULE += riscv_common