PIC32MZ: Changes that will permit building of the PIC32MZ Start Kit configuration using MPLAB and the XC32 toolchain. From David Sidrane

This commit is contained in:
Gregory Nutt 2015-03-17 14:50:11 -06:00
parent 824f486bdf
commit 000381db37
2 changed files with 20 additions and 0 deletions

View File

@ -21,6 +21,10 @@ config MIPS32_TOOLCHAIN_MICROCHIPL
bool "Microchip C32 toolchain under Linux" bool "Microchip C32 toolchain under Linux"
depends on HOST_LINUX depends on HOST_LINUX
config MIPS32_TOOLCHAIN_MICROCHIPL_XC32
bool "Microchip XC32 toolchain under Linux"
depends on HOST_LINUX
config MIPS32_TOOLCHAIN_MICROCHIPL_LITE config MIPS32_TOOLCHAIN_MICROCHIPL_LITE
bool "Microchip C32 toolchain under Linux (Lite edition)" bool "Microchip C32 toolchain under Linux (Lite edition)"
depends on HOST_LINUX depends on HOST_LINUX

View File

@ -55,6 +55,12 @@ ifeq ($(filter y, \
CONFIG_MIPS32_TOOLCHAIN ?= MICROCHIPL CONFIG_MIPS32_TOOLCHAIN ?= MICROCHIPL
endif endif
ifeq ($(filter y, \
$(CONFIG_MIPS32_TOOLCHAIN_MICROCHIPL_XC32) \
),y)
CONFIG_MIPS32_TOOLCHAIN ?= MICROCHIPL_XC32
endif
ifeq ($(filter y, \ ifeq ($(filter y, \
$(CONFIG_MIPS32_TOOLCHAIN_MICROCHIPL_LITE) \ $(CONFIG_MIPS32_TOOLCHAIN_MICROCHIPL_LITE) \
),y) ),y)
@ -148,6 +154,16 @@ ifeq ($(CONFIG_MIPS32_TOOLCHAIN),MICROCHIPL)
LDSCRIPT = xc32-debug.ld LDSCRIPT = xc32-debug.ld
endif endif
# Microchip XC32 toolchain under Linux
ifeq ($(CONFIG_MIPS32_TOOLCHAIN),MICROCHIPL_XC32)
CROSSDEV ?= xc32-
MAXOPTIMIZATION ?= -O2
ARCHCPUFLAGS = -mprocessor=$(MIPS_MPROCESSOR) -march=$(MIPS_MARCH) -EL $(MIPS_MICROMIPS) -msmart-io=0
LDFLAGS += -nostartfiles -nodefaultlibs
LDSCRIPT = xc32-debug.ld
endif
# Microchip C32 toolchain under Windows # Microchip C32 toolchain under Windows
ifeq ($(CONFIG_MIPS32_TOOLCHAIN),MICROCHIPW) ifeq ($(CONFIG_MIPS32_TOOLCHAIN),MICROCHIPW)