From 7ca3d6a1f2235ad04c947bf992738dcc98199395 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 20 Dec 2012 14:08:21 +0000 Subject: Fix make export target git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5446 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/tools/Makefile.export | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'nuttx/tools') 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)" -- cgit v1.2.3