aboutsummaryrefslogtreecommitdiff
path: root/makefiles/firmware.mk
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-10-30 22:35:09 +0100
committerLorenz Meier <lm@inf.ethz.ch>2013-10-30 22:35:09 +0100
commit0eabacd251074b4e8da8a72173e73ef48b58132a (patch)
tree93eb8a62ddf83dedb876ffe36b592160cd6b30cd /makefiles/firmware.mk
parent727342a5168bb23501c50287acb8edfe6d80e157 (diff)
parentdc80d6745e94df71d351f4338c610f910c2a4e94 (diff)
downloadpx4-firmware-0eabacd251074b4e8da8a72173e73ef48b58132a.tar.gz
px4-firmware-0eabacd251074b4e8da8a72173e73ef48b58132a.tar.bz2
px4-firmware-0eabacd251074b4e8da8a72173e73ef48b58132a.zip
Merge branch 'pwm_ioctls' of github.com:PX4/Firmware into pwm_ioctls
Diffstat (limited to 'makefiles/firmware.mk')
-rw-r--r--makefiles/firmware.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/makefiles/firmware.mk b/makefiles/firmware.mk
index b3e50501c..cb20d9cd1 100644
--- a/makefiles/firmware.mk
+++ b/makefiles/firmware.mk
@@ -110,6 +110,8 @@ ifneq ($(words $(PX4_BASE)),1)
$(error Cannot build when the PX4_BASE path contains one or more space characters.)
endif
+$(info % GIT_DESC = $(GIT_DESC))
+
#
# Set a default target so that included makefiles or errors here don't
# cause confusion.
@@ -177,6 +179,12 @@ GLOBAL_DEPS += $(MAKEFILE_LIST)
#
EXTRA_CLEANS =
+
+#
+# Extra defines for compilation
+#
+export EXTRADEFINES := -DGIT_VERSION=$(GIT_DESC)
+
#
# Append the per-board driver directory to the header search path.
#