config: Remove custom LINEAGE_EXTRAVERSION logic
This isn't used in official builds. TARGET_UNOFFICIAL_BUILD_ID is enough for people that make unofficial builds. Change-Id: Ib6d1acb4ab8d7401ea0577f439e8288aed3f9bbb
This commit is contained in:
parent
14a3b4ddd0
commit
30744444c4
1 changed files with 0 additions and 26 deletions
|
@ -19,32 +19,6 @@ endif
|
|||
|
||||
# Filter out random types, so it'll reset to UNOFFICIAL
|
||||
ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(LINEAGE_BUILDTYPE)),)
|
||||
LINEAGE_BUILDTYPE :=
|
||||
endif
|
||||
|
||||
ifdef LINEAGE_BUILDTYPE
|
||||
ifneq ($(LINEAGE_BUILDTYPE), SNAPSHOT)
|
||||
ifdef LINEAGE_EXTRAVERSION
|
||||
# Force build type to EXPERIMENTAL
|
||||
LINEAGE_BUILDTYPE := EXPERIMENTAL
|
||||
# Remove leading dash from LINEAGE_EXTRAVERSION
|
||||
LINEAGE_EXTRAVERSION := $(shell echo $(LINEAGE_EXTRAVERSION) | sed 's/-//')
|
||||
# Add leading dash to LINEAGE_EXTRAVERSION
|
||||
LINEAGE_EXTRAVERSION := -$(LINEAGE_EXTRAVERSION)
|
||||
endif
|
||||
else
|
||||
ifndef LINEAGE_EXTRAVERSION
|
||||
# Force build type to EXPERIMENTAL, SNAPSHOT mandates a tag
|
||||
LINEAGE_BUILDTYPE := EXPERIMENTAL
|
||||
else
|
||||
# Remove leading dash from LINEAGE_EXTRAVERSION
|
||||
LINEAGE_EXTRAVERSION := $(shell echo $(LINEAGE_EXTRAVERSION) | sed 's/-//')
|
||||
# Add leading dash to LINEAGE_EXTRAVERSION
|
||||
LINEAGE_EXTRAVERSION := -$(LINEAGE_EXTRAVERSION)
|
||||
endif
|
||||
endif
|
||||
else
|
||||
# If LINEAGE_BUILDTYPE is not defined, set to UNOFFICIAL
|
||||
LINEAGE_BUILDTYPE := UNOFFICIAL
|
||||
LINEAGE_EXTRAVERSION :=
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue