cpu/riscv_common: move C lib selection to common place
This commit is contained in:
parent
a9c83017ee
commit
a75ae3c938
@ -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 += periph
|
||||||
USEMODULE += sifive_drivers_fe310
|
USEMODULE += sifive_drivers_fe310
|
||||||
|
|
||||||
|
|||||||
@ -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 += periph
|
||||||
USEMODULE += riscv_common
|
|
||||||
|
FEATURES_REQUIRED += periph_clic
|
||||||
|
|
||||||
ifneq (,$(filter periph_pm,$(USEMODULE)))
|
ifneq (,$(filter periph_pm,$(USEMODULE)))
|
||||||
FEATURES_REQUIRED += periph_wdt
|
FEATURES_REQUIRED += periph_wdt
|
||||||
|
|||||||
@ -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:
|
# Tell the build system that the CPU depends on the risc-v common files:
|
||||||
USEMODULE += riscv_common
|
USEMODULE += riscv_common
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user