diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-10-30 22:35:09 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-10-30 22:35:09 +0100 |
commit | 0eabacd251074b4e8da8a72173e73ef48b58132a (patch) | |
tree | 93eb8a62ddf83dedb876ffe36b592160cd6b30cd /Makefile | |
parent | 727342a5168bb23501c50287acb8edfe6d80e157 (diff) | |
parent | dc80d6745e94df71d351f4338c610f910c2a4e94 (diff) | |
download | px4-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-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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)))) |