From cbea1e9852d6fa73ad34e8fb5177b4a5e7b0a668 Mon Sep 17 00:00:00 2001
From: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Date: Mon, 12 Jun 2017 20:14:48 +0200
Subject: Shorten the build fingerprint

It can exceed its maximum length for devices with longer codenames
(e.g. espressowifi). PRODUCT_BRAND is set to "Android" which doesn't
say much and TARGET_VENDOR_DEVICE_NAME should always have the same
codename that is already set in the build target
TARGET_VENDOR_PRODUCT_NAME, so no information is lost.

Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
---
 core/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'core')

diff --git a/core/Makefile b/core/Makefile
index 0f67080..b4d478d 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -151,7 +151,7 @@ ifeq (,$(strip $(BUILD_FINGERPRINT)))
   else
     BF_BUILD_NUMBER := $(BUILD_NUMBER)
   endif
-  BUILD_FINGERPRINT := $(PRODUCT_BRAND)/$(TARGET_VENDOR_PRODUCT_NAME)/$(TARGET_VENDOR_DEVICE_NAME):$(PLATFORM_VERSION)/$(BUILD_ID)/$(TARGET_VENDOR_RELEASE_BUILD_ID):$(TARGET_BUILD_VARIANT)/$(BUILD_VERSION_TAGS)
+  BUILD_FINGERPRINT := $(TARGET_VENDOR_PRODUCT_NAME):$(PLATFORM_VERSION)/$(BUILD_ID)/$(TARGET_VENDOR_RELEASE_BUILD_ID):$(TARGET_BUILD_VARIANT)/$(BUILD_VERSION_TAGS)
 endif
 ifneq ($(words $(BUILD_FINGERPRINT)),1)
   $(error BUILD_FINGERPRINT cannot contain spaces: "$(BUILD_FINGERPRINT)")
-- 
cgit v1.1