aboutsummaryrefslogtreecommitdiffstats
path: root/common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index 47d5c852f..64ef86c40 100644
--- a/common.mk
+++ b/common.mk
@@ -69,5 +69,9 @@ ifdef BACKLIGHT_ENABLE
endif
+# Version string
+OPT_DEFS += -DVERSION=$(shell (git describe --dirty || echo 'unknown') 2> /dev/null)
+
+
# Search Path
VPATH += $(TOP_DIR)/common