mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 09:13:33 +08:00
Mostly cosmetic changes
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5344 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+15
-4
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user