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:
commit
8cf5ffdabc
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -1 +1,3 @@
|
||||
MODULE = newlib_syscalls_default
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
|
@ -1,4 +1,4 @@
|
||||
UNDEF := $(BINDIR)newlib/syscalls.o $(UNDEF)
|
||||
UNDEF := $(BINDIR)newlib_syscalls_default/syscalls.o $(UNDEF)
|
||||
|
||||
# Search for Newlib include directories
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user