aboutsummaryrefslogtreecommitdiff
path: root/Makefile
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 /Makefile
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 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 83a6f3ce9..0a8562251 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,17 @@ export PX4_BASE := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))/
include $(PX4_BASE)makefiles/setup.mk
#
+# Get a version string provided by git
+# This assumes that git command is available and that
+# the directory holding this file also contains .git directory
+#
+GIT_DESC := $(shell git log -1 --pretty=format:%H)
+ifneq ($(words $(GIT_DESC)),1)
+ GIT_DESC := "unknown_git_version"
+endif
+export GIT_DESC
+
+#
# Canned firmware configurations that we (know how to) build.
#
KNOWN_CONFIGS := $(subst config_,,$(basename $(notdir $(wildcard $(PX4_MK_DIR)config_*.mk))))