Makefile获取git comiit提交
#获取branch名
GIT_BRANCH=$(shell git branch | sed -n '/\* /s///p')
$(info GIT_REVISION = $(GIT_BRANCH))
#获取commit
GIT_REVISION = $(shell git show -s --pretty=format:%H)
$(info GIT_REVISION = $(GIT_REVISION))
# CFLAGS += -DQXWZ_SDK_BUILD_INFO="\"$(GIT_REVISION)"\"