Skip to content
Snippets Groups Projects
Commit 160da3fa authored by Marshall Culpepper's avatar Marshall Culpepper
Browse files

cpu/cortexm_common: enable custom newlib syscalls w/ newlib_syscalls_X

parent 851695cd
No related branches found
No related tags found
No related merge requests found
...@@ -270,6 +270,11 @@ ifneq (,$(filter gnrc_pktdump,$(USEMODULE))) ...@@ -270,6 +270,11 @@ ifneq (,$(filter gnrc_pktdump,$(USEMODULE)))
endif endif
ifneq (,$(filter newlib,$(USEMODULE))) ifneq (,$(filter newlib,$(USEMODULE)))
# allow custom newlib syscalls implementations by adding
# newlib_syscalls_XXX to USEMODULE
ifeq (,$(filter newlib_syscalls_%,$(USEMODULE)))
USEMODULE += newlib_syscalls_default
endif
USEMODULE += uart_stdio USEMODULE += uart_stdio
endif endif
......
...@@ -61,7 +61,7 @@ ifneq (,$(filter log_%,$(USEMODULE))) ...@@ -61,7 +61,7 @@ ifneq (,$(filter log_%,$(USEMODULE)))
include $(RIOTBASE)/sys/log/Makefile.include include $(RIOTBASE)/sys/log/Makefile.include
endif endif
ifneq (,$(filter newlib,$(USEMODULE))) ifneq (,$(filter newlib_syscalls_default,$(USEMODULE)))
include $(RIOTBASE)/sys/newlib/Makefile.include include $(RIOTBASE)/sys/newlib/Makefile.include
endif endif
......
MODULE = newlib_syscalls_default
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base
UNDEF := $(BINDIR)newlib/syscalls.o $(UNDEF) UNDEF := $(BINDIR)newlib_syscalls_default/syscalls.o $(UNDEF)
# Search for Newlib include directories # Search for Newlib include directories
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment