diff options
author | tstellanova <tstellanova+github@gmail.com> | 2013-09-06 10:18:08 -0700 |
---|---|---|
committer | tstellanova <tstellanova+github@gmail.com> | 2013-09-06 10:18:08 -0700 |
commit | 23a355644b69585d11011954f1d4cbc9e04a8f3b (patch) | |
tree | b175d820943e67fbe90aca48187229e3a49d542f /makefiles/firmware.mk | |
parent | 3d821b8131f762836051b01bc8b2af145d99ebee (diff) | |
download | px4-firmware-23a355644b69585d11011954f1d4cbc9e04a8f3b.tar.gz px4-firmware-23a355644b69585d11011954f1d4cbc9e04a8f3b.tar.bz2 px4-firmware-23a355644b69585d11011954f1d4cbc9e04a8f3b.zip |
grab the git hash and inject it into every log file header
Diffstat (limited to 'makefiles/firmware.mk')
-rw-r--r-- | makefiles/firmware.mk | 8 |
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. # |