diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-10-11 13:59:52 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-10-11 13:59:52 +0000 |
commit | 6f232512665e2c55cd6a1af7ae0f5cb4db7f6696 (patch) | |
tree | 8ff2439d84ed3780cc1baa4f455a95dc06108b47 /nuttx/configs/stm3210e-eval/RIDE/stm32-ld.sh | |
parent | dab64ea9509bc5a195a224660bf4564775301438 (diff) | |
download | px4-nuttx-6f232512665e2c55cd6a1af7ae0f5cb4db7f6696.tar.gz px4-nuttx-6f232512665e2c55cd6a1af7ae0f5cb4db7f6696.tar.bz2 px4-nuttx-6f232512665e2c55cd6a1af7ae0f5cb4db7f6696.zip |
update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2122 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3210e-eval/RIDE/stm32-ld.sh')
-rwxr-xr-x | nuttx/configs/stm3210e-eval/RIDE/stm32-ld.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nuttx/configs/stm3210e-eval/RIDE/stm32-ld.sh b/nuttx/configs/stm3210e-eval/RIDE/stm32-ld.sh new file mode 100755 index 000000000..29259862d --- /dev/null +++ b/nuttx/configs/stm3210e-eval/RIDE/stm32-ld.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +GNUPATH="/cygdrive/c/Program Files/Raisonance/Ride/arm-gcc/bin" +RIDEPATH="/cygdrive/c/Program Files/Raisonance/Ride/Bin" + +LD=arm-none-eabi-gcc.exe +OBJCOPY=arm-none-eabi-objcopy.exe +REXRDR=rexrdr.exe +SIZE=arm-none-eabi-size.exe +DWF2XML=dwf2xml.exe + +SCRIPT="C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\nuttx.elf.ld" +LDFLAGS="-mcpu=cortex-m3 -mthumb -u _start -Wl,-static -Wl,--gc-sections -nostartfiles -Wl,--warn-once -nostdlib" + +${LD} "${LDFLAGS}" -Wl,-T -Xlinker "${SCRIPT}" +${OBJCOPY} nuttx.elf --target=ihex nuttx.hex +${REXRDR} nuttx.elf.sizetmp 0 ${SIZE} nuttx.elf +${DWF2XML} nuttx.dbi nuttx-globals.Standard.xml nuttx.Standard.xml ARM |