summaryrefslogtreecommitdiff
path: root/nuttx/configs/sure-pic32mx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-21 18:34:10 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-21 18:34:10 +0000
commit14a77ec91b12454c9106836b3d4a08c63a098e1d (patch)
tree06d31d6b84560021098398f9a4420f78b74cd3e2 /nuttx/configs/sure-pic32mx
parentbae532d2adc61dc1db83f878366c54cc880b16f6 (diff)
downloadpx4-nuttx-14a77ec91b12454c9106836b3d4a08c63a098e1d.tar.gz
px4-nuttx-14a77ec91b12454c9106836b3d4a08c63a098e1d.tar.bz2
px4-nuttx-14a77ec91b12454c9106836b3d4a08c63a098e1d.zip
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
Diffstat (limited to 'nuttx/configs/sure-pic32mx')
-rw-r--r--nuttx/configs/sure-pic32mx/nsh/Make.defs38
-rw-r--r--nuttx/configs/sure-pic32mx/ostest/Make.defs38
-rw-r--r--nuttx/configs/sure-pic32mx/usbnsh/Make.defs38
3 files changed, 3 insertions, 111 deletions
diff --git a/nuttx/configs/sure-pic32mx/nsh/Make.defs b/nuttx/configs/sure-pic32mx/nsh/Make.defs
index 4aaf906ed..836ec0ac7 100644
--- a/nuttx/configs/sure-pic32mx/nsh/Make.defs
+++ b/nuttx/configs/sure-pic32mx/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/sure-pic32mx/ostest/Make.defs b/nuttx/configs/sure-pic32mx/ostest/Make.defs
index cc2517739..8dbc884b9 100644
--- a/nuttx/configs/sure-pic32mx/ostest/Make.defs
+++ b/nuttx/configs/sure-pic32mx/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
diff --git a/nuttx/configs/sure-pic32mx/usbnsh/Make.defs b/nuttx/configs/sure-pic32mx/usbnsh/Make.defs
index fbb58949b..791750fe6 100644
--- a/nuttx/configs/sure-pic32mx/usbnsh/Make.defs
+++ b/nuttx/configs/sure-pic32mx/usbnsh/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