diff options
author | Nan Zhang <nanzhang@google.com> | 2018-02-22 02:21:31 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-02-22 02:21:31 +0000 |
commit | 83c538af116fdf3a469e20cd7a4836eef47583eb (patch) | |
tree | 75941dc3ef31d75c11020199a2102100cb4cb0e6 | |
parent | 6b71a5be88a68534ee8dfacf559980eafebb95db (diff) | |
parent | 9d03eaf85ca79a871f59311168a5b1cba6725198 (diff) | |
download | TV-83c538af116fdf3a469e20cd7a4836eef47583eb.tar.gz |
Use HAS_BUILD_NUMBER to check engineering build
am: 9d03eaf85c
Change-Id: I739920bcae682c950a135f51f499d5ee6bd28567
-rw-r--r-- | version.mk | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -58,7 +58,7 @@ code_version_build := 007 ##################################################### ##################################################### # Collect automatic version code parameters -ifneq "" "$(filter eng.%,$(BUILD_NUMBER))" +ifeq ($(strip $(HAS_BUILD_NUMBER)),false) # This is an eng build base_version_buildtype := 0 else @@ -94,12 +94,12 @@ version_code_package := $(code_version_major)$(base_version_minor)$(code_version # and hh is the git hash # On eng builds, the BUILD_NUMBER has the user and timestamp inline ifdef TARGET_BUILD_APPS -ifneq "" "$(filter eng.%,$(BUILD_NUMBER))" +ifeq ($(strip $(HAS_BUILD_NUMBER)),false) git_hash := $(shell git --git-dir $(LOCAL_PATH)/.git log -n 1 --pretty=format:%h) date_string := $(shell date +%Y-%m-%d) version_name_package := $(base_version_major).$(base_version_minor).$(code_version_build) (eng.$(USER).$(git_hash).$(date_string)-$(base_version_arch)$(base_version_density)) else - version_name_package := $(base_version_major).$(base_version_minor).$(code_version_build) ($(BUILD_NUMBER)-$(base_version_arch)$(base_version_density)) + version_name_package := $(base_version_major).$(base_version_minor).$(code_version_build) ($(BUILD_NUMBER_FROM_FILE)-$(base_version_arch)$(base_version_density)) endif else # !TARGET_BUILD_APPS version_name_package := $(base_version_major).$(base_version_minor).$(code_version_build) |