aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlina Kalyakina <alinakalyakina@google.com>2023-10-05 09:55:37 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-10-05 09:55:37 +0000
commit618d848f0de602eadd2b045c184ddb1d08825e85 (patch)
treeabcfa71fad0e51ac51222fb91c8de33288c9d01e
parent44a7f9ccb3f85b23ed3db6bc212cd8ec06da39e4 (diff)
parentd637190debde0f11aacd2f9e196c65e4ac8c8fc6 (diff)
downloadbuild-618d848f0de602eadd2b045c184ddb1d08825e85.tar.gz
Merge "Revert "Filter REL out of PLATFORM_VERSION_ALL_CODENAMES."" into main
-rw-r--r--core/version_util.mk15
1 files changed, 2 insertions, 13 deletions
diff --git a/core/version_util.mk b/core/version_util.mk
index f08b2f94c7..dca7482ef5 100644
--- a/core/version_util.mk
+++ b/core/version_util.mk
@@ -79,23 +79,12 @@ PLATFORM_VERSION_ALL_CODENAMES :=
# Build a list of all active code names. Avoid duplicates, and stop when we
# reach a codename that matches PLATFORM_VERSION_CODENAME (anything beyond
# that is not included in our build).
-#
-# REL is filtered out of the list. The codename of the current release is
-# replaced by "REL" when the build is configured as a release rather than a
-# preview. For example, PLATFORM_VERSION_CODENAME.UpsideDownCake will be "REL"
-# rather than UpsideDownCake in a -next target when the upcoming release is
-# UpsideDownCake. "REL" shouldn't really be treated as a codename though. It's a
-# placeholder to indicate that the build is a release and so doesn't really have
-# a codename. The list of all codenames ends up in
-# ro.build.version.all_codenames, and also ends up feeding the logic for stub
-# generation in soong, neither of which are places that should include REL.
_versions_in_target := \
$(call find_and_earlier,$(ALL_VERSIONS),$(TARGET_PLATFORM_VERSION))
$(foreach version,$(_versions_in_target),\
$(eval _codename := $(PLATFORM_VERSION_CODENAME.$(version)))\
- $(if $(filter REL,$(_codename)),,\
- $(if $(filter $(_codename),$(PLATFORM_VERSION_ALL_CODENAMES)),,\
- $(eval PLATFORM_VERSION_ALL_CODENAMES += $(_codename)))))
+ $(if $(filter $(_codename),$(PLATFORM_VERSION_ALL_CODENAMES)),,\
+ $(eval PLATFORM_VERSION_ALL_CODENAMES += $(_codename))))
# And the list of actually all the codenames that are in preview. The
# ALL_CODENAMES variable is sort of a lie for historical reasons and only