aboutsummaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-09-07 11:12:56 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-09-07 11:12:56 +0200
commit5111249eb8356b7b05f216b3cf7e6172f659c5c3 (patch)
treee9b6968f1454a122000d6a7b812e527b90fc4c6b /makefiles
parentd74bea57ac9f47b56e7f8b1ba592489a94a969f0 (diff)
parentbdabcd9627b216aa64027657fe9295725804e6de (diff)
downloadpx4-firmware-5111249eb8356b7b05f216b3cf7e6172f659c5c3.tar.gz
px4-firmware-5111249eb8356b7b05f216b3cf7e6172f659c5c3.tar.bz2
px4-firmware-5111249eb8356b7b05f216b3cf7e6172f659c5c3.zip
Merge branch 'master' of github.com:PX4/Firmware into fixedwing_l1
Diffstat (limited to 'makefiles')
-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.
#