cpu/mips*: move dependencies to Makefile.dep
This commit also removes not needed use of export
This commit is contained in:
parent
66d903c209
commit
e3b3ea0403
14
cpu/mips32r2_common/Makefile.dep
Normal file
14
cpu/mips32r2_common/Makefile.dep
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
USEMODULE += mips32r2_common
|
||||||
|
USEMODULE += mips32r2_common_periph
|
||||||
|
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)
|
||||||
|
USEMODULE += newlib_syscalls_default
|
||||||
|
endif
|
||||||
@ -1,18 +1,7 @@
|
|||||||
INCLUDES += -I$(RIOTCPU)/mips32r2_common/include
|
INCLUDES += -I$(RIOTCPU)/mips32r2_common/include
|
||||||
|
|
||||||
export USEMODULE += mips32r2_common
|
|
||||||
export USEMODULE += mips32r2_common_periph
|
|
||||||
export USEMODULE += newlib
|
|
||||||
|
|
||||||
# mips32 needs periph_timer for its gettimeofday() implementation
|
|
||||||
export USEMODULE += periph_timer
|
|
||||||
|
|
||||||
ifeq ($(USE_UHI_SYSCALLS),1)
|
ifeq ($(USE_UHI_SYSCALLS),1)
|
||||||
#Use UHI to handle syscalls
|
#Use UHI to handle syscalls
|
||||||
LINKFLAGS += -luhi
|
LINKFLAGS += -luhi
|
||||||
export USEMODULE += newlib_syscalls_mips_uhi
|
|
||||||
CFLAGS += -DHAVE_HEAP_STATS
|
CFLAGS += -DHAVE_HEAP_STATS
|
||||||
else
|
|
||||||
#Use RIOT to handle syscalls (default)
|
|
||||||
export USEMODULE += newlib_syscalls_default
|
|
||||||
endif
|
endif
|
||||||
|
|||||||
4
cpu/mips_pic32_common/Makefile.dep
Normal file
4
cpu/mips_pic32_common/Makefile.dep
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
USEMODULE += mips_pic32_common
|
||||||
|
USEMODULE += mips_pic32_common_periph
|
||||||
|
|
||||||
|
include $(RIOTCPU)/mips32r2_common/Makefile.dep
|
||||||
@ -1,6 +1,3 @@
|
|||||||
include $(RIOTCPU)/mips32r2_common/Makefile.include
|
include $(RIOTCPU)/mips32r2_common/Makefile.include
|
||||||
|
|
||||||
INCLUDES += -I$(RIOTCPU)/mips_pic32_common/include
|
INCLUDES += -I$(RIOTCPU)/mips_pic32_common/include
|
||||||
|
|
||||||
USEMODULE += mips_pic32_common
|
|
||||||
USEMODULE += mips_pic32_common_periph
|
|
||||||
|
|||||||
1
cpu/mips_pic32mx/Makefile.dep
Normal file
1
cpu/mips_pic32mx/Makefile.dep
Normal file
@ -0,0 +1 @@
|
|||||||
|
include $(RIOTCPU)/mips_pic32_common/Makefile.dep
|
||||||
1
cpu/mips_pic32mz/Makefile.dep
Normal file
1
cpu/mips_pic32mz/Makefile.dep
Normal file
@ -0,0 +1 @@
|
|||||||
|
include $(RIOTCPU)/mips_pic32_common/Makefile.dep
|
||||||
Loading…
x
Reference in New Issue
Block a user