summaryrefslogtreecommitdiff
path: root/nuttx/tools
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/tools')
-rw-r--r--nuttx/tools/README.txt19
-rw-r--r--nuttx/tools/mkdeps.c3
2 files changed, 17 insertions, 5 deletions
diff --git a/nuttx/tools/README.txt b/nuttx/tools/README.txt
index 28fa664bd..3c9730d00 100644
--- a/nuttx/tools/README.txt
+++ b/nuttx/tools/README.txt
@@ -290,11 +290,17 @@ mknulldeps.sh
The mknulldeps.sh is a stub script that does essentially nothing.
- NOTE: The mkdep.* files are undergoing change. mkdeps.sh is a bash
+ NOTE: The mk*deps.* files are undergoing change. mkdeps.sh is a bash
script that produces dependencies well for POSIX style hosts (e..g.,
Linux and Cygwin). It does not work well for mixed environments with
a Windows toolchain running in a POSIX style environemnt (hence, the
- mknulldeps.sh script).
+ mknulldeps.sh script). And, of course, cannot be used in a Windows
+ nativ environment.
+
+ [mkdeps.sh does have an option, --winpath, that purports to convert
+ the dependencies generated by a Windows toolchain to POSIX format.
+ However, that is not being used and mostly likely does not cover
+ all of the conversion cases.]
mkdeps.bat is a simple port of the bash script to run in a Windows
command shell. However, it does not work well either because some
@@ -302,8 +308,13 @@ mknulldeps.sh
by the CMD.exe shell.
mkdeps.c generates mkdeps (on Linux) or mkdeps.exe (on Windows).
- This C version should solve all of the issues. However, this verison
- is still under-development.
+ However, this verison is still under-development. It works well in
+ the all POSIX environment or in the all Windows environment but also
+ does not work well in mixed POSIX environment with a Windows toolchain.
+ In that case, there are still issues with the conversion of things like
+ 'c:\Program Files' to 'c:program files' by bash. Those issues may,
+ eventually be solvable but for now continue to use mknulldeps.sh in
+ that mixed environment.
define.sh
diff --git a/nuttx/tools/mkdeps.c b/nuttx/tools/mkdeps.c
index 7850cee73..f2a196387 100644
--- a/nuttx/tools/mkdeps.c
+++ b/nuttx/tools/mkdeps.c
@@ -396,7 +396,8 @@ static void do_dependency(const char *file, char separator)
ret = system(command);
if (ret != 0)
{
- fprintf(stderr, "ERROR: ssystem(%s) failed\n", command);
+ fprintf(stderr, "ERROR: system failed: %s\n", strerror(errno));
+ fprintf(stderr, " command: %s\n", command);
exit(EXIT_FAILURE);
}