5a77fbf008
Merged-In: I017a5d9c3cd227e0b1a4deaa8dface646bc0a887 Merged-In: I71f542d511cf6397d84d40b1fb688c307cdd386e Change-Id: Id5d2b7b2b18ae1a1919a53121c06fb309e5b2eee
93 lines
3.6 KiB
Makefile
93 lines
3.6 KiB
Makefile
#
|
|
# 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
|
|
# PLATFORM_SDK_VERSION
|
|
# PLATFORM_VERSION_CODENAME
|
|
# DEFAULT_APP_TARGET_SDK
|
|
# BUILD_ID
|
|
# BUILD_NUMBER
|
|
# PLATFORM_SECURITY_PATCH
|
|
# PLATFORM_VNDK_VERSION
|
|
# PLATFORM_SYSTEMSDK_VERSIONS
|
|
#
|
|
|
|
# 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)
|
|
ifdef INTERNAL_BUILD_ID_MAKEFILE
|
|
include $(INTERNAL_BUILD_ID_MAKEFILE)
|
|
endif
|
|
|
|
DEFAULT_PLATFORM_VERSION := TP1A
|
|
.KATI_READONLY := DEFAULT_PLATFORM_VERSION
|
|
MIN_PLATFORM_VERSION := TP1A
|
|
MAX_PLATFORM_VERSION := TP1A
|
|
|
|
# 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.
|
|
PLATFORM_VERSION_LAST_STABLE := 12
|
|
.KATI_READONLY := PLATFORM_VERSION_LAST_STABLE
|
|
|
|
# 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".
|
|
PLATFORM_VERSION_CODENAME.TP1A := Tiramisu
|
|
|
|
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
|
|
PLATFORM_SDK_VERSION := 31
|
|
endif
|
|
.KATI_READONLY := PLATFORM_SDK_VERSION
|
|
|
|
# This is the sdk extension version of this tree.
|
|
PLATFORM_SDK_EXTENSION_VERSION := 1
|
|
.KATI_READONLY := PLATFORM_SDK_EXTENSION_VERSION
|
|
|
|
# This is the sdk extension version that PLATFORM_SDK_VERSION ships with.
|
|
PLATFORM_BASE_SDK_EXTENSION_VERSION := 1
|
|
.KATI_READONLY := PLATFORM_BASE_SDK_EXTENSION_VERSION
|
|
|
|
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.
|
|
# 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.
|
|
PLATFORM_SECURITY_PATCH := 2022-01-05
|
|
endif
|
|
.KATI_READONLY := PLATFORM_SECURITY_PATCH
|
|
|
|
include $(BUILD_SYSTEM)/version_util.mk
|
|
|