The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2008 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | # |
| 18 | # Handle various build version information. |
| 19 | # |
| 20 | # Guarantees that the following are defined: |
| 21 | # PLATFORM_VERSION |
| 22 | # PLATFORM_SDK_VERSION |
Dianne Hackborn | 9bd5404 | 2009-05-15 18:01:20 -0700 | [diff] [blame] | 23 | # PLATFORM_VERSION_CODENAME |
| 24 | # DEFAULT_APP_TARGET_SDK |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 25 | # BUILD_ID |
| 26 | # BUILD_NUMBER |
Adam Seaton | 8d4fac7 | 2016-07-29 11:52:35 -0700 | [diff] [blame] | 27 | # PLATFORM_SECURITY_PATCH |
Justin Yun | 2a233b3 | 2017-12-07 17:08:19 +0900 | [diff] [blame] | 28 | # PLATFORM_VNDK_VERSION |
Jiyong Park | 641b6cc | 2018-01-15 14:48:40 +0900 | [diff] [blame] | 29 | # PLATFORM_SYSTEMSDK_VERSIONS |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 30 | # |
| 31 | |
| 32 | # Look for an optional file containing overrides of the defaults, |
| 33 | # but don't cry if we don't find it. We could just use -include, but |
| 34 | # the build.prop target also wants INTERNAL_BUILD_ID_MAKEFILE to be set |
| 35 | # if the file exists. |
| 36 | # |
| 37 | INTERNAL_BUILD_ID_MAKEFILE := $(wildcard $(BUILD_SYSTEM)/build_id.mk) |
Colin Cross | 63fe36a | 2017-02-21 17:23:02 -0800 | [diff] [blame] | 38 | ifdef INTERNAL_BUILD_ID_MAKEFILE |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 39 | include $(INTERNAL_BUILD_ID_MAKEFILE) |
| 40 | endif |
| 41 | |
Colin Cross | 5e9ba92 | 2021-05-13 16:31:13 -0700 | [diff] [blame] | 42 | DEFAULT_PLATFORM_VERSION := TP1A |
Sasha Smundak | cda1f37 | 2021-09-15 16:12:05 -0700 | [diff] [blame^] | 43 | .KATI_READONLY := DEFAULT_PLATFORM_VERSION |
Colin Cross | 5e9ba92 | 2021-05-13 16:31:13 -0700 | [diff] [blame] | 44 | MIN_PLATFORM_VERSION := TP1A |
| 45 | MAX_PLATFORM_VERSION := TP1A |
Colin Cross | 8873713 | 2017-03-21 17:41:03 -0700 | [diff] [blame] | 46 | |
Dianne Hackborn | 25648e6 | 2019-10-22 15:58:17 -0700 | [diff] [blame] | 47 | # The last stable version name of the platform that was released. During |
| 48 | # development, this stays at that previous version, while the codename indicates |
| 49 | # further work based on the previous version. |
Jeff Sharkey | fcc2b97 | 2021-05-27 08:37:15 -0600 | [diff] [blame] | 50 | PLATFORM_VERSION_LAST_STABLE := 12 |
Dianne Hackborn | 25648e6 | 2019-10-22 15:58:17 -0700 | [diff] [blame] | 51 | .KATI_READONLY := PLATFORM_VERSION_LAST_STABLE |
Colin Cross | ca0afa3 | 2017-02-17 16:28:16 -0800 | [diff] [blame] | 52 | |
Ian Pedowitz | 0a06d8b | 2017-04-18 23:25:01 +0000 | [diff] [blame] | 53 | # These are the current development codenames, if the build is not a final |
| 54 | # release build. If this is a final release build, it is simply "REL". |
Colin Cross | a45d0c8 | 2021-07-20 14:11:20 -0700 | [diff] [blame] | 55 | PLATFORM_VERSION_CODENAME.TP1A := Tiramisu |
Colin Cross | ca0afa3 | 2017-02-17 16:28:16 -0800 | [diff] [blame] | 56 | |
Dianne Hackborn | 25648e6 | 2019-10-22 15:58:17 -0700 | [diff] [blame] | 57 | ifndef PLATFORM_SDK_VERSION |
| 58 | # This is the canonical definition of the SDK version, which defines |
| 59 | # the set of APIs and functionality available in the platform. It |
| 60 | # is a single integer that increases monotonically as updates to |
| 61 | # the SDK are released. It should only be incremented when the APIs for |
| 62 | # the new release are frozen (so that developers don't write apps against |
| 63 | # intermediate builds). During development, this number remains at the |
| 64 | # SDK version the branch is based on and PLATFORM_VERSION_CODENAME holds |
| 65 | # the code-name of the new development work. |
| 66 | |
| 67 | # When you increment the PLATFORM_SDK_VERSION please ensure you also |
| 68 | # clear out the following text file of all older PLATFORM_VERSION's: |
| 69 | # cts/tests/tests/os/assets/platform_versions.txt |
Jeff Sharkey | fcc2b97 | 2021-05-27 08:37:15 -0600 | [diff] [blame] | 70 | PLATFORM_SDK_VERSION := 31 |
Dianne Hackborn | 25648e6 | 2019-10-22 15:58:17 -0700 | [diff] [blame] | 71 | endif |
| 72 | .KATI_READONLY := PLATFORM_SDK_VERSION |
| 73 | |
Anton Hansson | 9b8082c | 2021-08-26 17:04:01 +0100 | [diff] [blame] | 74 | # This is the sdk extension version of this tree. |
Sasha Smundak | cda1f37 | 2021-09-15 16:12:05 -0700 | [diff] [blame^] | 75 | PLATFORM_SDK_EXTENSION_VERSION := 1 |
| 76 | .KATI_READONLY := PLATFORM_SDK_EXTENSION_VERSION |
Anton Hansson | 9b8082c | 2021-08-26 17:04:01 +0100 | [diff] [blame] | 77 | |
| 78 | # This is the sdk extension version that PLATFORM_SDK_VERSION ships with. |
Sasha Smundak | cda1f37 | 2021-09-15 16:12:05 -0700 | [diff] [blame^] | 79 | PLATFORM_BASE_SDK_EXTENSION_VERSION := 0 |
| 80 | .KATI_READONLY := PLATFORM_BASE_SDK_EXTENSION_VERSION |
Jiyong Park | 641b6cc | 2018-01-15 14:48:40 +0900 | [diff] [blame] | 81 | |
Colin Cross | 63fe36a | 2017-02-21 17:23:02 -0800 | [diff] [blame] | 82 | ifndef PLATFORM_SECURITY_PATCH |
Adam Seaton | c63e429 | 2016-08-25 19:46:06 -0700 | [diff] [blame] | 83 | # Used to indicate the security patch that has been applied to the device. |
| 84 | # It must signify that the build includes all security patches issued up through the designated Android Public Security Bulletin. |
| 85 | # It must be of the form "YYYY-MM-DD" on production devices. |
| 86 | # It must match one of the Android Security Patch Level strings of the Public Security Bulletins. |
| 87 | # If there is no $PLATFORM_SECURITY_PATCH set, keep it empty. |
Sasha Smundak | cda1f37 | 2021-09-15 16:12:05 -0700 | [diff] [blame^] | 88 | PLATFORM_SECURITY_PATCH := 2021-09-05 |
Dan Willemsen | ccc933e | 2015-08-11 15:25:12 -0700 | [diff] [blame] | 89 | endif |
| 90 | |
Sasha Smundak | cda1f37 | 2021-09-15 16:12:05 -0700 | [diff] [blame^] | 91 | include $(BUILD_SYSTEM)/version_util.mk |