From 8bc96ac57174692b7604ddc65e22dea6ddb1824b Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 11 Sep 2013 13:44:54 +0900 Subject: Add version string --- common.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common.mk') diff --git a/common.mk b/common.mk index 47d5c852f3..64ef86c404 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 -- cgit v1.2.3