From 22f1be109899bf9c24c796beb1f5ac300b9f1038 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 23 Oct 2009 01:46:22 +0000 Subject: Add support for the CodeSourcery toolchain under Linux for the STM32 git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2170 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/stm3210e-eval/README.txt | 39 ++++++++-------------------------- 1 file changed, 9 insertions(+), 30 deletions(-) (limited to 'nuttx/configs/stm3210e-eval/README.txt') diff --git a/nuttx/configs/stm3210e-eval/README.txt b/nuttx/configs/stm3210e-eval/README.txt index 98ded86c6..70fd9d317 100755 --- a/nuttx/configs/stm3210e-eval/README.txt +++ b/nuttx/configs/stm3210e-eval/README.txt @@ -27,18 +27,19 @@ GNU Toolchain Options add one of the following configuration options to your .config (or defconfig) file: - CONFIG_STM32_CODESOURCERY=y - CONFIG_STM32_DEVKITARM=y - CONFIG_STM32_RAISONANCE=y - CONFIG_STM32_BUILDROOT=y (default) + CONFIG_STM32_CODESOURCERYW=y : CodeSourcery under Windows + CONFIG_STM32_CODESOURCERYL=y : CodeSourcery under Linux + CONFIG_STM32_DEVKITARM=y : devkitARM under Windows + CONFIG_STM32_RAISONANCE=y : Raisonance RIDE7 under Windows + CONFIG_STM32_BUILDROOT=y : NuttX buildroot under Windows or Cygwin (default) If you are not using CONFIG_STM32_BUILDROOT, then you may also have to modify the PATH in the setenv.h file if your make cannot find the tools. - NOTE: the CodeSourcery, devkitARM, and Raisonance toolchains are Windows native - toolchains. The NuttX buildroot toolchain is a Cygwin or Linux native toolchain. - There are several limitations to using a Windows based toolchain in a Cygwin - environment. The three biggest are: + NOTE: the CodeSourcery (for Windows), devkitARM, and Raisonance toolchains are + Windows native toolchains. The CodeSourcey (for Linux) and NuttX buildroot + toolchains are Cygwin and/or Linux native toolchains. There are several limitations + to using a Windows based toolchain in a Cygwin environment. The three biggest are: 1. The Windows toolchain cannot follow Cygwin paths. Path conversions are performed automatically in the Cygwin makefiles using the 'cygpath' utility @@ -78,28 +79,6 @@ GNU Toolchain Options the paths to Cygwin's /bin and /usr/bin directories appear BEFORE the devkitARM path or will get the wrong version of make. -CodeSourcery on Linux -^^^^^^^^^^^^^^^^^^^^^ - - If you select the CodeSourcery toolchain, the make system will assume that you - are running a Windows version of the toolchain. If you are running under Linux, - the the make will probably fail. The fix is to edit your Make.defs file and - use something like: - - CROSSDEV = arm-none-eabi- - WINTOOL = n - MKDEP = $(TOPDIR)/tools/mkdeps.sh - ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft - ARCHINCLUDES = -I. -isystem $(TOPDIR)/include - ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx - ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/ostest/$(LDSCRIPT) - MAXOPTIMIZATION = -O2 - - Where LDSCRIPT is defined to be either ld.script or ld.script.dfu. The values - for TOPDIR is provided by the make system; the value for CONFIG_ARCH_BOARD is - provided in your defconfig file. 'ostest' refers to the ostest/ configuration; - this would be different for other configurations. - IDEs ^^^^ -- cgit v1.2.3