Add stm32 header files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2074 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
ebfdcdcb98
commit
dc06d205d6
@ -35,6 +35,9 @@ GNU Toolchain Options
|
|||||||
CONFIG_STM32_RAISONANCE=y
|
CONFIG_STM32_RAISONANCE=y
|
||||||
CONFIG_STM32_BUILDROOT=y (default)
|
CONFIG_STM32_BUILDROOT=y (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
|
NOTE: the CodeSourcery, devkitARM, and Raisonance toolchains are Windows native
|
||||||
toolchains. The NuttX buildroot toolchain is a Cygwin or Linux native toolchain.
|
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
|
There are several limitations to using a Windows based toolchain in a Cygwin
|
||||||
|
@ -35,13 +35,36 @@
|
|||||||
|
|
||||||
include ${TOPDIR}/.config
|
include ${TOPDIR}/.config
|
||||||
|
|
||||||
# The default value for CROSSDEV can be overridden from the make command line:
|
# Setup for the selected toolchain
|
||||||
# make -- Will build for the devkitARM toolchain
|
|
||||||
# make CROSSDEV=arm-eabi- -- Will build for the devkitARM toolchain
|
ifneq ($(CONFIG_STM32_BUILDROOT),y)
|
||||||
# make CROSSDEV=arm-none-eabi- -- Will build for the CodeSourcery toolchain
|
# Windows-native toolchains
|
||||||
# make CROSSDEV=arm-elf- -- Will build for the NuttX buildroot toolchain
|
ifeq ($(CONFIG_STM32_DEVKITARM),y)
|
||||||
|
CROSSDEV = arm-eabi-
|
||||||
|
else
|
||||||
|
CROSSDEV = arm-none-eabi-
|
||||||
|
endif
|
||||||
|
WINTOOL = y
|
||||||
|
DIRLINK = $(TOPDIR)/tools/winlink.sh
|
||||||
|
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||||
|
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||||
|
ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft
|
||||||
|
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
||||||
|
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
||||||
|
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/ostest/ld.script}"
|
||||||
|
MAXOPTIMIZATION = -O2
|
||||||
|
# The NuttX buildroot toolchain
|
||||||
|
else
|
||||||
|
# Linux/Cygwin-native toolchain (assumed from the NuttX buildroot)
|
||||||
|
CROSSDEV = arm-elf-
|
||||||
|
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
||||||
|
ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -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/ld.script
|
||||||
|
MAXOPTIMIZATION = -Os
|
||||||
|
endif
|
||||||
|
|
||||||
CROSSDEV = arm-eabi-
|
|
||||||
CC = $(CROSSDEV)gcc
|
CC = $(CROSSDEV)gcc
|
||||||
CXX = $(CROSSDEV)g++
|
CXX = $(CROSSDEV)g++
|
||||||
CPP = $(CROSSDEV)gcc -E
|
CPP = $(CROSSDEV)gcc -E
|
||||||
@ -54,25 +77,6 @@ OBJDUMP = $(CROSSDEV)objdump
|
|||||||
ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'}
|
ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'}
|
||||||
ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
|
ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
|
||||||
|
|
||||||
ifeq ($(CROSSDEV),arm-elf-)
|
|
||||||
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
|
||||||
ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -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/ld.script
|
|
||||||
MAXOPTIMIZATION = -Os
|
|
||||||
else
|
|
||||||
WINTOOL = y
|
|
||||||
DIRLINK = $(TOPDIR)/tools/winlink.sh
|
|
||||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
|
||||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
|
||||||
ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft
|
|
||||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
|
||||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
|
||||||
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/ostest/ld.script}"
|
|
||||||
MAXOPTIMIZATION = -O2
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ("${CONFIG_DEBUG_SYMBOLS}","y")
|
ifeq ("${CONFIG_DEBUG_SYMBOLS}","y")
|
||||||
ARCHOPTIMIZATION = -g
|
ARCHOPTIMIZATION = -g
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user