diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-10-04 17:48:35 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-10-04 17:48:35 +0000 |
commit | 365ffcd212b8836b7dce5ec21ea4205148bc85e5 (patch) | |
tree | fc0e1809da973d97a51a1dd2de77c9fe29628a55 /nuttx/configs/stm3210e-eval/ostest/Make.defs | |
parent | d977e1c8ff3fa9f8186a0f0e65612d0d2bf2309b (diff) | |
download | px4-nuttx-365ffcd212b8836b7dce5ec21ea4205148bc85e5.tar.gz px4-nuttx-365ffcd212b8836b7dce5ec21ea4205148bc85e5.tar.bz2 px4-nuttx-365ffcd212b8836b7dce5ec21ea4205148bc85e5.zip |
Started a RIDE project for STM32
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2120 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3210e-eval/ostest/Make.defs')
-rw-r--r-- | nuttx/configs/stm3210e-eval/ostest/Make.defs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/configs/stm3210e-eval/ostest/Make.defs b/nuttx/configs/stm3210e-eval/ostest/Make.defs index f0f3e62b7..773b3e71c 100644 --- a/nuttx/configs/stm3210e-eval/ostest/Make.defs +++ b/nuttx/configs/stm3210e-eval/ostest/Make.defs @@ -37,6 +37,12 @@ include ${TOPDIR}/.config # Setup for the selected toolchain +ifeq ($(CONFIG_STM32_DFU)y) + LDSCRIPT = ld.script.dfu +else + LDSCRIPT = ld.script +endif + ifneq ($(CONFIG_STM32_BUILDROOT),y) # Windows-native toolchains ifeq ($(CONFIG_STM32_DEVKITARM),y) @@ -51,7 +57,7 @@ endif 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}" + ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/ostest/$(LDSCRIPT)}" MAXOPTIMIZATION = -O2 # The NuttX buildroot toolchain else @@ -61,7 +67,7 @@ else 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 + ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/ostest/$(LDSCRIPT) MAXOPTIMIZATION = -Os endif |