cpu/mips32r2_common: Use common 'Makefile.include' for cpus
Use mips32r2_common 'Makefile.include' to simplify depending cpus: 'mips_pic32mx', 'mips_pic32mz' and 'mips32r2_generic'.
This commit is contained in:
parent
062fbd85ce
commit
d864e79c4a
@ -1,22 +1,13 @@
|
|||||||
export MEMORY_BASE=0x80000000
|
|
||||||
export MEMORY_SIZE=1M
|
|
||||||
export APP_START=0x80000000
|
|
||||||
|
|
||||||
include $(RIOTMAKE)/arch/mips.inc.mk
|
|
||||||
|
|
||||||
export USEMODULE += periph
|
export USEMODULE += periph
|
||||||
export USEMODULE += periph_common
|
export USEMODULE += periph_common
|
||||||
export USEMODULE += newlib
|
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
|
||||||
export LINKFLAGS += -luhi -Tuhi32.ld
|
export LINKFLAGS += -luhi
|
||||||
export USEMODULE += newlib_syscalls_mips_uhi
|
export USEMODULE += newlib_syscalls_mips_uhi
|
||||||
else
|
else
|
||||||
#Use RIOT to handle syscalls (default)
|
#Use RIOT to handle syscalls (default)
|
||||||
export LINKFLAGS += -Tuhi32.ld
|
|
||||||
export USEMODULE += newlib_syscalls_default
|
export USEMODULE += newlib_syscalls_default
|
||||||
endif
|
endif
|
||||||
|
|||||||
@ -3,19 +3,9 @@ export MEMORY_SIZE=1M
|
|||||||
export APP_START=0x80000000
|
export APP_START=0x80000000
|
||||||
|
|
||||||
include $(RIOTMAKE)/arch/mips.inc.mk
|
include $(RIOTMAKE)/arch/mips.inc.mk
|
||||||
|
include $(RIOTCPU)/mips32r2_common/Makefile.include
|
||||||
|
|
||||||
export USEMODULE += periph
|
# mips32 needs periph_timer for its gettimeofday() implementation
|
||||||
export USEMODULE += periph_common
|
|
||||||
export USEMODULE += newlib
|
|
||||||
|
|
||||||
export USEMODULE += periph_timer
|
export USEMODULE += periph_timer
|
||||||
|
|
||||||
ifeq ($(USE_UHI_SYSCALLS),1)
|
export LINKFLAGS += -Tuhi32.ld
|
||||||
#Use UHI to handle syscalls
|
|
||||||
export LINKFLAGS += -luhi -Tuhi32.ld
|
|
||||||
export USEMODULE += newlib_syscalls_mips_uhi
|
|
||||||
else
|
|
||||||
#Use RIOT to handle syscalls (default)
|
|
||||||
export LINKFLAGS += -Tuhi32.ld
|
|
||||||
export USEMODULE += newlib_syscalls_default
|
|
||||||
endif
|
|
||||||
|
|||||||
@ -2,23 +2,12 @@ export ROMABLE = 1
|
|||||||
|
|
||||||
include $(RIOTMAKE)/arch/mips.inc.mk
|
include $(RIOTMAKE)/arch/mips.inc.mk
|
||||||
include $(RIOTCPU)/mips_pic32_common/Makefile.include
|
include $(RIOTCPU)/mips_pic32_common/Makefile.include
|
||||||
|
include $(RIOTCPU)/mips32r2_common/Makefile.include
|
||||||
|
|
||||||
# define build specific options
|
# define build specific options
|
||||||
export CFLAGS += -march=m4k -DSKIP_COPY_TO_RAM
|
export CFLAGS += -march=m4k -DSKIP_COPY_TO_RAM
|
||||||
|
|
||||||
export USEMODULE += mips_pic32_common
|
export USEMODULE += mips_pic32_common
|
||||||
export USEMODULE += periph
|
|
||||||
export USEMODULE += periph_common
|
|
||||||
export USEMODULE += newlib
|
|
||||||
|
|
||||||
ifeq ($(USE_UHI_SYSCALLS),1)
|
|
||||||
#Use UHI to handle syscalls
|
|
||||||
export LINKFLAGS += -luhi
|
|
||||||
export USEMODULE += newlib_syscalls_mips_uhi
|
|
||||||
else
|
|
||||||
#Use RIOT to handle syscalls (default)
|
|
||||||
export USEMODULE += newlib_syscalls_default
|
|
||||||
endif
|
|
||||||
|
|
||||||
export LINKFLAGS += -Wl,--defsym,__use_excpt_boot=0 $(CFLAGS)
|
export LINKFLAGS += -Wl,--defsym,__use_excpt_boot=0 $(CFLAGS)
|
||||||
export LINKFLAGS += -Tpic32mx512_12_128_uhi.ld
|
export LINKFLAGS += -Tpic32mx512_12_128_uhi.ld
|
||||||
|
|||||||
@ -2,25 +2,13 @@ export ROMABLE = 1
|
|||||||
|
|
||||||
include $(RIOTMAKE)/arch/mips.inc.mk
|
include $(RIOTMAKE)/arch/mips.inc.mk
|
||||||
include $(RIOTCPU)/mips_pic32_common/Makefile.include
|
include $(RIOTCPU)/mips_pic32_common/Makefile.include
|
||||||
|
include $(RIOTCPU)/mips32r2_common/Makefile.include
|
||||||
|
|
||||||
# define build specific options
|
# define build specific options
|
||||||
export CFLAGS += -march=m5101 -mmicromips -DSKIP_COPY_TO_RAM
|
export CFLAGS += -march=m5101 -mmicromips -DSKIP_COPY_TO_RAM
|
||||||
export CFLAGS += -DMIPS_MICROMIPS
|
export CFLAGS += -DMIPS_MICROMIPS
|
||||||
|
|
||||||
export USEMODULE += mips_pic32_common
|
export USEMODULE += mips_pic32_common
|
||||||
export USEMODULE += periph
|
|
||||||
export USEMODULE += periph_common
|
|
||||||
export USEMODULE += newlib
|
|
||||||
|
|
||||||
ifeq ($(USE_UHI_SYSCALLS),1)
|
|
||||||
#Use UHI to handle syscalls
|
|
||||||
export LINKFLAGS += -luhi
|
|
||||||
export USEMODULE += newlib_syscalls_mips_uhi
|
|
||||||
else
|
|
||||||
#Use RIOT to handle syscalls (default)
|
|
||||||
export USEMODULE += newlib_syscalls_default
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
export LINKFLAGS += -Wl,--defsym,__use_excpt_boot=0 $(CFLAGS)
|
export LINKFLAGS += -Wl,--defsym,__use_excpt_boot=0 $(CFLAGS)
|
||||||
export LINKFLAGS += -Tpic32mz2048_uhi.ld
|
export LINKFLAGS += -Tpic32mz2048_uhi.ld
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user