config: Remove custom LINEAGE_DISPLAY_VERSION logic for !testkey
This isn't used on official builds and it doesn't make sense to keep complicated custom logic for display version. Change-Id: I3928d6e9dc932589868542e916ebd659265d6c54
This commit is contained in:
@@ -59,18 +59,3 @@ LINEAGE_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(LINEAGE_B
|
||||
|
||||
# Display version
|
||||
LINEAGE_DISPLAY_VERSION := $(LINEAGE_VERSION)
|
||||
|
||||
ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),)
|
||||
ifneq ($(PRODUCT_DEFAULT_DEV_CERTIFICATE),build/target/product/security/testkey)
|
||||
ifneq ($(LINEAGE_BUILDTYPE), UNOFFICIAL)
|
||||
ifneq ($(LINEAGE_EXTRAVERSION),)
|
||||
# Remove leading dash from LINEAGE_EXTRAVERSION
|
||||
LINEAGE_EXTRAVERSION := $(shell echo $(LINEAGE_EXTRAVERSION) | sed 's/-//')
|
||||
TARGET_VENDOR_RELEASE_BUILD_ID := $(LINEAGE_EXTRAVERSION)
|
||||
else
|
||||
TARGET_VENDOR_RELEASE_BUILD_ID := $(LINEAGE_BUILD_DATE)
|
||||
endif
|
||||
LINEAGE_DISPLAY_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(TARGET_VENDOR_RELEASE_BUILD_ID)-$(LINEAGE_BUILD)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
Reference in New Issue
Block a user