Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6cf099b authored by Colin Cross's avatar Colin Cross
Browse files

Use new naming scheme for TARGET_PLATFORM_VERSION

Replace the current naming scheme for TARGET_PLATFORM_VERSION
(O, ODR1, OMR1, P) with one that matches the user-visible
branch version (OPR1, OPD1, OPM1, PPR1).

Temporarily map P -> PPR1 to decouple this change from updating
the build servers.

Bug: 34972208
Test: m -j TARGET_PLATFORM_VERSION=PPR1
Test: m -j TARGET_PLATFORM_VERSION=P
Change-Id: Ib00b13abe79a744e344b88bb1d800524ab09d585
(cherry picked from commit d8bc190a)
parent 3973c2af
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -52,17 +52,22 @@ endef
#$(warning $(call find_and_earlier,A B C,D))

define version-list
$(1) $(1)DR1 $(1)DR2 $(1)MR1 $(1)MR2
$(1)PR1 $(1)PD1 $(1)PD2 $(1)PM1 $(1)PM2
endef

ALL_VERSIONS := O P
ALL_VERSIONS := $(foreach v,$(ALL_VERSIONS),$(call version-list,$(v)))

# HACK: forward P to PPR1 until the build server config is updated
ifeq (P,$(TARGET_PLATFORM_VERSION))
  TARGET_PLATFORM_VERSION := PPR1
endif

ifeq (,$(TARGET_PLATFORM_VERSION))
  # Default targeted platform version
  # TODO: PLATFORM_VERSION, PLATFORM_SDK_VERSION, etc. should be conditional
  # on this
  TARGET_PLATFORM_VERSION := O
  TARGET_PLATFORM_VERSION := OPR1
endif

ifeq (,$(filter $(ALL_VERSIONS), $(TARGET_PLATFORM_VERSION)))
@@ -91,11 +96,11 @@ $(foreach v,$(ENABLED_VERSIONS), \
# When you change PLATFORM_VERSION for a given PLATFORM_SDK_VERSION
# please add that PLATFORM_VERSION to the following text file:
# cts/tests/tests/os/assets/platform_versions.txt
PLATFORM_VERSION.O := O
PLATFORM_VERSION.OPR1 := O

# This is the current development code-name, if the build is not a final
# release build.  If this is a final release build, it is simply "REL".
PLATFORM_VERSION_CODENAME.O := O
PLATFORM_VERSION_CODENAME.OPR1 := O

ifndef PLATFORM_VERSION
  PLATFORM_VERSION := $(PLATFORM_VERSION.$(TARGET_PLATFORM_VERSION))