Merge pull request #71 from orbea/git_version

Allow setting GIT_VERSION
This commit is contained in:
Twinaphex 2017-01-20 01:47:27 +01:00 committed by GitHub
commit 0b7d87c97a
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ endif
TARGET_NAME := genesis_plus_gx
LIBM := -lm
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif

View File

@ -2,7 +2,7 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
LOCAL_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif