From 14a77ec91b12454c9106836b3d4a08c63a098e1d Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 21 Nov 2012 18:34:10 +0000 Subject: Big refactoring of toolchain definitions by Mike Smith git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5379 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/pic32mx7mmb/nsh/Make.defs | 38 +----------------------------- nuttx/configs/pic32mx7mmb/ostest/Make.defs | 38 +----------------------------- 2 files changed, 2 insertions(+), 74 deletions(-) (limited to 'nuttx/configs/pic32mx7mmb') diff --git a/nuttx/configs/pic32mx7mmb/nsh/Make.defs b/nuttx/configs/pic32mx7mmb/nsh/Make.defs index 249c359d4..cf3bd8db2 100644 --- a/nuttx/configs/pic32mx7mmb/nsh/Make.defs +++ b/nuttx/configs/pic32mx7mmb/nsh/Make.defs @@ -35,43 +35,7 @@ include ${TOPDIR}/.config include ${TOPDIR}/tools/Config.mk - -# Setup for the selected toolchain - -ifeq ($(CONFIG_PIC32MX_MICROCHIPW),y) - # Microchip toolchain under Windows - CROSSDEV = pic32- - WINTOOL = y - MAXOPTIMIZATION = -O2 - ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data - ARCHPICFLAGS = -fpic -membedded-pic - LDFLAGS += -nostartfiles -nodefaultlibs -endif -ifeq ($(CONFIG_PIC32MX_MICROCHIPW_LITE),y) - # Microchip toolchain under Windows - CROSSDEV = pic32- - WINTOOL = y -# MAXOPTIMIZATION = -O2 - ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data - ARCHPICFLAGS = -fpic -membedded-pic - LDFLAGS += -nostartfiles -nodefaultlibs -endif -ifeq ($(CONFIG_PIC32MX_MICROCHIPL),y) - # Microchip toolchain under Linux - CROSSDEV = pic32- - MAXOPTIMIZATION = -O2 - ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data - ARCHPICFLAGS = -fpic -membedded-pic - LDFLAGS += -nostartfiles -nodefaultlibs -endif -ifeq ($(CONFIG_PIC32MX_MICROCHIPL_LITE),y) - # Microchip toolchain under Linux - CROSSDEV = pic32- -# MAXOPTIMIZATION = -O2 - ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data - ARCHPICFLAGS = -fpic -membedded-pic - LDFLAGS += -nostartfiles -nodefaultlibs -endif +include ${TOPDIR}/arch/mips/src/mips32/Toolchain.defs ifeq ($(WINTOOL),y) # Windows-native toolchains diff --git a/nuttx/configs/pic32mx7mmb/ostest/Make.defs b/nuttx/configs/pic32mx7mmb/ostest/Make.defs index 4196872a7..808f12193 100644 --- a/nuttx/configs/pic32mx7mmb/ostest/Make.defs +++ b/nuttx/configs/pic32mx7mmb/ostest/Make.defs @@ -35,43 +35,7 @@ include ${TOPDIR}/.config include ${TOPDIR}/tools/Config.mk - -# Setup for the selected toolchain - -ifeq ($(CONFIG_PIC32MX_MICROCHIPW),y) - # Microchip toolchain under Windows - CROSSDEV = pic32- - WINTOOL = y - MAXOPTIMIZATION = -O2 - ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data - ARCHPICFLAGS = -fpic -membedded-pic - LDFLAGS += -nostartfiles -nodefaultlibs -endif -ifeq ($(CONFIG_PIC32MX_MICROCHIPW_LITE),y) - # Microchip toolchain under Windows - CROSSDEV = pic32- - WINTOOL = y -# MAXOPTIMIZATION = -O2 - ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data - ARCHPICFLAGS = -fpic -membedded-pic - LDFLAGS += -nostartfiles -nodefaultlibs -endif -ifeq ($(CONFIG_PIC32MX_MICROCHIPL),y) - # Microchip toolchain under Linux - CROSSDEV = pic32- - MAXOPTIMIZATION = -O2 - ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data - ARCHPICFLAGS = -fpic -membedded-pic - LDFLAGS += -nostartfiles -nodefaultlibs -endif -ifeq ($(CONFIG_PIC32MX_MICROCHIPL_LITE),y) - # Microchip toolchain under Linux - CROSSDEV = pic32- -# MAXOPTIMIZATION = -O2 - ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data - ARCHPICFLAGS = -fpic -membedded-pic - LDFLAGS += -nostartfiles -nodefaultlibs -endif +include ${TOPDIR}/arch/mips/src/mips32/Toolchain.defs ifeq ($(WINTOOL),y) # Windows-native toolchains -- cgit v1.2.3