Skip to content

Commit

Permalink
Add tools/mkdeps.bat and tools/mkdeps.c
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5342 42af7a65-404d-4744-a932-0658087f49c3
  • Loading branch information
patacongo committed Nov 13, 2012
1 parent 4aa5fab commit 8f47445
Show file tree
Hide file tree
Showing 47 changed files with 903 additions and 222 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3608,3 +3608,8 @@
* configs/stm32f4discovery/winbuild: This is a version of the standard
NuttX OS test, but configured to build natively on Windows. Its only
real purpose is to very the native Windows build logic.
* tools/mkdeps.bat and tools/mkdeps.c: mkdeps.bat is a failed attempt
to leverage mkdeps.sh to CMD.exe. It fails because the are certain
critical CFLAG values that cannot be passed on the CMD.exe command line
(line '='). mkdeps.c is a work in progress that will, hopefully,
replace both mkdeps.sh and mkdeps.bat.
2 changes: 0 additions & 2 deletions Documentation/NuttX.html
Original file line number Diff line number Diff line change
Expand Up @@ -2971,8 +2971,6 @@ <h2>NuttX-6.23 Release Notes</h2>
<p><small>
NOTE: dependencies are suppress by setting the make variable <code>MKDEPS</code> to point
to the do-nothing dependency script, <code>tools/mknulldeps.sh</code>.
Dependencies can be enabled for the Windows native GCC compilers by setting
<code>MKDEPS</code> to point to <code>$(TOPDIR)/tools/mkdeps.sh --winpaths $(TOPDIR)</code>.
</small></p>
</ul>
<p>
Expand Down
16 changes: 7 additions & 9 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -578,18 +578,16 @@ Window Native Toolchain Issues
is not a long as you might think because there is no dependency checking
if you are using a native Windows toolchain. That bring us to #3:

3. Dependencies are not made when using Windows versions of the GCC. This is
because the dependencies are generated using Windows pathes which do not
work with the Cygwin make.
3. Dependencies are not made when using Windows versions of the GCC on a POSIX
platform (i.e., Cygwin). This is because the dependencies are generated
using Windows paths which do not work with the Cygwin make.

Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"
If you are building natively on Windows, then no such conflict exists
and the best selection is:

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mkdeps.exe

General Pre-built Toolchain Issues

Expand Down
10 changes: 1 addition & 9 deletions configs/amber/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,7 @@ Windows Native Toolchains
is because the dependencies are generated using Windows pathes which do
not work with the Cygwin make.

Support has been added for making dependencies with the windows-native
toolchains. That support can be enabled by modifying your Make.defs
file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are
not building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

An additional issue with the WinAVR toolchain, in particular, is that it
contains an incompatible version of the Cygwin DLL in its bin/ directory.
Expand Down
6 changes: 1 addition & 5 deletions configs/ea3131/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
9 changes: 1 addition & 8 deletions configs/ea3152/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,7 @@ GNU Toolchain Options
because the dependencies are generated using Windows pathes which do not
work with the Cygwin make.

Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/eagle100/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the CodeSourcery toolchain.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/ekk-lm3s9b96/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/fire-stm32v2/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

The CodeSourcery Toolchain (2009q1)
-----------------------------------
Expand Down
6 changes: 1 addition & 5 deletions configs/hymini-stm32v/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/kwikstik-k40/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/lincoln60/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/lm3s6432-s2e/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/lm3s6965-ek/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/lm3s8962-ek/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/lpc4330-xplorer/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

The CodeSourcery Toolchain (2009q1)
-----------------------------------
Expand Down
6 changes: 1 addition & 5 deletions configs/lpcxpresso-lpc1768/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/mbed/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/mcu123-lpc214x/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the CodeSourcery toolchain.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) may not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/micropendous3/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,7 @@ Windows Native Toolchains
toolchains. That support can be enabled by modifying your Make.defs
file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are
not building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

An additional issue with the WinAVR toolchain, in particular, is that it
contains an incompatible version of the Cygwin DLL in its bin/ directory.
Expand Down
6 changes: 1 addition & 5 deletions configs/mirtoo/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,7 @@ Toolchains
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

Loading NuttX with ICD3
========================
Expand Down
6 changes: 1 addition & 5 deletions configs/ntosd-dm320/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/nucleus2g/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/olimex-lpc1766stk/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) does not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/olimex-strp711/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,7 @@ GNU Toolchain Options
Support has been added for making dependencies with the CodeSourcery toolchain.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

NOTE 1: The CodeSourcery toolchain (2009q1) may not work with default optimization
level of -Os (See Make.defs). It will work with -O0, -O1, or -O2, but not with
Expand Down
6 changes: 1 addition & 5 deletions configs/pcblogic-pic32mx/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,7 @@ Toolchains
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

Loading NuttX with PICkit2
==========================
Expand Down
6 changes: 1 addition & 5 deletions configs/pic32-starterkit/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,7 @@ Toolchains
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

Powering the Board
==================
Expand Down
6 changes: 1 addition & 5 deletions configs/pic32mx7mmb/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,7 @@ Toolchains
Support has been added for making dependencies with the windows-native toolchains.
That support can be enabled by modifying your Make.defs file as follows:

- MKDEP = $(TOPDIR)/tools/mknulldeps.sh
+ MKDEP = $(TOPDIR)/tools/mkdeps.sh --winpaths "$(TOPDIR)"

If you have problems with the dependency build (for example, if you are not
building on C:), then you may need to modify tools/mkdeps.sh
MKDEP = $(TOPDIR)/tools/mknulldeps.sh

Powering the Board
==================
Expand Down
Loading

0 comments on commit 8f47445

Please sign in to comment.