summaryrefslogtreecommitdiff
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
parent1fb830e24ef8b48e1134cd7bcd1d835195ceca81 (diff)
downloadnuttx-7ca3d6a1f2235ad04c947bf992738dcc98199395.tar.gz
nuttx-7ca3d6a1f2235ad04c947bf992738dcc98199395.tar.bz2
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
-rw-r--r--nuttx/TODO44
-rw-r--r--nuttx/tools/Makefile.export8
2 files changed, 50 insertions, 2 deletions
diff --git a/nuttx/TODO b/nuttx/TODO
index 85a89b41f..6c28bfd43 100644
--- a/nuttx/TODO
+++ b/nuttx/TODO
@@ -20,7 +20,7 @@ nuttx/
(5) Graphics subystem (graphics/)
(1) Pascal add-on (pcode/)
(1) Documentation (Documentation/)
- (6) Build system / Toolchains
+ (8) Build system / Toolchains
(5) Linux/Cywgin simulation (arch/sim)
(6) ARM (arch/arm/)
(1) ARM/C5471 (arch/arm/src/c5471/)
@@ -974,6 +974,48 @@ o Build system
Priority: Low -- the kernel build configuration is not fully fielded
yet.
+ Title: mconf NOT AVAILABLE IN NATIVE WINDOWS BUILD
+ Description: NuttX is migrating to the use of the kconfig-frontends mconf
+ tool for all configurations. In NuttX 6.24, support for native
+ Windows builds was added. However, the mconf tool does not
+ build to run natively under Windows.
+
+ Some effort was spent trying to get a clean mconf build under
+ Windows. This is documented in the message thread beginning
+ here: http://tech.groups.yahoo.com/group/nuttx/message/2900.
+ The build was successfully completed using: MinGW-GCC, MSYS,
+ additional Windows libraries, and additional MSYS libraries
+ (MSYS is a variant of Cygwin so, presumeably, Cygwin could
+ have been used as well). However, on final testing, it was
+ found that there are problems with text and numeric entry:
+ http://tech.groups.yahoo.com/group/nuttx/message/2953. This
+ was considered a show stopper and the changs were not checked
+ in.
+
+ Options: (1) Use conf (not mconf). confis the text-only
+ configuration tool, (2) fix mconf, (3) write another variant
+ of the configuration tool for windows, or (4) do all configuration
+ under Cygwin or MSYS. I am doing (4) now, but this is very
+ awkward because I have to set the apps path to ../apps (vs
+ ..\apps) and CONFIG_WINDOWS_NATIVE=n for the 'make menuconfig'
+ to run error free under windows. Very awkward!
+ Status: Open, there are some workarounds, but none are good.
+ Priority: High
+
+ Title: configure.sh NOT AVAILABLE IN NATIVE WINDOWS BUILD
+ Description: configure.sh is a Bash script and cannot be used from a Windows
+ CMD.exe window. I started a configure.bat script, but I do
+ not have the batch file programming skills to duplicate some
+ of the more complex operations.
+
+ I also considered adding a configure.c file that could be
+ compiled and then executed by configure.bat (and configure.sh?).
+ But I have not gone down that path yet.
+
+ The current work-around is to configure under Cygwin.
+ Status: Open
+ Priority: High
+
o Linux/Cywgin simulation (arch/sim)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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)"