Trim down BUILD_FINGERPRINT.
Bug: 15593959 Change-Id: I90161045b5d5f2df726a4f69740f0875c8bfc69f
This commit is contained in:
parent
624220c18a
commit
5181a36bce
|
@ -111,7 +111,14 @@ $(INSTALLED_BUILD_PROP_TARGET): PRIVATE_BUILD_DESC := $(build_desc)
|
|||
|
||||
# The string used to uniquely identify this build; used by the OTA server.
|
||||
ifeq (,$(strip $(BUILD_FINGERPRINT)))
|
||||
BUILD_FINGERPRINT := $(PRODUCT_BRAND)/$(TARGET_PRODUCT)/$(TARGET_DEVICE):$(PLATFORM_VERSION)/$(BUILD_ID)/$(BUILD_NUMBER):$(TARGET_BUILD_VARIANT)/$(BUILD_VERSION_TAGS)
|
||||
ifneq ($(filter eng.%,$(BUILD_NUMBER)),)
|
||||
# Trim down BUILD_FINGERPRINT: the default BUILD_NUMBER makes it easily exceed
|
||||
# the Android system property length limit (PROPERTY_VALUE_MAX=92).
|
||||
BF_BUILD_NUMBER := $(USER)$(shell date +%m%d%H%M)
|
||||
else
|
||||
BF_BUILD_NUMBER := $(BUILD_NUMBER)
|
||||
endif
|
||||
BUILD_FINGERPRINT := $(PRODUCT_BRAND)/$(TARGET_PRODUCT)/$(TARGET_DEVICE):$(PLATFORM_VERSION)/$(BUILD_ID)/$(BF_BUILD_NUMBER):$(TARGET_BUILD_VARIANT)/$(BUILD_VERSION_TAGS)
|
||||
endif
|
||||
ifneq ($(words $(BUILD_FINGERPRINT)),1)
|
||||
$(error BUILD_FINGERPRINT cannot contain spaces: "$(BUILD_FINGERPRINT)")
|
||||
|
|
|
@ -18,6 +18,6 @@
|
|||
# (like "CRB01"). It must be a single word, and is
|
||||
# capitalized by convention.
|
||||
|
||||
BUILD_ID := OPENMASTER
|
||||
BUILD_ID := AOSP
|
||||
|
||||
DISPLAY_BUILD_NUMBER := true
|
||||
|
|
Loading…
Reference in New Issue