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:
commit
75f487d9ec
@ -1,3 +1,5 @@
|
||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||
USEMODULE += saul_gpio
|
||||
endif
|
||||
|
||||
USEMODULE += newlib_syscalls_mips_uhi
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||
USEMODULE += saul_gpio
|
||||
endif
|
||||
|
||||
USEMODULE += newlib_syscalls_mips_uhi
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user