summaryrefslogtreecommitdiff
path: root/nuttx/configs/twr-k60n512
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/twr-k60n512
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/twr-k60n512')
-rw-r--r--nuttx/configs/twr-k60n512/nsh/Make.defs32
-rw-r--r--nuttx/configs/twr-k60n512/ostest/Make.defs32
2 files changed, 2 insertions, 62 deletions
diff --git a/nuttx/configs/twr-k60n512/nsh/Make.defs b/nuttx/configs/twr-k60n512/nsh/Make.defs
index bb4a3f941..99ef12d47 100644
--- a/nuttx/configs/twr-k60n512/nsh/Make.defs
+++ b/nuttx/configs/twr-k60n512/nsh/Make.defs
@@ -35,37 +35,7 @@
include ${TOPDIR}/.config
include ${TOPDIR}/tools/Config.mk
-
-# Setup for the selected toolchain
-
-ifeq ($(CONFIG_KINETIS_CODESOURCERYW),y)
- # CodeSourcery under Windows
- CROSSDEV = arm-none-eabi-
- WINTOOL = y
- ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -mlong-calls
-endif
-ifeq ($(CONFIG_KINETIS_CODESOURCERYL),y)
- # CodeSourcery under Linux
- CROSSDEV = arm-none-eabi-
- ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -mlong-calls
- MAXOPTIMIZATION = -O2
-endif
-ifeq ($(CONFIG_KINETIS_DEVKITARM),y)
- # devkitARM under Windows
- CROSSDEV = arm-eabi-
- WINTOOL = y
- ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -mlong-calls
-endif
-ifeq ($(CONFIG_KINETIS_BUILDROOT),y)
- # NuttX buildroot under Linux or Cygwin
- # OABI
- # CROSSDEV = arm-nuttx-elf-
- # ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft
- # EABI
- CROSSDEV = arm-nuttx-eabi-
- ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft
- MAXOPTIMIZATION = -Os
-endif
+include ${TOPDIR}/arch/arm/src/armv7-m/Toolchain.defs
ifeq ($(WINTOOL),y)
# Windows-native toolchains
diff --git a/nuttx/configs/twr-k60n512/ostest/Make.defs b/nuttx/configs/twr-k60n512/ostest/Make.defs
index cb7d962ba..efa53b08a 100644
--- a/nuttx/configs/twr-k60n512/ostest/Make.defs
+++ b/nuttx/configs/twr-k60n512/ostest/Make.defs
@@ -35,37 +35,7 @@
include ${TOPDIR}/.config
include ${TOPDIR}/tools/Config.mk
-
-# Setup for the selected toolchain
-
-ifeq ($(CONFIG_KINETIS_CODESOURCERYW),y)
- # CodeSourcery under Windows
- CROSSDEV = arm-none-eabi-
- WINTOOL = y
- ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -mlong-calls
-endif
-ifeq ($(CONFIG_KINETIS_CODESOURCERYL),y)
- # CodeSourcery under Linux
- CROSSDEV = arm-none-eabi-
- ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -mlong-calls
- MAXOPTIMIZATION = -O2
-endif
-ifeq ($(CONFIG_KINETIS_DEVKITARM),y)
- # devkitARM under Windows
- CROSSDEV = arm-eabi-
- WINTOOL = y
- ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -mlong-calls
-endif
-ifeq ($(CONFIG_KINETIS_BUILDROOT),y)
- # NuttX buildroot under Linux or Cygwin
- # OABI
- # CROSSDEV = arm-nuttx-elf-
- # ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft
- # EABI
- CROSSDEV = arm-nuttx-eabi-
- ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft
- MAXOPTIMIZATION = -Os
-endif
+include ${TOPDIR}/arch/arm/src/armv7-m/Toolchain.defs
ifeq ($(WINTOOL),y)
# Windows-native toolchains