mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
newlib: Split newlib into one generic part and one default syscalls part
This commit is contained in:
parent
0767dae3bd
commit
b81b66672e
@ -1,5 +1,3 @@
|
||||
UNDEF := $(BINDIR)/newlib_syscalls_default/syscalls.o $(UNDEF)
|
||||
|
||||
ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
||||
# Test if nano.specs is available
|
||||
ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
|
||||
@ -48,7 +46,7 @@ NEWLIB_INCLUDE_DIR ?= $(firstword $(wildcard $(NEWLIB_INCLUDE_PATTERNS)))
|
||||
# If nothing was found we will try to fall back to searching for a cross-gcc in
|
||||
# the current PATH and use a relative path for the includes
|
||||
ifeq (,$(NEWLIB_INCLUDE_DIR))
|
||||
NEWLIB_INCLUDE_DIR := $(abspath $(wildcard $(dir $(shell command -v $(PREFIX)gcc;))../$(TARGET_ARCH)/include))
|
||||
NEWLIB_INCLUDE_DIR := $(abspath $(wildcard $(dir $(shell command -v $(PREFIX)gcc 2>/dev/null))/../$(TARGET_ARCH)/include))
|
||||
endif
|
||||
|
||||
ifeq ($(TOOLCHAIN),llvm)
|
@ -65,8 +65,12 @@ ifneq (,$(filter log_%,$(USEMODULE)))
|
||||
include $(RIOTBASE)/sys/log/Makefile.include
|
||||
endif
|
||||
|
||||
ifneq (,$(filter newlib,$(USEMODULE)))
|
||||
include $(RIOTMAKE)/libc/newlib.mk
|
||||
endif
|
||||
|
||||
ifneq (,$(filter newlib_syscalls_default,$(USEMODULE)))
|
||||
include $(RIOTBASE)/sys/newlib/Makefile.include
|
||||
include $(RIOTBASE)/sys/newlib_syscalls_default/Makefile.include
|
||||
endif
|
||||
|
||||
ifneq (,$(filter arduino,$(USEMODULE)))
|
||||
|
@ -1,3 +1 @@
|
||||
MODULE = newlib_syscalls_default
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
1
sys/newlib_syscalls_default/Makefile.include
Normal file
1
sys/newlib_syscalls_default/Makefile.include
Normal file
@ -0,0 +1 @@
|
||||
UNDEF += $(BINDIR)/newlib_syscalls_default/syscalls.o
|
Loading…
Reference in New Issue
Block a user