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 |
Colin Cross | a492544 | 2022-02-28 18:01:35 -0800 | [diff] [blame] | 22 | # PLATFORM_DISPLAY_VERSION |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 23 | # PLATFORM_SDK_VERSION |
Dianne Hackborn | 9bd5404 | 2009-05-15 18:01:20 -0700 | [diff] [blame] | 24 | # PLATFORM_VERSION_CODENAME |
| 25 | # DEFAULT_APP_TARGET_SDK |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 26 | # BUILD_ID |
| 27 | # BUILD_NUMBER |
Adam Seaton | 8d4fac7 | 2016-07-29 11:52:35 -0700 | [diff] [blame] | 28 | # PLATFORM_SECURITY_PATCH |
Justin Yun | 2a233b3 | 2017-12-07 17:08:19 +0900 | [diff] [blame] | 29 | # PLATFORM_VNDK_VERSION |
Jiyong Park | 641b6cc | 2018-01-15 14:48:40 +0900 | [diff] [blame] | 30 | # PLATFORM_SYSTEMSDK_VERSIONS |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 31 | # |
| 32 | |
| 33 | # Look for an optional file containing overrides of the defaults, |
| 34 | # but don't cry if we don't find it. We could just use -include, but |
| 35 | # the build.prop target also wants INTERNAL_BUILD_ID_MAKEFILE to be set |
| 36 | # if the file exists. |
| 37 | # |
| 38 | INTERNAL_BUILD_ID_MAKEFILE := $(wildcard $(BUILD_SYSTEM)/build_id.mk) |
Colin Cross | 63fe36a | 2017-02-21 17:23:02 -0800 | [diff] [blame] | 39 | ifdef INTERNAL_BUILD_ID_MAKEFILE |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 40 | include $(INTERNAL_BUILD_ID_MAKEFILE) |
| 41 | endif |
| 42 | |
Joe Onorato | 22b1c02 | 2023-06-05 16:43:55 -0700 | [diff] [blame^] | 43 | # Set release configuration. The default resides in build/release/build_flags.mk. |
Colin Cross | 3a445ab | 2022-06-08 10:01:22 -0700 | [diff] [blame] | 44 | MIN_PLATFORM_VERSION := UP1A |
Colin Cross | 6e40ac2 | 2023-01-18 13:47:11 -0800 | [diff] [blame] | 45 | MAX_PLATFORM_VERSION := VP1A |
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. |
Alex Buynytskyy | e7dc473 | 2023-04-04 19:52:21 +0000 | [diff] [blame] | 50 | PLATFORM_VERSION_LAST_STABLE := 14 |
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 | 29919e3 | 2022-02-24 13:40:46 -0800 | [diff] [blame] | 55 | PLATFORM_VERSION_CODENAME.UP1A := UpsideDownCake |
Colin Cross | 6e40ac2 | 2023-01-18 13:47:11 -0800 | [diff] [blame] | 56 | PLATFORM_VERSION_CODENAME.VP1A := VanillaIceCream |
Colin Cross | ca0afa3 | 2017-02-17 16:28:16 -0800 | [diff] [blame] | 57 | |
Colin Cross | a492544 | 2022-02-28 18:01:35 -0800 | [diff] [blame] | 58 | # This is the user-visible version. In a final release build it should |
| 59 | # be empty to use PLATFORM_VERSION as the user-visible version. For |
| 60 | # a preview release it can be set to a user-friendly value like `12 Preview 1` |
| 61 | PLATFORM_DISPLAY_VERSION := |
| 62 | |
Dianne Hackborn | 25648e6 | 2019-10-22 15:58:17 -0700 | [diff] [blame] | 63 | ifndef PLATFORM_SDK_VERSION |
| 64 | # This is the canonical definition of the SDK version, which defines |
| 65 | # the set of APIs and functionality available in the platform. It |
| 66 | # is a single integer that increases monotonically as updates to |
| 67 | # the SDK are released. It should only be incremented when the APIs for |
| 68 | # the new release are frozen (so that developers don't write apps against |
| 69 | # intermediate builds). During development, this number remains at the |
| 70 | # SDK version the branch is based on and PLATFORM_VERSION_CODENAME holds |
| 71 | # the code-name of the new development work. |
| 72 | |
| 73 | # When you increment the PLATFORM_SDK_VERSION please ensure you also |
| 74 | # clear out the following text file of all older PLATFORM_VERSION's: |
| 75 | # cts/tests/tests/os/assets/platform_versions.txt |
Alex Buynytskyy | e7dc473 | 2023-04-04 19:52:21 +0000 | [diff] [blame] | 76 | PLATFORM_SDK_VERSION := 34 |
Dianne Hackborn | 25648e6 | 2019-10-22 15:58:17 -0700 | [diff] [blame] | 77 | endif |
| 78 | .KATI_READONLY := PLATFORM_SDK_VERSION |
| 79 | |
Anton Hansson | 2ea7e6e | 2021-08-26 17:04:01 +0100 | [diff] [blame] | 80 | # This is the sdk extension version of this tree. |
Alex Buynytskyy | e7dc473 | 2023-04-04 19:52:21 +0000 | [diff] [blame] | 81 | PLATFORM_SDK_EXTENSION_VERSION := 7 |
Sasha Smundak | 0447622 | 2021-09-05 19:06:18 -0700 | [diff] [blame] | 82 | .KATI_READONLY := PLATFORM_SDK_EXTENSION_VERSION |
Anton Hansson | 2ea7e6e | 2021-08-26 17:04:01 +0100 | [diff] [blame] | 83 | |
| 84 | # This is the sdk extension version that PLATFORM_SDK_VERSION ships with. |
MÃ¥rten Kongstad | 4410420 | 2022-09-19 12:36:32 +0200 | [diff] [blame] | 85 | PLATFORM_BASE_SDK_EXTENSION_VERSION := $(PLATFORM_SDK_EXTENSION_VERSION) |
Sasha Smundak | 0447622 | 2021-09-05 19:06:18 -0700 | [diff] [blame] | 86 | .KATI_READONLY := PLATFORM_BASE_SDK_EXTENSION_VERSION |
Jiyong Park | 641b6cc | 2018-01-15 14:48:40 +0900 | [diff] [blame] | 87 | |
satayev | da1e41d | 2022-03-16 14:27:01 +0000 | [diff] [blame] | 88 | # This are all known codenames. |
| 89 | PLATFORM_VERSION_KNOWN_CODENAMES := \ |
| 90 | Base Base11 Cupcake Donut Eclair Eclair01 EclairMr1 Froyo Gingerbread GingerbreadMr1 \ |
| 91 | Honeycomb HoneycombMr1 HoneycombMr2 IceCreamSandwich IceCreamSandwichMr1 \ |
| 92 | JellyBean JellyBeanMr1 JellyBeanMr2 Kitkat KitkatWatch Lollipop LollipopMr1 M N NMr1 O OMr1 P \ |
Colin Cross | 6e40ac2 | 2023-01-18 13:47:11 -0800 | [diff] [blame] | 93 | Q R S Sv2 Tiramisu UpsideDownCake VanillaIceCream |
satayev | da1e41d | 2022-03-16 14:27:01 +0000 | [diff] [blame] | 94 | |
satayev | 2d94586 | 2022-02-09 21:59:28 +0000 | [diff] [blame] | 95 | # Convert from space separated list to comma separated |
| 96 | PLATFORM_VERSION_KNOWN_CODENAMES := \ |
| 97 | $(call normalize-comma-list,$(PLATFORM_VERSION_KNOWN_CODENAMES)) |
| 98 | .KATI_READONLY := PLATFORM_VERSION_KNOWN_CODENAMES |
| 99 | |
Colin Cross | 63fe36a | 2017-02-21 17:23:02 -0800 | [diff] [blame] | 100 | ifndef PLATFORM_SECURITY_PATCH |
Adam Seaton | c63e429 | 2016-08-25 19:46:06 -0700 | [diff] [blame] | 101 | # Used to indicate the security patch that has been applied to the device. |
| 102 | # It must signify that the build includes all security patches issued up through the designated Android Public Security Bulletin. |
| 103 | # It must be of the form "YYYY-MM-DD" on production devices. |
| 104 | # It must match one of the Android Security Patch Level strings of the Public Security Bulletins. |
| 105 | # If there is no $PLATFORM_SECURITY_PATCH set, keep it empty. |
Steve Berbary | d6c119b | 2023-05-13 22:22:21 +0000 | [diff] [blame] | 106 | PLATFORM_SECURITY_PATCH := 2023-07-05 |
Dan Willemsen | ccc933e | 2015-08-11 15:25:12 -0700 | [diff] [blame] | 107 | endif |
| 108 | |
Sasha Smundak | 0447622 | 2021-09-05 19:06:18 -0700 | [diff] [blame] | 109 | include $(BUILD_SYSTEM)/version_util.mk |