From 6fa82b50f49d092ae0c3db360ce89d6810469578 Mon Sep 17 00:00:00 2001 From: wei qiao Date: Tue, 1 Dec 2015 14:20:55 +0800 Subject: [PATCH] make USER limited to 6 characters when generating BF_BUILD_NUMBER the value of USER is dependent from the compilation environment,so when compiling one same device project, the BUILD_FINGERPRINT may exceed 91 characters because ${USER} is long, but with short ${USER} the compilation can pass. Signed-off-by: wei qiao Change-Id: Ia0f7dfa9cf7d605f1f2603f70dd0e6877482eb8a --- core/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Makefile b/core/Makefile index ad577a949..67ad22856 100644 --- a/core/Makefile +++ b/core/Makefile @@ -122,7 +122,7 @@ ifeq (,$(strip $(BUILD_FINGERPRINT))) 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) + BF_BUILD_NUMBER := $(shell echo $${USER:0:6})$(shell $(DATE) +%m%d%H%M) else BF_BUILD_NUMBER := $(BUILD_NUMBER) endif