1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/cortexm_common: enable custom newlib syscalls w/ newlib_syscalls_X

This commit is contained in:
Marshall Culpepper 2015-11-23 10:43:42 -06:00
parent 851695cda8
commit 160da3fab1
4 changed files with 9 additions and 2 deletions

View File

@ -270,6 +270,11 @@ ifneq (,$(filter gnrc_pktdump,$(USEMODULE)))
endif
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
endif

View File

@ -61,7 +61,7 @@ ifneq (,$(filter log_%,$(USEMODULE)))
include $(RIOTBASE)/sys/log/Makefile.include
endif
ifneq (,$(filter newlib,$(USEMODULE)))
ifneq (,$(filter newlib_syscalls_default,$(USEMODULE)))
include $(RIOTBASE)/sys/newlib/Makefile.include
endif

View File

@ -1 +1,3 @@
MODULE = newlib_syscalls_default
include $(RIOTBASE)/Makefile.base

View File

@ -1,4 +1,4 @@
UNDEF := $(BINDIR)newlib/syscalls.o $(UNDEF)
UNDEF := $(BINDIR)newlib_syscalls_default/syscalls.o $(UNDEF)
# Search for Newlib include directories