Merge "Introduce ro.build.version.known_codenames sysprop." am: ac87c5e13a
am: 206f023938
am: f20c233bad
Original change: https://android-review.googlesource.com/c/platform/build/+/1976678 Change-Id: I2360bda8d8cc85e759f7870dea0ef09753551f5d
This commit is contained in:
commit
e4814b895b
4 changed files with 18 additions and 0 deletions
|
@ -270,6 +270,7 @@ $(gen_from_buildinfo_sh): $(INTERNAL_BUILD_ID_MAKEFILE) $(API_FINGERPRINT) | $(B
|
|||
PLATFORM_PREVIEW_SDK_FINGERPRINT="$$(cat $(API_FINGERPRINT))" \
|
||||
PLATFORM_VERSION_CODENAME="$(PLATFORM_VERSION_CODENAME)" \
|
||||
PLATFORM_VERSION_ALL_CODENAMES="$(PLATFORM_VERSION_ALL_CODENAMES)" \
|
||||
PLATFORM_VERSION_KNOWN_CODENAMES="$(PLATFORM_VERSION_KNOWN_CODENAMES)" \
|
||||
PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION="$(PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION)" \
|
||||
BUILD_VERSION_TAGS="$(BUILD_VERSION_TAGS)" \
|
||||
$(if $(OEM_THUMBPRINT_PROPERTIES),BUILD_THUMBPRINT="$(BUILD_THUMBPRINT_FROM_FILE)") \
|
||||
|
|
|
@ -79,6 +79,13 @@ PLATFORM_SDK_EXTENSION_VERSION := 1
|
|||
PLATFORM_BASE_SDK_EXTENSION_VERSION := 1
|
||||
.KATI_READONLY := PLATFORM_BASE_SDK_EXTENSION_VERSION
|
||||
|
||||
# This is are all known codenames starting from Q.
|
||||
PLATFORM_VERSION_KNOWN_CODENAMES := Q R S Sv2 Tiramisu
|
||||
# Convert from space separated list to comma separated
|
||||
PLATFORM_VERSION_KNOWN_CODENAMES := \
|
||||
$(call normalize-comma-list,$(PLATFORM_VERSION_KNOWN_CODENAMES))
|
||||
.KATI_READONLY := PLATFORM_VERSION_KNOWN_CODENAMES
|
||||
|
||||
ifndef PLATFORM_SECURITY_PATCH
|
||||
# Used to indicate the security patch that has been applied to the device.
|
||||
# It must signify that the build includes all security patches issued up through the designated Android Public Security Bulletin.
|
||||
|
|
|
@ -90,6 +90,15 @@ endif
|
|||
PLATFORM_VERSION_CODENAME \
|
||||
PLATFORM_VERSION_ALL_CODENAMES
|
||||
|
||||
ifneq (REL,$(PLATFORM_VERSION_CODENAME))
|
||||
codenames := \
|
||||
$(subst $(comma),$(space),$(strip $(PLATFORM_VERSION_KNOWN_CODENAMES)))
|
||||
ifeq ($(filter $(PLATFORM_VERSION_CODENAME),$(codenames)),)
|
||||
$(error '$(PLATFORM_VERSION_CODENAME)' is not in '$(codenames)'. \
|
||||
Add PLATFORM_VERSION_CODENAME to PLATFORM_VERSION_KNOWN_CODENAMES)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef PLATFORM_VERSION
|
||||
ifeq (REL,$(PLATFORM_VERSION_CODENAME))
|
||||
PLATFORM_VERSION := $(PLATFORM_VERSION_LAST_STABLE)
|
||||
|
|
|
@ -16,6 +16,7 @@ echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION"
|
|||
echo "ro.build.version.preview_sdk_fingerprint=$PLATFORM_PREVIEW_SDK_FINGERPRINT"
|
||||
echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME"
|
||||
echo "ro.build.version.all_codenames=$PLATFORM_VERSION_ALL_CODENAMES"
|
||||
echo "ro.build.version.known_codenames=$PLATFORM_VERSION_KNOWN_CODENAMES"
|
||||
echo "ro.build.version.release=$PLATFORM_VERSION_LAST_STABLE"
|
||||
echo "ro.build.version.release_or_codename=$PLATFORM_VERSION"
|
||||
echo "ro.build.version.security_patch=$PLATFORM_SECURITY_PATCH"
|
||||
|
|
Loading…
Reference in a new issue