Add mbtk_source git commit info

Change-Id: I9867613657db269bba81d28c4b3712062ae41bdd
diff --git a/mbtk/Make.defines b/mbtk/Make.defines
index 83117fa..056fc5f 100755
--- a/mbtk/Make.defines
+++ b/mbtk/Make.defines
@@ -68,7 +68,12 @@
 	-DNDEBUG \

 	-UDEBUG \

 	-D_FORTIFY_SOURCE=2 \

-	-D_GNU_SOURCE

+	-D_GNU_SOURCE \

+	-DMBTK_BUILD_TIME=\""$(shell date +%Y/%m/%d\ %H:%M:%S)\"" \

+	-DMBTK_BUILD_GIT=\""$(shell git log | grep commit | head -1 | cut -d ' ' -f 2)\""

+

+#MBTK_BUILD_GIT="$(shell git log | grep commit | head -1 | cut -d ' ' -f 2)"

+#$(info MBTK_BUILD_GIT=$(MBTK_BUILD_GIT))

 

 #$(info TOPDIR=$(TOPDIR))

 # BUILD_PROJECT=$(shell cat $(ROOT)/../build_version | grep PROJECT | cut -d '=' -f 2)

@@ -162,6 +167,10 @@
 DEFINE += -DMBTK_DUMP_SUPPORT

 endif

 

+ifeq ($(MBTK_SOURCE_VERSION), 2)
+DEFINE += -DMBTK_SOURCE_VERSION_2

+endif

+

 LIB_DIR = \

 	-L$(OUT_DIR)/lib