aboutsummaryrefslogtreecommitdiff
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
commitc2a284d25ef6dfd127ffebc574e43b113afe81de (patch)
treee4a37e2a58f45525caaeb17d34670a6a01459abb /nuttx/tools
parentdb3e7613bce907bab90a64c297ec420f3b35f7ce (diff)
downloadpx4-firmware-c2a284d25ef6dfd127ffebc574e43b113afe81de.tar.gz
px4-firmware-c2a284d25ef6dfd127ffebc574e43b113afe81de.tar.bz2
px4-firmware-c2a284d25ef6dfd127ffebc574e43b113afe81de.zip
Fix make export target
git-svn-id: http://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)"