Browse Source

cpu: mips: Fix missing include for pic32mx and pic32mz

Compilation for pic32mx and pic32mz did not include the path
to cpu/mips_pic32_common/include. Also,
cpu/mips_pic32_common/Makefile.include was never parsed. It was
found that mips32r2_common and mips_pic32_common are both defining
similar parameters for linkers which cause issues if both
Makefile.include get parsed.

Signed-off-by: Francois Berder <francois.berder@imgtec.com>
master
Francois Berder 6 years ago
parent
commit
74a999abe4
  1. 9
      cpu/mips_pic32_common/Makefile.include
  2. 1
      cpu/mips_pic32mx/Makefile.include
  3. 1
      cpu/mips_pic32mz/Makefile.include

9
cpu/mips_pic32_common/Makefile.include

@ -1,7 +1,2 @@
# depends on mips32r2_common
USEMODULE += mips32r2_common
export MIPS32R2_COMMON = $(RIOTCPU)/mips32r2_common/
export INCLUDES = $(MIPS32R2_COMMON)include
include $(MIPS32R2_COMMON)Makefile.include
export INCLUDES += -I$(RIOTCPU)/mips32r2_common/include \
-I$(RIOTCPU)/mips_pic32_common/include

1
cpu/mips_pic32mx/Makefile.include

@ -4,6 +4,7 @@ export APP_START=0x80000000
export ROMABLE = 1
include $(RIOTMAKE)/arch/mips.inc.mk
include $(RIOTCPU)/mips_pic32_common/Makefile.include
# define build specific options
export CFLAGS += -march=m4k -DSKIP_COPY_TO_RAM

1
cpu/mips_pic32mz/Makefile.include

@ -4,6 +4,7 @@ export APP_START=0x80000000
export ROMABLE = 1
include $(RIOTMAKE)/arch/mips.inc.mk
include $(RIOTCPU)/mips_pic32_common/Makefile.include
# define build specific options
export CFLAGS += -march=m5101 -mmicromips -DSKIP_COPY_TO_RAM

Loading…
Cancel
Save