summaryrefslogtreecommitdiff
path: root/nuttx/tools
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-20 14:08:21 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-20 14:08:21 +0000
commit7ca3d6a1f2235ad04c947bf992738dcc98199395 (patch)
treee4a37e2a58f45525caaeb17d34670a6a01459abb /nuttx/tools
parent1fb830e24ef8b48e1134cd7bcd1d835195ceca81 (diff)
downloadpx4-nuttx-7ca3d6a1f2235ad04c947bf992738dcc98199395.tar.gz
px4-nuttx-7ca3d6a1f2235ad04c947bf992738dcc98199395.tar.bz2
px4-nuttx-7ca3d6a1f2235ad04c947bf992738dcc98199395.zip
Fix make export target
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5446 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/tools')
-rw-r--r--nuttx/tools/Makefile.export8
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/tools/Makefile.export b/nuttx/tools/Makefile.export
index 95a33b779..002cb526b 100644
--- a/nuttx/tools/Makefile.export
+++ b/nuttx/tools/Makefile.export
@@ -37,10 +37,16 @@ include $(TOPDIR)/.config
include $(EXPORTDIR)/Make.defs
ifdef ARCHSCRIPT
-LDPATH = ${shell echo "$(ARCHSCRIPT)" | sed -e "s/^-T[ ]*//g"}
+ifeq ($(WINTOOL),y)
+LDPATH = ${shell cygpath -u $(patsubst -T,,$(ARCHSCRIPT))}
+else
+LDPATH = $(patsubst -T,,$(ARCHSCRIPT))
+endif
+
LDNAME = ${shell basename ${LDPATH}}
LDDIR = ${shell dirname ${LDPATH}}
endif
+
ARCHSUBDIR = "arch/$(CONFIG_ARCH)/src"
ARCHDIR ="$(TOPDIR)/$(ARCHSUBDIR)"