summaryrefslogtreecommitdiffstats
path: root/firmware/usb-dfu-project/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb-dfu-project/Makefile')
-rw-r--r--firmware/usb-dfu-project/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/usb-dfu-project/Makefile b/firmware/usb-dfu-project/Makefile
index d41be19..174105a 100644
--- a/firmware/usb-dfu-project/Makefile
+++ b/firmware/usb-dfu-project/Makefile
@@ -69,6 +69,10 @@ include $(AT91LIB)/boards/$(BOARD)/board.mak
BIN = bin
OBJ = obj
+GIT_REVISION := $(shell ../../git-version-gen ../../.tarball_version)
+ASFLAGS += -DGIT_REVISION=\"$(GIT_REVISION)\"
+CFLAGS += -DGIT_REVISION=\"$(GIT_REVISION)\"
+
#-------------------------------------------------------------------------------
# Tools
#-------------------------------------------------------------------------------