aboutsummaryrefslogtreecommitdiff
path: root/nuttx/tools
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-01-15 23:03:47 -0800
committerpx4dev <px4@purgatory.org>2013-01-15 23:03:47 -0800
commitab0459c1f47689d9b4f2841111bd39f61a1d8f21 (patch)
tree35d907801496cc9c9d36d99ead367d88f7053f23 /nuttx/tools
parent854c6436b4e3b292fd04843795d0369dc8856783 (diff)
downloadpx4-firmware-ab0459c1f47689d9b4f2841111bd39f61a1d8f21.tar.gz
px4-firmware-ab0459c1f47689d9b4f2841111bd39f61a1d8f21.tar.bz2
px4-firmware-ab0459c1f47689d9b4f2841111bd39f61a1d8f21.zip
Pass the absolute path to the compiler/assembler so that error messages include enough information for an IDE to find the file.
Diffstat (limited to 'nuttx/tools')
-rw-r--r--nuttx/tools/Config.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/tools/Config.mk b/nuttx/tools/Config.mk
index 9ac93e7d0..9f36ed4f3 100644
--- a/nuttx/tools/Config.mk
+++ b/nuttx/tools/Config.mk
@@ -114,7 +114,7 @@ endef
define COMPILE
@echo "CC: $1"
- $(Q) $(CC) -c $(CFLAGS) $1 -o $2
+ $(Q) $(CC) -c $(CFLAGS) $(abspath $1) -o $2
endef
# COMPILEXX - Default macro to compile one C++ file
@@ -128,7 +128,7 @@ endef
define COMPILEXX
@echo "CXX: $1"
- $(Q) $(CXX) -c $(CXXFLAGS) $1 -o $2
+ $(Q) $(CXX) -c $(CXXFLAGS) $(abspath $1) -o $2
endef
# ASSEMBLE - Default macro to assemble one assembly language file
@@ -149,7 +149,7 @@ endef
define ASSEMBLE
@echo "AS: $1"
- $(Q) $(CC) -c $(AFLAGS) $1 -o $2
+ $(Q) $(CC) -c $(AFLAGS) $(abspath $1) -o $2
endef
# ARCHIVE - Add a list of files to an archive