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

Merge pull request #4332 from marshall/customSyscalls

cpu/cortexm_common: enable custom newlib syscalls w/ newlib_syscalls_X
This commit is contained in:
Kaspar Schleiser 2016-02-08 21:46:16 +01:00
commit 8cf5ffdabc
4 changed files with 9 additions and 2 deletions

View File

@ -283,6 +283,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