2009-03-04 04:28:42 +01:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Handle various build version information.
|
|
|
|
#
|
|
|
|
# Guarantees that the following are defined:
|
|
|
|
# PLATFORM_VERSION
|
2022-03-01 03:01:35 +01:00
|
|
|
# PLATFORM_DISPLAY_VERSION
|
2009-03-04 04:28:42 +01:00
|
|
|
# PLATFORM_SDK_VERSION
|
2009-05-16 03:01:20 +02:00
|
|
|
# PLATFORM_VERSION_CODENAME
|
|
|
|
# DEFAULT_APP_TARGET_SDK
|
2009-03-04 04:28:42 +01:00
|
|
|
# BUILD_ID
|
|
|
|
# BUILD_NUMBER
|
2016-07-29 20:52:35 +02:00
|
|
|
# PLATFORM_SECURITY_PATCH
|
2017-12-07 09:08:19 +01:00
|
|
|
# PLATFORM_VNDK_VERSION
|
2018-01-15 06:48:40 +01:00
|
|
|
# PLATFORM_SYSTEMSDK_VERSIONS
|
2009-03-04 04:28:42 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# Look for an optional file containing overrides of the defaults,
|
|
|
|
# but don't cry if we don't find it. We could just use -include, but
|
|
|
|
# the build.prop target also wants INTERNAL_BUILD_ID_MAKEFILE to be set
|
|
|
|
# if the file exists.
|
|
|
|
#
|
|
|
|
INTERNAL_BUILD_ID_MAKEFILE := $(wildcard $(BUILD_SYSTEM)/build_id.mk)
|
2017-02-22 02:23:02 +01:00
|
|
|
ifdef INTERNAL_BUILD_ID_MAKEFILE
|
2009-03-04 04:28:42 +01:00
|
|
|
include $(INTERNAL_BUILD_ID_MAKEFILE)
|
|
|
|
endif
|
|
|
|
|
2022-02-24 22:40:46 +01:00
|
|
|
DEFAULT_PLATFORM_VERSION := UP1A
|
2021-09-06 04:06:18 +02:00
|
|
|
.KATI_READONLY := DEFAULT_PLATFORM_VERSION
|
2022-06-08 19:01:22 +02:00
|
|
|
MIN_PLATFORM_VERSION := UP1A
|
2022-02-24 22:40:46 +01:00
|
|
|
MAX_PLATFORM_VERSION := UP1A
|
2017-03-22 01:41:03 +01:00
|
|
|
|
2019-10-23 00:58:17 +02:00
|
|
|
# The last stable version name of the platform that was released. During
|
|
|
|
# development, this stays at that previous version, while the codename indicates
|
|
|
|
# further work based on the previous version.
|
2022-04-05 01:35:14 +02:00
|
|
|
PLATFORM_VERSION_LAST_STABLE := 13
|
2019-10-23 00:58:17 +02:00
|
|
|
.KATI_READONLY := PLATFORM_VERSION_LAST_STABLE
|
2017-02-18 01:28:16 +01:00
|
|
|
|
2017-04-19 01:25:01 +02:00
|
|
|
# These are the current development codenames, if the build is not a final
|
|
|
|
# release build. If this is a final release build, it is simply "REL".
|
2022-02-24 22:40:46 +01:00
|
|
|
PLATFORM_VERSION_CODENAME.UP1A := UpsideDownCake
|
2017-02-18 01:28:16 +01:00
|
|
|
|
2022-03-01 03:01:35 +01:00
|
|
|
# This is the user-visible version. In a final release build it should
|
|
|
|
# be empty to use PLATFORM_VERSION as the user-visible version. For
|
|
|
|
# a preview release it can be set to a user-friendly value like `12 Preview 1`
|
|
|
|
PLATFORM_DISPLAY_VERSION :=
|
|
|
|
|
2019-10-23 00:58:17 +02:00
|
|
|
ifndef PLATFORM_SDK_VERSION
|
|
|
|
# This is the canonical definition of the SDK version, which defines
|
|
|
|
# the set of APIs and functionality available in the platform. It
|
|
|
|
# is a single integer that increases monotonically as updates to
|
|
|
|
# the SDK are released. It should only be incremented when the APIs for
|
|
|
|
# the new release are frozen (so that developers don't write apps against
|
|
|
|
# intermediate builds). During development, this number remains at the
|
|
|
|
# SDK version the branch is based on and PLATFORM_VERSION_CODENAME holds
|
|
|
|
# the code-name of the new development work.
|
|
|
|
|
|
|
|
# When you increment the PLATFORM_SDK_VERSION please ensure you also
|
|
|
|
# clear out the following text file of all older PLATFORM_VERSION's:
|
|
|
|
# cts/tests/tests/os/assets/platform_versions.txt
|
2022-04-05 01:35:14 +02:00
|
|
|
PLATFORM_SDK_VERSION := 33
|
2019-10-23 00:58:17 +02:00
|
|
|
endif
|
|
|
|
.KATI_READONLY := PLATFORM_SDK_VERSION
|
|
|
|
|
2021-08-26 18:04:01 +02:00
|
|
|
# This is the sdk extension version of this tree.
|
2022-11-01 18:00:22 +01:00
|
|
|
PLATFORM_SDK_EXTENSION_VERSION := 5
|
2021-09-06 04:06:18 +02:00
|
|
|
.KATI_READONLY := PLATFORM_SDK_EXTENSION_VERSION
|
2021-08-26 18:04:01 +02:00
|
|
|
|
|
|
|
# This is the sdk extension version that PLATFORM_SDK_VERSION ships with.
|
2022-09-19 12:36:32 +02:00
|
|
|
PLATFORM_BASE_SDK_EXTENSION_VERSION := $(PLATFORM_SDK_EXTENSION_VERSION)
|
2021-09-06 04:06:18 +02:00
|
|
|
.KATI_READONLY := PLATFORM_BASE_SDK_EXTENSION_VERSION
|
2018-01-15 06:48:40 +01:00
|
|
|
|
2022-03-16 15:27:01 +01:00
|
|
|
# This are all known codenames.
|
|
|
|
PLATFORM_VERSION_KNOWN_CODENAMES := \
|
|
|
|
Base Base11 Cupcake Donut Eclair Eclair01 EclairMr1 Froyo Gingerbread GingerbreadMr1 \
|
|
|
|
Honeycomb HoneycombMr1 HoneycombMr2 IceCreamSandwich IceCreamSandwichMr1 \
|
|
|
|
JellyBean JellyBeanMr1 JellyBeanMr2 Kitkat KitkatWatch Lollipop LollipopMr1 M N NMr1 O OMr1 P \
|
2022-02-24 22:40:46 +01:00
|
|
|
Q R S Sv2 Tiramisu UpsideDownCake
|
2022-03-16 15:27:01 +01:00
|
|
|
|
2022-02-09 22:59:28 +01:00
|
|
|
# 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
|
|
|
|
|
2017-02-22 02:23:02 +01:00
|
|
|
ifndef PLATFORM_SECURITY_PATCH
|
2016-08-26 04:46:06 +02:00
|
|
|
# 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.
|
|
|
|
# It must be of the form "YYYY-MM-DD" on production devices.
|
|
|
|
# It must match one of the Android Security Patch Level strings of the Public Security Bulletins.
|
|
|
|
# If there is no $PLATFORM_SECURITY_PATCH set, keep it empty.
|
2023-01-13 19:17:59 +01:00
|
|
|
PLATFORM_SECURITY_PATCH := 2023-03-05
|
2015-08-13 01:11:20 +02:00
|
|
|
endif
|
|
|
|
|
2021-09-06 04:06:18 +02:00
|
|
|
include $(BUILD_SYSTEM)/version_util.mk
|