1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-29 16:31:18 +01:00

Merge pull request #14344 from fjmolinas/pr_mips_uhi_dep

cpu/mips32r2_common: include newlib_syscalls_mips_uhi in Makefile.dep
This commit is contained in:
Leandro Lanzieri 2020-06-24 16:30:04 +02:00 committed by GitHub
commit 75f487d9ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 12 deletions

View File

@ -1,3 +1,5 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
endif
USEMODULE += newlib_syscalls_mips_uhi

View File

@ -1,5 +1,4 @@
APPDEPS += $(RIOTCPU)/$(CPU)/$(CPU_MODEL)/$(CPU_MODEL).S
USE_UHI_SYSCALLS = 1
# use pic32prog by default to program this board
PROGRAMMER ?= pic32prog

View File

@ -1,3 +1,5 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
endif
USEMODULE += newlib_syscalls_mips_uhi

View File

@ -1,5 +1,4 @@
APPDEPS += $(RIOTCPU)/$(CPU)/$(CPU_MODEL)/$(CPU_MODEL).S
USE_UHI_SYSCALLS = 1
PORT_LINUX ?= /dev/ttyUSB0
include $(RIOTMAKE)/tools/serial.inc.mk

View File

@ -5,10 +5,7 @@ USEMODULE += newlib
# mips32 needs periph_timer for its gettimeofday() implementation
FEATURES_REQUIRED += periph_timer
ifeq ($(USE_UHI_SYSCALLS),1)
#Use UHI to handle syscalls
USEMODULE += newlib_syscalls_mips_uhi
else
#Use RIOT to handle syscalls (default)
#Use RIOT to handle syscalls (default)
ifeq (,$(filter newlib_syscalls_mips_uhi,$(USEMODULE)))
USEMODULE += newlib_syscalls_default
endif

View File

@ -1,7 +1,5 @@
INCLUDES += -I$(RIOTCPU)/mips32r2_common/include
ifeq ($(USE_UHI_SYSCALLS),1)
#Use UHI to handle syscalls
LINKFLAGS += -luhi
CFLAGS += -DHAVE_HEAP_STATS
endif
# NOTE: This can be turned into normal conditional syntax once #9913 is fixed
CFLAGS += $(if $(filter newlib_syscalls_mips_uhi,$(USEMODULE)),-DHAVE_HEAP_STATS,)
LINKFLAGS += $(if $(filter newlib_syscalls_mips_uhi,$(USEMODULE)),-luhi,)