The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2007 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 | |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 17 | # Variables that are meant to hold only a single value. |
| 18 | # - The value set in the current makefile takes precedence over inherited values |
| 19 | # - If multiple inherited makefiles set the var, the first-inherited value wins |
| 20 | _product_single_value_vars := |
| 21 | |
| 22 | # Variables that are lists of values. |
| 23 | _product_list_vars := |
| 24 | |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 25 | _product_single_value_vars += PRODUCT_NAME |
| 26 | _product_single_value_vars += PRODUCT_MODEL |
Prashant Patil | 7d9cda1 | 2022-09-28 15:52:08 +0100 | [diff] [blame] | 27 | _product_single_value_vars += PRODUCT_NAME_FOR_ATTESTATION |
| 28 | _product_single_value_vars += PRODUCT_MODEL_FOR_ATTESTATION |
Lokesh Kumar Goel | c4baa3a | 2024-02-09 01:05:51 +0000 | [diff] [blame] | 29 | _product_single_value_vars += PRODUCT_BASE_OS |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 30 | |
Juan Yescas | e5c0c17 | 2023-04-07 23:46:43 -0700 | [diff] [blame] | 31 | # Defines the ELF segment alignment for binaries (executables and shared libraries). |
| 32 | # The ELF segment alignment has to be a PAGE_SIZE multiple. For example, if |
| 33 | # PRODUCT_MAX_PAGE_SIZE_SUPPORTED=65536, the possible values for PAGE_SIZE could be |
| 34 | # 4096, 16384 and 65536. |
| 35 | _product_single_value_vars += PRODUCT_MAX_PAGE_SIZE_SUPPORTED |
Steven Moreland | 52c2371 | 2024-05-31 22:29:25 +0000 | [diff] [blame] | 36 | _product_single_value_vars += PRODUCT_CHECK_PREBUILT_MAX_PAGE_SIZE |
Juan Yescas | e5c0c17 | 2023-04-07 23:46:43 -0700 | [diff] [blame] | 37 | |
Vilas Bhat | d3ad962 | 2024-03-26 04:09:17 +0000 | [diff] [blame] | 38 | # Boolean variable determining if AOSP relies on bionic's PAGE_SIZE macro. |
Vilas Bhat | 01e2b98 | 2023-12-04 22:34:42 +0000 | [diff] [blame] | 39 | _product_single_value_vars += PRODUCT_NO_BIONIC_PAGE_SIZE_MACRO |
Juan Yescas | 1083f36 | 2023-07-14 10:42:31 -0700 | [diff] [blame] | 40 | |
Juan Yescas | e5c0c17 | 2023-04-07 23:46:43 -0700 | [diff] [blame] | 41 | # The resource configuration options to use for this product. |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 42 | _product_list_vars += PRODUCT_LOCALES |
| 43 | _product_list_vars += PRODUCT_AAPT_CONFIG |
Sasha Smundak | 0301d64 | 2020-11-11 14:41:08 -0800 | [diff] [blame] | 44 | _product_single_value_vars += PRODUCT_AAPT_PREF_CONFIG |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 45 | _product_list_vars += PRODUCT_AAPT_PREBUILT_DPI |
| 46 | _product_list_vars += PRODUCT_HOST_PACKAGES |
| 47 | _product_list_vars += PRODUCT_PACKAGES |
| 48 | _product_list_vars += PRODUCT_PACKAGES_DEBUG |
| 49 | _product_list_vars += PRODUCT_PACKAGES_DEBUG_ASAN |
Florian Mayer | 201eb3b | 2023-03-22 16:14:17 -0700 | [diff] [blame] | 50 | _product_list_vars += PRODUCT_PACKAGES_ARM64 |
Devin Moore | 64c2559 | 2023-05-31 21:45:09 +0000 | [diff] [blame] | 51 | |
| 52 | # packages that are added to PRODUCT_PACKAGES based on the PRODUCT_SHIPPING_API_LEVEL |
| 53 | # These are only added if the shipping API level is that level or lower |
| 54 | _product_list_vars += PRODUCT_PACKAGES_SHIPPING_API_LEVEL_29 |
| 55 | _product_list_vars += PRODUCT_PACKAGES_SHIPPING_API_LEVEL_33 |
| 56 | _product_list_vars += PRODUCT_PACKAGES_SHIPPING_API_LEVEL_34 |
| 57 | |
Kavi Gupta | 7185f8c | 2019-06-11 10:27:47 -0700 | [diff] [blame] | 58 | # Packages included only for eng/userdebug builds, when building with EMMA_INSTRUMENT=true |
| 59 | _product_list_vars += PRODUCT_PACKAGES_DEBUG_JAVA_COVERAGE |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 60 | _product_list_vars += PRODUCT_PACKAGES_ENG |
| 61 | _product_list_vars += PRODUCT_PACKAGES_TESTS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 62 | |
| 63 | # The device that this product maps to. |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 64 | _product_single_value_vars += PRODUCT_DEVICE |
| 65 | _product_single_value_vars += PRODUCT_MANUFACTURER |
| 66 | _product_single_value_vars += PRODUCT_BRAND |
Prashant Patil | 7d9cda1 | 2022-09-28 15:52:08 +0100 | [diff] [blame] | 67 | _product_single_value_vars += PRODUCT_BRAND_FOR_ATTESTATION |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 68 | |
| 69 | # These PRODUCT_SYSTEM_* flags, if defined, are used in place of the |
| 70 | # corresponding PRODUCT_* flags for the sysprops on /system. |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 71 | _product_single_value_vars += \ |
Anton Hansson | ee4c970 | 2018-12-21 15:36:00 +0000 | [diff] [blame] | 72 | PRODUCT_SYSTEM_NAME \ |
| 73 | PRODUCT_SYSTEM_MODEL \ |
| 74 | PRODUCT_SYSTEM_DEVICE \ |
| 75 | PRODUCT_SYSTEM_BRAND \ |
| 76 | PRODUCT_SYSTEM_MANUFACTURER \ |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 77 | |
Jiyong Park | eb49b34 | 2020-05-29 17:50:03 +0900 | [diff] [blame] | 78 | # PRODUCT_<PARTITION>_PROPERTIES are lists of property assignments |
| 79 | # that go to <partition>/build.prop. Each property assignment is |
| 80 | # "key = value" with zero or more whitespace characters on either |
| 81 | # side of the '='. |
| 82 | _product_list_vars += \ |
| 83 | PRODUCT_SYSTEM_PROPERTIES \ |
| 84 | PRODUCT_SYSTEM_EXT_PROPERTIES \ |
| 85 | PRODUCT_VENDOR_PROPERTIES \ |
| 86 | PRODUCT_ODM_PROPERTIES \ |
| 87 | PRODUCT_PRODUCT_PROPERTIES |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 88 | |
Jiyong Park | eb49b34 | 2020-05-29 17:50:03 +0900 | [diff] [blame] | 89 | # TODO(b/117892318) deprecate these: |
| 90 | # ... in favor or PRODUCT_SYSTEM_PROPERTIES |
| 91 | _product_list_vars += PRODUCT_SYSTEM_DEFAULT_PROPERTIES |
| 92 | # ... in favor of PRODUCT_VENDOR_PROPERTIES |
| 93 | _product_list_vars += PRODUCT_PROPERTY_OVERRIDES |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 94 | _product_list_vars += PRODUCT_DEFAULT_PROPERTY_OVERRIDES |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 95 | |
Jiyong Park | eb49b34 | 2020-05-29 17:50:03 +0900 | [diff] [blame] | 96 | # TODO(b/117892318) consider deprecating these too |
| 97 | _product_list_vars += PRODUCT_SYSTEM_PROPERTY_BLACKLIST |
| 98 | _product_list_vars += PRODUCT_VENDOR_PROPERTY_BLACKLIST |
Anton Hansson | 879b007 | 2019-05-13 18:06:45 +0100 | [diff] [blame] | 99 | |
| 100 | # The characteristics of the product, which among other things is passed to aapt |
| 101 | _product_single_value_vars += PRODUCT_CHARACTERISTICS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 102 | |
| 103 | # A list of words like <source path>:<destination path>[:<owner>]. |
| 104 | # The file at the source path should be copied to the destination path |
| 105 | # when building this product. <destination path> is relative to |
| 106 | # $(PRODUCT_OUT), so it should look like, e.g., "system/etc/file.xml". |
| 107 | # The rules for these copy steps are defined in build/make/core/Makefile. |
| 108 | # The optional :<owner> is used to indicate the owner of a vendor file. |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 109 | _product_list_vars += PRODUCT_COPY_FILES |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 110 | |
| 111 | # The OTA key(s) specified by the product config, if any. The names |
| 112 | # of these keys are stored in the target-files zip so that post-build |
| 113 | # signing tools can substitute them for the test key embedded by |
| 114 | # default. |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 115 | _product_list_vars += PRODUCT_OTA_PUBLIC_KEYS |
Jacky Liu | beb0b69 | 2021-12-29 16:29:05 +0800 | [diff] [blame] | 116 | _product_list_vars += PRODUCT_EXTRA_OTA_KEYS |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 117 | _product_list_vars += PRODUCT_EXTRA_RECOVERY_KEYS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 118 | |
| 119 | # Should we use the default resources or add any product specific overlays |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 120 | _product_list_vars += PRODUCT_PACKAGE_OVERLAYS |
| 121 | _product_list_vars += DEVICE_PACKAGE_OVERLAYS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 122 | |
| 123 | # Resource overlay list which must be excluded from enforcing RRO. |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 124 | _product_list_vars += PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 125 | |
| 126 | # Package list to apply enforcing RRO. |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 127 | _product_list_vars += PRODUCT_ENFORCE_RRO_TARGETS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 128 | |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 129 | _product_list_vars += PRODUCT_SDK_ATREE_FILES |
| 130 | _product_list_vars += PRODUCT_SDK_ADDON_NAME |
| 131 | _product_list_vars += PRODUCT_SDK_ADDON_COPY_FILES |
| 132 | _product_list_vars += PRODUCT_SDK_ADDON_COPY_MODULES |
| 133 | _product_list_vars += PRODUCT_SDK_ADDON_DOC_MODULES |
| 134 | _product_list_vars += PRODUCT_SDK_ADDON_SYS_IMG_SOURCE_PROP |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 135 | |
| 136 | # which Soong namespaces to export to Make |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 137 | _product_list_vars += PRODUCT_SOONG_NAMESPACES |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 138 | |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 139 | _product_list_vars += PRODUCT_DEFAULT_WIFI_CHANNELS |
Sasha Smundak | 0301d64 | 2020-11-11 14:41:08 -0800 | [diff] [blame] | 140 | _product_single_value_vars += PRODUCT_DEFAULT_DEV_CERTIFICATE |
Remi NGUYEN VAN | 87d0f27 | 2019-08-07 18:13:33 +0900 | [diff] [blame] | 141 | _product_list_vars += PRODUCT_MAINLINE_SEPOLICY_DEV_CERTIFICATES |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 142 | _product_list_vars += PRODUCT_RESTRICT_VENDOR_FILES |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 143 | |
| 144 | # The list of product-specific kernel header dirs |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 145 | _product_list_vars += PRODUCT_VENDOR_KERNEL_HEADERS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 146 | |
Martin Stjernholm | 743513c | 2021-07-05 20:53:57 +0100 | [diff] [blame] | 147 | # A list of module names in BOOTCLASSPATH (jar files). Each module may be |
| 148 | # prefixed with "<apex>:", which identifies the APEX that provides it. APEXes |
| 149 | # are identified by their "variant" names, i.e. their `apex_name` values in |
| 150 | # Soong, which default to the `name` values. The prefix can also be "platform:" |
| 151 | # or "system_ext:", and defaults to "platform:" if left out. See the long |
| 152 | # comment in build/soong/java/dexprepopt_bootjars.go for details. |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 153 | _product_list_vars += PRODUCT_BOOT_JARS |
Po Hu | 012118d | 2020-03-13 14:14:27 +0800 | [diff] [blame] | 154 | |
Martin Stjernholm | 743513c | 2021-07-05 20:53:57 +0100 | [diff] [blame] | 155 | # A list of extra BOOTCLASSPATH jars (to be appended after common jars), |
| 156 | # following the same format as PRODUCT_BOOT_JARS. Products that include |
| 157 | # device-specific makefiles before AOSP makefiles should use this instead of |
| 158 | # PRODUCT_BOOT_JARS, so that device-specific jars go after common jars. |
Po Hu | 012118d | 2020-03-13 14:14:27 +0800 | [diff] [blame] | 159 | _product_list_vars += PRODUCT_BOOT_JARS_EXTRA |
| 160 | |
Jiakai Zhang | 7bdb2b3 | 2023-07-12 16:55:10 +0100 | [diff] [blame] | 161 | # List of jars to be included in the ART boot image for testing. |
| 162 | _product_list_vars += PRODUCT_TEST_ONLY_ART_BOOT_IMAGE_JARS |
| 163 | |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 164 | _product_list_vars += PRODUCT_SYSTEM_SERVER_APPS |
Jiakai Zhang | 44ffb21 | 2021-10-28 14:37:20 +0000 | [diff] [blame] | 165 | # List of system_server classpath jars on the platform. |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 166 | _product_list_vars += PRODUCT_SYSTEM_SERVER_JARS |
Jiakai Zhang | 44ffb21 | 2021-10-28 14:37:20 +0000 | [diff] [blame] | 167 | # List of system_server classpath jars delivered via apex. Format = <apex name>:<jar name>. |
satayev | a85d522 | 2021-07-27 12:32:40 +0100 | [diff] [blame] | 168 | _product_list_vars += PRODUCT_APEX_SYSTEM_SERVER_JARS |
Jiakai Zhang | 44ffb21 | 2021-10-28 14:37:20 +0000 | [diff] [blame] | 169 | # List of jars on the platform that system_server loads dynamically using separate classloaders. |
| 170 | _product_list_vars += PRODUCT_STANDALONE_SYSTEM_SERVER_JARS |
| 171 | # List of jars delivered via apex that system_server loads dynamically using separate classloaders. |
| 172 | # Format = <apex name>:<jar name> |
| 173 | _product_list_vars += PRODUCT_APEX_STANDALONE_SYSTEM_SERVER_JARS |
Ulya Trafimovich | 40e55c2 | 2020-03-27 12:12:59 +0000 | [diff] [blame] | 174 | # If true, then suboptimal order of system server jars does not cause an error. |
Sasha Smundak | 0301d64 | 2020-11-11 14:41:08 -0800 | [diff] [blame] | 175 | _product_single_value_vars += PRODUCT_BROKEN_SUBOPTIMAL_ORDER_OF_SYSTEM_SERVER_JARS |
Ulya Trafimovich | 7693ec7 | 2021-10-26 12:50:27 +0100 | [diff] [blame] | 176 | # If true, then system server jars defined in Android.mk are supported. |
| 177 | _product_single_value_vars += PRODUCT_BROKEN_DEPRECATED_MK_SYSTEM_SERVER_JARS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 178 | |
Rock.Yeh | 2a703ce | 2020-04-22 17:01:10 +0800 | [diff] [blame] | 179 | # Additional system server jars to be appended at the end of the common list. |
| 180 | # This is necessary to avoid jars reordering due to makefile inheritance order. |
| 181 | _product_list_vars += PRODUCT_SYSTEM_SERVER_JARS_EXTRA |
| 182 | |
Ulya Trafimovich | 1a3b145 | 2021-03-22 17:24:18 +0000 | [diff] [blame] | 183 | # Set to true to disable <uses-library> checks for a product. |
| 184 | _product_list_vars += PRODUCT_BROKEN_VERIFY_USES_LIBRARIES |
| 185 | |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 186 | _product_list_vars += PRODUCT_DEXPREOPT_SPEED_APPS |
| 187 | _product_list_vars += PRODUCT_LOADED_BY_PRIVILEGED_MODULES |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 188 | _product_single_value_vars += PRODUCT_VBOOT_SIGNING_KEY |
| 189 | _product_single_value_vars += PRODUCT_VBOOT_SIGNING_SUBKEY |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 190 | _product_single_value_vars += PRODUCT_SYSTEM_VERITY_PARTITION |
| 191 | _product_single_value_vars += PRODUCT_VENDOR_VERITY_PARTITION |
| 192 | _product_single_value_vars += PRODUCT_PRODUCT_VERITY_PARTITION |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 193 | _product_single_value_vars += PRODUCT_SYSTEM_EXT_VERITY_PARTITION |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 194 | _product_single_value_vars += PRODUCT_ODM_VERITY_PARTITION |
Yifan Hong | cfb917a | 2020-05-07 14:58:20 -0700 | [diff] [blame] | 195 | _product_single_value_vars += PRODUCT_VENDOR_DLKM_VERITY_PARTITION |
Yifan Hong | f496f1b | 2020-07-15 16:52:59 -0700 | [diff] [blame] | 196 | _product_single_value_vars += PRODUCT_ODM_DLKM_VERITY_PARTITION |
Ramji Jiyani | 13a4137 | 2022-01-27 07:05:08 +0000 | [diff] [blame] | 197 | _product_single_value_vars += PRODUCT_SYSTEM_DLKM_VERITY_PARTITION |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 198 | _product_single_value_vars += PRODUCT_SYSTEM_SERVER_DEBUG_INFO |
| 199 | _product_single_value_vars += PRODUCT_OTHER_JAVA_DEBUG_INFO |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 200 | |
| 201 | # Per-module dex-preopt configs. |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 202 | _product_list_vars += PRODUCT_DEX_PREOPT_MODULE_CONFIGS |
Sasha Smundak | 0301d64 | 2020-11-11 14:41:08 -0800 | [diff] [blame] | 203 | _product_single_value_vars += PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 204 | _product_list_vars += PRODUCT_DEX_PREOPT_DEFAULT_FLAGS |
Sasha Smundak | 0301d64 | 2020-11-11 14:41:08 -0800 | [diff] [blame] | 205 | _product_single_value_vars += PRODUCT_DEX_PREOPT_BOOT_FLAGS |
| 206 | _product_single_value_vars += PRODUCT_DEX_PREOPT_PROFILE_DIR |
| 207 | _product_single_value_vars += PRODUCT_DEX_PREOPT_GENERATE_DM_FILES |
| 208 | _product_single_value_vars += PRODUCT_DEX_PREOPT_NEVER_ALLOW_STRIPPING |
| 209 | _product_single_value_vars += PRODUCT_DEX_PREOPT_RESOLVE_STARTUP_STRINGS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 210 | |
| 211 | # Boot image options. |
Martin Stjernholm | 91964c8 | 2021-11-05 18:00:22 +0000 | [diff] [blame] | 212 | _product_list_vars += PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 213 | _product_single_value_vars += \ |
Howard Chen | 95339b0 | 2021-09-29 17:28:48 +0800 | [diff] [blame] | 214 | PRODUCT_EXPORT_BOOT_IMAGE_TO_DIST \ |
Mathieu Chartier | a61acf6 | 2017-06-28 18:23:37 -0700 | [diff] [blame] | 215 | PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE \ |
Calin Juravle | cdff6b1 | 2019-05-01 15:34:47 -0700 | [diff] [blame] | 216 | PRODUCT_USES_DEFAULT_ART_CONFIG \ |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 217 | |
Sasha Smundak | 0301d64 | 2020-11-11 14:41:08 -0800 | [diff] [blame] | 218 | _product_single_value_vars += PRODUCT_SYSTEM_SERVER_COMPILER_FILTER |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 219 | # Per-module sanitizer configs |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 220 | _product_list_vars += PRODUCT_SANITIZER_MODULE_CONFIGS |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 221 | _product_single_value_vars += PRODUCT_SYSTEM_BASE_FS_PATH |
| 222 | _product_single_value_vars += PRODUCT_VENDOR_BASE_FS_PATH |
| 223 | _product_single_value_vars += PRODUCT_PRODUCT_BASE_FS_PATH |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 224 | _product_single_value_vars += PRODUCT_SYSTEM_EXT_BASE_FS_PATH |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 225 | _product_single_value_vars += PRODUCT_ODM_BASE_FS_PATH |
Yifan Hong | cfb917a | 2020-05-07 14:58:20 -0700 | [diff] [blame] | 226 | _product_single_value_vars += PRODUCT_VENDOR_DLKM_BASE_FS_PATH |
Yifan Hong | f496f1b | 2020-07-15 16:52:59 -0700 | [diff] [blame] | 227 | _product_single_value_vars += PRODUCT_ODM_DLKM_BASE_FS_PATH |
Ramji Jiyani | 13a4137 | 2022-01-27 07:05:08 +0000 | [diff] [blame] | 228 | _product_single_value_vars += PRODUCT_SYSTEM_DLKM_BASE_FS_PATH |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 229 | |
| 230 | # The first API level this product shipped with |
| 231 | _product_single_value_vars += PRODUCT_SHIPPING_API_LEVEL |
| 232 | |
Justin Yun | 000e31c | 2024-02-28 20:54:14 +0900 | [diff] [blame] | 233 | # The first vendor API level this product shipped with |
| 234 | _product_single_value_vars += PRODUCT_SHIPPING_VENDOR_API_LEVEL |
| 235 | |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 236 | _product_list_vars += VENDOR_PRODUCT_RESTRICT_VENDOR_FILES |
| 237 | _product_list_vars += VENDOR_EXCEPTION_MODULES |
| 238 | _product_list_vars += VENDOR_EXCEPTION_PATHS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 239 | # Whether the product wants to ship libartd. For rules and meaning, see art/Android.mk. |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 240 | _product_single_value_vars += PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 241 | |
| 242 | # Make this art variable visible to soong_config.mk. |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 243 | _product_single_value_vars += PRODUCT_ART_USE_READ_BARRIER |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 244 | |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 245 | # Add reserved headroom to a system image. |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 246 | _product_single_value_vars += PRODUCT_SYSTEM_HEADROOM |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 247 | |
| 248 | # Whether to save disk space by minimizing java debug info |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 249 | _product_single_value_vars += PRODUCT_MINIMIZE_JAVA_DEBUG_INFO |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 250 | |
| 251 | # Whether any paths are excluded from sanitization when SANITIZE_TARGET=integer_overflow |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 252 | _product_list_vars += PRODUCT_INTEGER_OVERFLOW_EXCLUDE_PATHS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 253 | |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 254 | _product_single_value_vars += PRODUCT_ADB_KEYS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 255 | |
| 256 | # Whether any paths should have CFI enabled for components |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 257 | _product_list_vars += PRODUCT_CFI_INCLUDE_PATHS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 258 | |
| 259 | # Whether any paths are excluded from sanitization when SANITIZE_TARGET=cfi |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 260 | _product_list_vars += PRODUCT_CFI_EXCLUDE_PATHS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 261 | |
Hang Lu | e235ded | 2022-08-29 14:42:34 +0800 | [diff] [blame] | 262 | # Whether any paths should have HWASan enabled for components |
| 263 | _product_list_vars += PRODUCT_HWASAN_INCLUDE_PATHS |
| 264 | |
Tomislav Novak | d8febc9 | 2023-08-22 10:51:36 -0700 | [diff] [blame] | 265 | # Whether any paths are excluded from sanitization when SANITIZE_TARGET=hwaddress |
| 266 | _product_list_vars += PRODUCT_HWASAN_EXCLUDE_PATHS |
| 267 | |
Evgenii Stepanov | 80b53b8 | 2023-06-08 15:40:39 -0700 | [diff] [blame] | 268 | # Whether any paths should have Memtag_heap enabled for components |
| 269 | _product_list_vars += PRODUCT_MEMTAG_HEAP_ASYNC_INCLUDE_PATHS |
| 270 | _product_list_vars += PRODUCT_MEMTAG_HEAP_ASYNC_DEFAULT_INCLUDE_PATHS |
| 271 | _product_list_vars += PRODUCT_MEMTAG_HEAP_SYNC_INCLUDE_PATHS |
| 272 | _product_list_vars += PRODUCT_MEMTAG_HEAP_SYNC_DEFAULT_INCLUDE_PATHS |
| 273 | _product_list_vars += PRODUCT_MEMTAG_HEAP_EXCLUDE_PATHS |
| 274 | |
| 275 | # Whether this product wants to start with an empty list of default memtag_heap include paths |
| 276 | _product_single_value_vars += PRODUCT_MEMTAG_HEAP_SKIP_DEFAULT_PATHS |
| 277 | |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 278 | # Whether the Scudo hardened allocator is disabled platform-wide |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 279 | _product_single_value_vars += PRODUCT_DISABLE_SCUDO |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 280 | |
Isaac Chen | e972350 | 2019-05-06 16:55:48 +0800 | [diff] [blame] | 281 | # List of extra VNDK versions to be included |
| 282 | _product_list_vars += PRODUCT_EXTRA_VNDK_VERSIONS |
| 283 | |
Mohammad Samiul Islam | c87781a | 2020-11-25 16:00:38 +0000 | [diff] [blame] | 284 | # Whether APEX should be compressed or not |
| 285 | _product_single_value_vars += PRODUCT_COMPRESSED_APEX |
| 286 | |
Justin Yun | f19d840 | 2019-11-18 19:43:41 +0900 | [diff] [blame] | 287 | # VNDK version of product partition. It can be 'current' if the product |
| 288 | # partitions uses PLATFORM_VNDK_VERSION. |
GeQi | 6e44e3d | 2020-09-04 13:44:09 +0800 | [diff] [blame] | 289 | _product_single_value_vars += PRODUCT_PRODUCT_VNDK_VERSION |
Justin Yun | f19d840 | 2019-11-18 19:43:41 +0900 | [diff] [blame] | 290 | |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 291 | _product_single_value_vars += PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS |
| 292 | _product_single_value_vars += PRODUCT_ENFORCE_ARTIFACT_SYSTEM_CERTIFICATE_REQUIREMENT |
Colin Cross | c3ad804 | 2020-06-11 11:25:05 -0700 | [diff] [blame] | 293 | _product_list_vars += PRODUCT_ARTIFACT_SYSTEM_CERTIFICATE_REQUIREMENT_ALLOW_LIST |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 294 | _product_list_vars += PRODUCT_ARTIFACT_PATH_REQUIREMENT_HINT |
Colin Cross | c3ad804 | 2020-06-11 11:25:05 -0700 | [diff] [blame] | 295 | _product_list_vars += PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 296 | |
| 297 | # List of modules that should be forcefully unmarked from being LOCAL_PRODUCT_MODULE, and hence |
| 298 | # installed on /system directory by default. |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 299 | _product_list_vars += PRODUCT_FORCE_PRODUCT_MODULES_TO_SYSTEM_PARTITION |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 300 | |
| 301 | # When this is true, dynamic partitions is retrofitted on a device that has |
| 302 | # already been launched without dynamic partitions. Otherwise, the device |
| 303 | # is launched with dynamic partitions. |
| 304 | # This flag implies PRODUCT_USE_DYNAMIC_PARTITIONS. |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 305 | _product_single_value_vars += PRODUCT_RETROFIT_DYNAMIC_PARTITIONS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 306 | |
Sam Delmerico | 4c3b83f | 2023-02-21 13:54:27 -0500 | [diff] [blame] | 307 | # List of directories that will be used to gate blueprint modules from the build graph |
| 308 | _product_list_vars += PRODUCT_SOURCE_ROOT_DIRS |
| 309 | |
Hridya Valsaraju | b39ec70 | 2021-03-31 21:28:02 -0700 | [diff] [blame] | 310 | # When this is true, various build time as well as runtime debugfs restrictions are enabled. |
| 311 | _product_single_value_vars += PRODUCT_SET_DEBUGFS_RESTRICTIONS |
| 312 | |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 313 | # Other dynamic partition feature flags.PRODUCT_USE_DYNAMIC_PARTITION_SIZE and |
| 314 | # PRODUCT_BUILD_SUPER_PARTITION default to the value of PRODUCT_USE_DYNAMIC_PARTITIONS. |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 315 | _product_single_value_vars += \ |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 316 | PRODUCT_USE_DYNAMIC_PARTITIONS \ |
Yifan Hong | 2dae572 | 2018-07-31 12:47:27 -0700 | [diff] [blame] | 317 | PRODUCT_USE_DYNAMIC_PARTITION_SIZE \ |
| 318 | PRODUCT_BUILD_SUPER_PARTITION \ |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 319 | |
| 320 | # If set, kernel configuration requirements are present in OTA package (and will be enforced |
| 321 | # during OTA). Otherwise, kernel configuration requirements are enforced in VTS. |
| 322 | # Devices that checks the running kernel (instead of the kernel in OTA package) should not |
| 323 | # set this variable to prevent OTA failures. |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 324 | _product_list_vars += PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 325 | |
Devin Moore | 6c5aedf | 2024-04-03 15:38:46 +0000 | [diff] [blame] | 326 | # If set to true, this product forces HIDL to be enabled by declaring android.hidl.manager |
| 327 | # and android.hidl.token in the framework manifest. The product will also need to add the |
| 328 | # 'hwservicemanager' service to PRODUCT_PACKAGES if its SHIPPING_API_LEVEL is greater than 34. |
| 329 | # This should only be used during bringup for devices that are targeting FCM 202404 and still |
| 330 | # have partner-owned HIDL interfaces that are being converted to AIDL. |
| 331 | _product_single_value_vars += PRODUCT_HIDL_ENABLED |
| 332 | |
Tao Bao | 9be20c7 | 2019-04-08 21:11:59 -0700 | [diff] [blame] | 333 | # If set to true, this product builds a generic OTA package, which installs generic system images |
| 334 | # onto matching devices. The product may only build a subset of system images (e.g. only |
| 335 | # system.img), so devices need to install the package in a system-only OTA manner. |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 336 | _product_single_value_vars += PRODUCT_BUILD_GENERIC_OTA_PACKAGE |
Tao Bao | 9be20c7 | 2019-04-08 21:11:59 -0700 | [diff] [blame] | 337 | |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 338 | _product_list_vars += PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES |
| 339 | _product_list_vars += PRODUCT_PACKAGE_NAME_OVERRIDES |
| 340 | _product_list_vars += PRODUCT_CERTIFICATE_OVERRIDES |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 341 | |
Jiakai Zhang | 17c6af4 | 2023-07-12 16:54:56 +0100 | [diff] [blame] | 342 | # Overrides the (apex, jar) pairs above when determining the on-device location. The format is: |
| 343 | # <old_apex>:<old_jar>:<new_apex>:<new_jar> |
| 344 | _product_list_vars += PRODUCT_CONFIGURED_JAR_LOCATION_OVERRIDES |
| 345 | |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 346 | # Controls for whether different partitions are built for the current product. |
| 347 | _product_single_value_vars += PRODUCT_BUILD_SYSTEM_IMAGE |
| 348 | _product_single_value_vars += PRODUCT_BUILD_SYSTEM_OTHER_IMAGE |
| 349 | _product_single_value_vars += PRODUCT_BUILD_VENDOR_IMAGE |
| 350 | _product_single_value_vars += PRODUCT_BUILD_PRODUCT_IMAGE |
Justin Yun | 6151e3f | 2019-06-25 15:58:13 +0900 | [diff] [blame] | 351 | _product_single_value_vars += PRODUCT_BUILD_SYSTEM_EXT_IMAGE |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 352 | _product_single_value_vars += PRODUCT_BUILD_ODM_IMAGE |
Yifan Hong | cfb917a | 2020-05-07 14:58:20 -0700 | [diff] [blame] | 353 | _product_single_value_vars += PRODUCT_BUILD_VENDOR_DLKM_IMAGE |
Yifan Hong | f496f1b | 2020-07-15 16:52:59 -0700 | [diff] [blame] | 354 | _product_single_value_vars += PRODUCT_BUILD_ODM_DLKM_IMAGE |
Ramji Jiyani | 13a4137 | 2022-01-27 07:05:08 +0000 | [diff] [blame] | 355 | _product_single_value_vars += PRODUCT_BUILD_SYSTEM_DLKM_IMAGE |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 356 | _product_single_value_vars += PRODUCT_BUILD_CACHE_IMAGE |
| 357 | _product_single_value_vars += PRODUCT_BUILD_RAMDISK_IMAGE |
| 358 | _product_single_value_vars += PRODUCT_BUILD_USERDATA_IMAGE |
Chris Gross | a784ef1 | 2019-04-22 11:09:57 -0700 | [diff] [blame] | 359 | _product_single_value_vars += PRODUCT_BUILD_RECOVERY_IMAGE |
| 360 | _product_single_value_vars += PRODUCT_BUILD_BOOT_IMAGE |
Devin Moore | 380d9e4 | 2021-11-04 19:01:19 +0000 | [diff] [blame] | 361 | _product_single_value_vars += PRODUCT_BUILD_INIT_BOOT_IMAGE |
Yi-Yo Chiang | 4d7c613 | 2021-09-29 19:41:11 +0800 | [diff] [blame] | 362 | _product_single_value_vars += PRODUCT_BUILD_DEBUG_BOOT_IMAGE |
Daniel Norman | 42879ff | 2020-10-06 11:09:56 -0700 | [diff] [blame] | 363 | _product_single_value_vars += PRODUCT_BUILD_VENDOR_BOOT_IMAGE |
Lucas Wei | f57333f | 2022-02-24 10:30:15 +0800 | [diff] [blame] | 364 | _product_single_value_vars += PRODUCT_BUILD_VENDOR_KERNEL_BOOT_IMAGE |
Yi-Yo Chiang | 4d7c613 | 2021-09-29 19:41:11 +0800 | [diff] [blame] | 365 | _product_single_value_vars += PRODUCT_BUILD_DEBUG_VENDOR_BOOT_IMAGE |
Paul Trautrim | 4e14323 | 2019-08-13 16:30:57 +0900 | [diff] [blame] | 366 | _product_single_value_vars += PRODUCT_BUILD_VBMETA_IMAGE |
Yo Chiang | e86bab4 | 2021-03-25 10:12:28 +0000 | [diff] [blame] | 367 | _product_single_value_vars += PRODUCT_BUILD_SUPER_EMPTY_IMAGE |
Pierre-Clément Tosi | fa8193c | 2021-09-24 15:49:00 +0200 | [diff] [blame] | 368 | _product_single_value_vars += PRODUCT_BUILD_PVMFW_IMAGE |
Anton Hansson | c1c4c0b | 2019-05-06 15:09:19 +0100 | [diff] [blame] | 369 | |
Martin Stjernholm | 743513c | 2021-07-05 20:53:57 +0100 | [diff] [blame] | 370 | # List of boot jars delivered via updatable APEXes, following the same format as |
| 371 | # PRODUCT_BOOT_JARS. |
satayev | 65e68bb | 2021-07-15 18:19:56 +0100 | [diff] [blame] | 372 | _product_list_vars += PRODUCT_APEX_BOOT_JARS |
Chris Gross | a784ef1 | 2019-04-22 11:09:57 -0700 | [diff] [blame] | 373 | |
Yifan Hong | 7d37b40 | 2019-07-23 14:20:29 -0700 | [diff] [blame] | 374 | # If set, device uses virtual A/B. |
| 375 | _product_single_value_vars += PRODUCT_VIRTUAL_AB_OTA |
| 376 | |
Kelvin Zhang | 239a79a | 2021-01-15 13:47:52 -0500 | [diff] [blame] | 377 | # If set, device uses virtual A/B Compression. |
| 378 | _product_single_value_vars += PRODUCT_VIRTUAL_AB_COMPRESSION |
| 379 | |
Yifan Hong | 7d37b40 | 2019-07-23 14:20:29 -0700 | [diff] [blame] | 380 | # If set, device retrofits virtual A/B. |
| 381 | _product_single_value_vars += PRODUCT_VIRTUAL_AB_OTA_RETROFIT |
| 382 | |
Yifan Hong | 65afc07 | 2020-04-17 10:08:10 -0700 | [diff] [blame] | 383 | # If set, forcefully generate a non-A/B update package. |
| 384 | # Note: A device configuration should inherit from virtual_ab_ota_plus_non_ab.mk |
| 385 | # instead of setting this variable directly. |
| 386 | # Note: Use TARGET_OTA_ALLOW_NON_AB in the build system because |
| 387 | # TARGET_OTA_ALLOW_NON_AB takes the value of AB_OTA_UPDATER into account. |
| 388 | _product_single_value_vars += PRODUCT_OTA_FORCE_NON_AB_PACKAGE |
| 389 | |
Jeongik Cha | 7452979 | 2019-07-19 13:40:18 +0900 | [diff] [blame] | 390 | # If set, Java module in product partition cannot use hidden APIs. |
| 391 | _product_single_value_vars += PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE |
| 392 | |
JaeMan Park | 33d9aad | 2020-12-02 16:34:12 +0900 | [diff] [blame] | 393 | # If set, only java_sdk_library can be used at inter-partition dependency. |
| 394 | # Note: Build error if BOARD_VNDK_VERSION is not set while |
| 395 | # PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY is true, because |
| 396 | # PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY has no meaning if |
| 397 | # BOARD_VNDK_VERSION is not set. |
| 398 | # Note: When PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE is not set, there are |
| 399 | # no restrictions at dependency between system and product partition. |
| 400 | _product_single_value_vars += PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY |
| 401 | |
| 402 | # Allowlist for PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY option. |
| 403 | # Listed modules are allowed at inter-partition dependency even if it isn't |
| 404 | # a java_sdk_library module. |
| 405 | _product_list_vars += PRODUCT_INTER_PARTITION_JAVA_LIBRARY_ALLOWLIST |
| 406 | |
Yi-Yo Chiang | f63bd5d | 2021-09-23 14:14:16 +0000 | [diff] [blame] | 407 | # Install a copy of the debug policy to the system_ext partition, and allow |
| 408 | # init-second-stage to load debug policy from system_ext. |
Yi-Yo Chiang | b225d8c | 2021-10-18 18:32:46 +0800 | [diff] [blame] | 409 | # This option is only meant to be set by compliance GSI targets. |
Yi-Yo Chiang | f63bd5d | 2021-09-23 14:14:16 +0000 | [diff] [blame] | 410 | _product_single_value_vars += PRODUCT_INSTALL_DEBUG_POLICY_TO_SYSTEM_EXT |
| 411 | |
Victor Hsieh | 89415a8 | 2022-09-09 14:16:33 -0700 | [diff] [blame] | 412 | # If set, fsverity metadata files will be generated for each files in the |
| 413 | # allowlist, plus an manifest APK per partition. For example, |
| 414 | # /system/framework/service.jar will come with service.jar.fsv_meta in the same |
| 415 | # directory; the file information will also be included in |
| 416 | # /system/etc/security/fsverity/BuildManifest.apk |
| 417 | _product_single_value_vars += PRODUCT_FSVERITY_GENERATE_METADATA |
Inseob Kim | 9cda397 | 2021-10-12 22:59:12 +0900 | [diff] [blame] | 418 | |
Spandan Das | e4a3e9e | 2024-05-07 22:52:17 +0000 | [diff] [blame] | 419 | # If true, this builds the mainline modules from source. This overrides any |
| 420 | # prebuilts selected via RELEASE_APEX_CONTRIBUTIONS_* build flags for the |
| 421 | # current release config. |
Martin Stjernholm | 47dcbea | 2022-03-10 17:51:13 +0000 | [diff] [blame] | 422 | _product_single_value_vars += PRODUCT_MODULE_BUILD_FROM_SOURCE |
| 423 | |
Nikita Ioffe | bb9d6db | 2022-10-24 17:21:58 +0100 | [diff] [blame] | 424 | # If true, installs a full version of com.android.virt APEX. |
| 425 | _product_single_value_vars += PRODUCT_AVF_ENABLED |
| 426 | |
Alice Wang | 28a57dc | 2024-05-16 15:41:34 +0000 | [diff] [blame] | 427 | # If false, disable the AVF remote attestaton feature. |
| 428 | _product_single_value_vars += PRODUCT_AVF_REMOTE_ATTESTATION_DISABLED |
| 429 | |
Nikita Ioffe | cae3ef9 | 2023-06-07 14:36:56 +0100 | [diff] [blame] | 430 | # If true, kernel with modules will be used for Microdroid VMs. |
| 431 | _product_single_value_vars += PRODUCT_AVF_KERNEL_MODULES_ENABLED |
| 432 | |
T.J. Mercier | 18a5d39 | 2024-03-27 21:53:52 +0000 | [diff] [blame] | 433 | # If true, the memory controller will be force-enabled in the cgroup v2 hierarchy |
| 434 | _product_single_value_vars += PRODUCT_MEMCG_V2_FORCE_ENABLED |
| 435 | |
| 436 | # If true, the cgroup v2 hierarchy will be split into apps/system subtrees |
| 437 | _product_single_value_vars += PRODUCT_CGROUP_V2_SYS_APP_ISOLATION_ENABLED |
| 438 | |
Jooyung Han | da2d4a2 | 2023-01-09 16:26:23 +0900 | [diff] [blame] | 439 | # List of .json files to be merged/compiled into vendor/etc/linker.config.pb |
| 440 | _product_list_vars += PRODUCT_VENDOR_LINKER_CONFIG_FRAGMENTS |
| 441 | |
Jiakai Zhang | d6c6e3a | 2022-11-16 11:52:00 +0000 | [diff] [blame] | 442 | # Whether to use userfaultfd GC. |
| 443 | # Possible values are: |
| 444 | # - "default" or empty: both the build system and the runtime determine whether to use userfaultfd |
| 445 | # GC based on the vendor API level |
| 446 | # - "true": forces the build system to use userfaultfd GC regardless of the vendor API level; the |
| 447 | # runtime determines whether to use userfaultfd GC based on the kernel support. Note that the |
| 448 | # device may have to re-compile everything on the first boot if the kernel doesn't support |
| 449 | # userfaultfd |
| 450 | # - "false": disallows the build system and the runtime to use userfaultfd GC even if the device |
Martin Stjernholm | a8c687f | 2024-05-15 16:42:02 +0100 | [diff] [blame] | 451 | # supports it. This option is temporary - the plan is to remove it by Aug 2025, at which time |
| 452 | # Mainline updates of the ART module will ignore it as well. |
Jiakai Zhang | d6c6e3a | 2022-11-16 11:52:00 +0000 | [diff] [blame] | 453 | _product_single_value_vars += PRODUCT_ENABLE_UFFD_GC |
| 454 | |
Daniel Zheng | 025099c | 2023-05-02 13:50:27 -0700 | [diff] [blame] | 455 | # Specifies COW version to be used by update_engine and libsnapshot. If this value is not |
| 456 | # specified we default to COW version 2 in update_engine for backwards compatibility |
| 457 | _product_single_value_vars += PRODUCT_VIRTUAL_AB_COW_VERSION |
| 458 | |
Daniel Zheng | 270130a | 2024-01-09 15:56:10 -0800 | [diff] [blame] | 459 | # Specifies maximum bytes to be compressed at once during ota. Options: 4096, 8192, 16384, 32768, 65536, 131072, 262144. |
| 460 | _product_single_value_vars += PRODUCT_VIRTUAL_AB_COMPRESSION_FACTOR |
| 461 | |
Inseob Kim | 3c7b91b | 2023-08-25 21:28:49 +0900 | [diff] [blame] | 462 | # If set, determines whether the build system checks vendor seapp contexts violations. |
| 463 | _product_single_value_vars += PRODUCT_CHECK_VENDOR_SEAPP_VIOLATIONS |
| 464 | |
Inseob Kim | aa9a4a4 | 2023-11-21 16:47:42 +0900 | [diff] [blame] | 465 | # If set, determines whether the build system checks dev type violations. |
| 466 | _product_single_value_vars += PRODUCT_CHECK_DEV_TYPE_VIOLATIONS |
| 467 | |
Vinh Tran | 424539f | 2023-04-12 17:48:34 -0400 | [diff] [blame] | 468 | _product_list_vars += PRODUCT_AFDO_PROFILES |
| 469 | |
Florian Mayer | beb5bed | 2023-11-07 10:12:26 -0800 | [diff] [blame] | 470 | _product_single_value_vars += PRODUCT_SCUDO_ALLOCATION_RING_BUFFER_SIZE |
Jihoon Kang | e06e4c5 | 2023-09-19 19:12:48 +0000 | [diff] [blame] | 471 | |
LaMont Jones | 38b195e | 2023-11-06 22:14:51 +0000 | [diff] [blame] | 472 | _product_list_vars += PRODUCT_RELEASE_CONFIG_MAPS |
| 473 | |
Cole Faust | 7aa649a | 2023-11-03 12:27:43 -0700 | [diff] [blame] | 474 | _product_list_vars += PRODUCT_VALIDATION_CHECKS |
| 475 | |
Jihoon Kang | 9e0998b | 2023-11-16 19:04:44 +0000 | [diff] [blame] | 476 | _product_single_value_vars += PRODUCT_BUILD_FROM_SOURCE_STUB |
| 477 | |
Spandan Das | 7f52f2a | 2024-02-20 07:48:22 +0000 | [diff] [blame] | 478 | _product_single_value_vars += PRODUCT_BUILD_IGNORE_APEX_CONTRIBUTION_CONTENTS |
Spandan Das | 7416360 | 2024-02-17 03:31:45 +0000 | [diff] [blame] | 479 | |
Jihoon Kang | c974a27 | 2024-02-22 19:29:13 +0000 | [diff] [blame] | 480 | _product_single_value_vars += PRODUCT_HIDDEN_API_EXPORTABLE_STUBS |
| 481 | |
Jihoon Kang | 49f08d9 | 2024-02-22 20:04:44 +0000 | [diff] [blame] | 482 | _product_single_value_vars += PRODUCT_EXPORT_RUNTIME_APIS |
| 483 | |
Nikita Ioffe | ed8bd8a | 2024-04-23 18:34:52 +0000 | [diff] [blame] | 484 | # If set, determines which version of the GKI is used as guest kernel for Microdroid VMs. |
| 485 | # TODO(b/325991735): link to documentation once it is done. |
| 486 | _product_single_value_vars += PRODUCT_AVF_MICRODROID_GUEST_GKI_VERSION |
| 487 | |
Pawan Wagh | ea2121d | 2024-05-17 21:41:32 +0000 | [diff] [blame] | 488 | # Enables 16KB developer option for device if set. |
| 489 | _product_single_value_vars += PRODUCT_16K_DEVELOPER_OPTION |
| 490 | |
Joe Onorato | d4b4224 | 2024-06-07 16:04:17 -0700 | [diff] [blame] | 491 | # If set, adb root will be disabled (really ro.debuggable=0) in userdebug |
| 492 | # builds. It's already off disabled in user builds. Eng builds are unaffected |
| 493 | # by this flag. |
| 494 | _product_single_value_vars += PRODUCT_NOT_DEBUGGABLE_IN_USERDEBUG |
| 495 | |
Lance Chang | 7c28285 | 2024-06-10 22:27:42 -0700 | [diff] [blame] | 496 | # If set, the default value of the versionName of apps will include the build number. |
| 497 | _product_single_value_vars += PRODUCT_BUILD_APPS_WITH_BUILD_NUMBER |
| 498 | |
Kiyoung Kim | f5a52d9 | 2024-06-28 12:52:07 +0000 | [diff] [blame] | 499 | # If set, build would generate system image from Soong-defined module. |
| 500 | _product_single_value_vars += PRODUCT_SOONG_DEFINED_SYSTEM_IMAGE |
| 501 | |
Ashutosh Agarwal | f0f9394 | 2024-09-18 14:24:05 +0000 | [diff] [blame] | 502 | # List of stub libraries specific to the product that are already present in the system image and |
| 503 | # should be included in the system_linker_config. |
| 504 | _product_list_vars += PRODUCT_EXTRA_STUB_LIBRARIES |
| 505 | |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 506 | .KATI_READONLY := _product_single_value_vars _product_list_vars |
| 507 | _product_var_list :=$= $(_product_single_value_vars) $(_product_list_vars) |
Ying Wang | 20ebd2e | 2014-10-07 18:07:23 -0700 | [diff] [blame] | 508 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 509 | # |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 510 | # Functions for including product makefiles |
| 511 | # |
| 512 | |
| 513 | # |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 514 | # $(1): product to inherit |
| 515 | # |
Anton Hansson | 061cbcf | 2018-05-30 18:24:41 +0100 | [diff] [blame] | 516 | # To be called from product makefiles, and is later evaluated during the import-nodes |
Cole Faust | 0472730 | 2022-02-28 10:49:33 -0800 | [diff] [blame] | 517 | # call below. It does the following: |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 518 | # 1. Inherits all of the variables from $1. |
| 519 | # 2. Records the inheritance in the .INHERITS_FROM variable |
Anton Hansson | 061cbcf | 2018-05-30 18:24:41 +0100 | [diff] [blame] | 520 | # |
Cole Faust | 0472730 | 2022-02-28 10:49:33 -0800 | [diff] [blame] | 521 | # (2) and the PRODUCTS variable can be used together to reconstruct the include hierarchy |
Anton Hansson | 061cbcf | 2018-05-30 18:24:41 +0100 | [diff] [blame] | 522 | # See e.g. product-graph.mk for an example of this. |
The Android Open Source Project | 6a5f7f0 | 2009-03-05 14:34:30 -0800 | [diff] [blame] | 523 | # |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 524 | define inherit-product |
Cole Faust | 725aab2 | 2022-03-08 18:29:17 -0800 | [diff] [blame] | 525 | $(eval _inherit_product_wildcard := $(wildcard $(1)))\ |
| 526 | $(if $(_inherit_product_wildcard),,$(error $(1) does not exist.))\ |
| 527 | $(foreach part,$(_inherit_product_wildcard),\ |
| 528 | $(if $(findstring ../,$(part)),\ |
| 529 | $(eval np := $(call normalize-paths,$(part))),\ |
| 530 | $(eval np := $(strip $(part))))\ |
| 531 | $(foreach v,$(_product_var_list), \ |
| 532 | $(eval $(v) := $($(v)) $(INHERIT_TAG)$(np))) \ |
| 533 | $(eval current_mk := $(strip $(word 1,$(_include_stack)))) \ |
| 534 | $(eval inherit_var := PRODUCTS.$(current_mk).INHERITS_FROM) \ |
| 535 | $(eval $(inherit_var) := $(sort $($(inherit_var)) $(np))) \ |
Cole Faust | 7162b95 | 2022-06-24 14:37:33 -0700 | [diff] [blame] | 536 | $(call dump-inherit,$(current_mk),$(1)) \ |
Cole Faust | 725aab2 | 2022-03-08 18:29:17 -0800 | [diff] [blame] | 537 | $(call dump-config-vals,$(current_mk),inherit)) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 538 | endef |
| 539 | |
Anton Hansson | 837425b | 2018-06-01 14:18:14 +0100 | [diff] [blame] | 540 | # Specifies a number of path prefixes, relative to PRODUCT_OUT, where the |
| 541 | # product makefile hierarchy rooted in the current node places its artifacts. |
| 542 | # Creating artifacts outside the specified paths will cause a build-time error. |
| 543 | define require-artifacts-in-path |
| 544 | $(eval current_mk := $(strip $(word 1,$(_include_stack)))) \ |
| 545 | $(eval PRODUCTS.$(current_mk).ARTIFACT_PATH_REQUIREMENTS := $(strip $(1))) \ |
Colin Cross | c3ad804 | 2020-06-11 11:25:05 -0700 | [diff] [blame] | 546 | $(eval PRODUCTS.$(current_mk).ARTIFACT_PATH_ALLOWED_LIST := $(strip $(2))) \ |
Anton Hansson | 837425b | 2018-06-01 14:18:14 +0100 | [diff] [blame] | 547 | $(eval ARTIFACT_PATH_REQUIREMENT_PRODUCTS := \ |
| 548 | $(sort $(ARTIFACT_PATH_REQUIREMENT_PRODUCTS) $(current_mk))) |
| 549 | endef |
Joe Onorato | 28a846d | 2010-02-22 10:33:05 -0800 | [diff] [blame] | 550 | |
Anton Hansson | d1258eb | 2020-12-08 12:13:50 +0000 | [diff] [blame] | 551 | # Like require-artifacts-in-path, but does not require all allow-list entries to |
| 552 | # have an effect. |
| 553 | define require-artifacts-in-path-relaxed |
| 554 | $(require-artifacts-in-path) \ |
| 555 | $(eval PRODUCTS.$(current_mk).ARTIFACT_PATH_REQUIREMENT_IS_RELAXED := true) |
| 556 | endef |
| 557 | |
Yo Chiang | 1db657a | 2020-05-10 20:33:35 +0800 | [diff] [blame] | 558 | # Makes including non-existent modules in PRODUCT_PACKAGES an error. |
Colin Cross | c3ad804 | 2020-06-11 11:25:05 -0700 | [diff] [blame] | 559 | # $(1): list of non-existent modules to allow. |
Anton Hansson | 1ebcbd5 | 2018-07-04 17:17:23 +0100 | [diff] [blame] | 560 | define enforce-product-packages-exist |
| 561 | $(eval current_mk := $(strip $(word 1,$(_include_stack)))) \ |
| 562 | $(eval PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST := true) \ |
Colin Cross | c3ad804 | 2020-06-11 11:25:05 -0700 | [diff] [blame] | 563 | $(eval PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST := $(1)) \ |
Anton Hansson | 1ebcbd5 | 2018-07-04 17:17:23 +0100 | [diff] [blame] | 564 | $(eval .KATI_READONLY := PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST) \ |
Colin Cross | c3ad804 | 2020-06-11 11:25:05 -0700 | [diff] [blame] | 565 | $(eval .KATI_READONLY := PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST) |
Anton Hansson | 1ebcbd5 | 2018-07-04 17:17:23 +0100 | [diff] [blame] | 566 | endef |
| 567 | |
Joe Onorato | 28a846d | 2010-02-22 10:33:05 -0800 | [diff] [blame] | 568 | # |
| 569 | # Do inherit-product only if $(1) exists |
| 570 | # |
| 571 | define inherit-product-if-exists |
| 572 | $(if $(wildcard $(1)),$(call inherit-product,$(1)),) |
| 573 | endef |
| 574 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 575 | # |
| 576 | # $(1): product makefile list |
| 577 | # |
| 578 | #TODO: check to make sure that products have all the necessary vars defined |
| 579 | define import-products |
Anton Hansson | d26c647 | 2019-05-06 14:40:57 +0100 | [diff] [blame] | 580 | $(call import-nodes,PRODUCTS,$(1),$(_product_var_list),$(_product_single_value_vars)) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 581 | endef |
| 582 | |
| 583 | |
| 584 | # |
Cole Faust | 81f1e92 | 2022-04-08 11:12:10 -0700 | [diff] [blame] | 585 | # Does various consistency checks on the current product. |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 586 | # Takes no parameters, so $(call ) is not necessary. |
| 587 | # |
Cole Faust | 81f1e92 | 2022-04-08 11:12:10 -0700 | [diff] [blame] | 588 | define check-current-product |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 589 | $(if ,, \ |
Cole Faust | 81f1e92 | 2022-04-08 11:12:10 -0700 | [diff] [blame] | 590 | $(if $(call is-c-identifier,$(PRODUCT_NAME)),, \ |
| 591 | $(error $(INTERNAL_PRODUCT): PRODUCT_NAME must be a valid C identifier, not "$(pn)")) \ |
| 592 | $(if $(PRODUCT_BRAND),, \ |
| 593 | $(error $(INTERNAL_PRODUCT): PRODUCT_BRAND must be defined.)) \ |
| 594 | $(foreach cf,$(strip $(PRODUCT_COPY_FILES)), \ |
| 595 | $(if $(filter 2 3,$(words $(subst :,$(space),$(cf)))),, \ |
| 596 | $(error $(p): malformed COPY_FILE "$(cf)")))) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 597 | endef |
Joe Onorato | 8dc8faa | 2010-09-14 13:09:48 -0400 | [diff] [blame] | 598 | |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 599 | # BoardConfig variables that are also inherited in product mks. Should ideally |
| 600 | # be cleaned up to not be product variables. |
| 601 | _readonly_late_variables := \ |
| 602 | DEVICE_PACKAGE_OVERLAYS \ |
Jiakai Zhang | bf0c0e6 | 2023-11-06 17:55:59 +0000 | [diff] [blame] | 603 | WITH_DEXPREOPT_ART_BOOT_IMG_ONLY \ |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 604 | |
| 605 | # Modified internally in the build system |
| 606 | _readonly_late_variables += \ |
dianlujitao | cb47e3a | 2019-09-05 20:39:07 +0800 | [diff] [blame] | 607 | PRODUCT_CFI_INCLUDE_PATHS \ |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 608 | PRODUCT_COPY_FILES \ |
| 609 | PRODUCT_DEX_PREOPT_NEVER_ALLOW_STRIPPING \ |
| 610 | PRODUCT_DEX_PREOPT_BOOT_FLAGS \ |
dianlujitao | cb47e3a | 2019-09-05 20:39:07 +0800 | [diff] [blame] | 611 | PRODUCT_SOONG_NAMESPACES |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 612 | |
| 613 | _readonly_early_variables := $(filter-out $(_readonly_late_variables),$(_product_var_list)) |
Yifan Hong | e5d879a | 2018-11-27 11:37:38 -0800 | [diff] [blame] | 614 | |
Joe Onorato | 8dc8faa | 2010-09-14 13:09:48 -0400 | [diff] [blame] | 615 | # |
Dan Willemsen | c1f17ff | 2016-10-05 16:57:27 -0700 | [diff] [blame] | 616 | # Mark the variables in _product_stash_var_list as readonly |
Joe Onorato | 8dc8faa | 2010-09-14 13:09:48 -0400 | [diff] [blame] | 617 | # |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 618 | define readonly-variables |
| 619 | $(foreach v,$(1), \ |
Anton Hansson | 70222b2 | 2019-02-21 10:41:03 +0000 | [diff] [blame] | 620 | $(eval $(v) ?=) \ |
| 621 | $(eval .KATI_READONLY := $(v)) \ |
Joe Onorato | 8dc8faa | 2010-09-14 13:09:48 -0400 | [diff] [blame] | 622 | ) |
| 623 | endef |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 624 | define readonly-product-vars |
| 625 | $(call readonly-variables,$(_readonly_early_variables)) |
| 626 | endef |
| 627 | |
| 628 | define readonly-final-product-vars |
| 629 | $(call readonly-variables,$(_readonly_late_variables)) |
| 630 | endef |
Joe Onorato | 8dc8faa | 2010-09-14 13:09:48 -0400 | [diff] [blame] | 631 | |
Anton Hansson | cca8cdb | 2019-10-28 11:30:40 +0000 | [diff] [blame] | 632 | # Macro re-defined inside strip-product-vars. |
| 633 | get-product-var = $(PRODUCTS.$(strip $(1)).$(2)) |
Yifan Hong | e5d879a | 2018-11-27 11:37:38 -0800 | [diff] [blame] | 634 | # |
Anton Hansson | 528fdc0 | 2019-06-25 18:57:57 +0100 | [diff] [blame] | 635 | # Strip the variables in _product_var_list and a few build-system |
| 636 | # internal variables, and assign the ones for the current product |
| 637 | # to a shorthand that is more convenient to read from elsewhere. |
Yifan Hong | e5d879a | 2018-11-27 11:37:38 -0800 | [diff] [blame] | 638 | # |
| 639 | define strip-product-vars |
Joe Onorato | 38a57bf | 2021-02-08 13:38:01 -0800 | [diff] [blame] | 640 | $(call dump-phase-start,PRODUCT-EXPAND,,$(_product_var_list),$(_product_single_value_vars), \ |
| 641 | build/make/core/product.mk) \ |
Anton Hansson | 528fdc0 | 2019-06-25 18:57:57 +0100 | [diff] [blame] | 642 | $(foreach v,\ |
| 643 | $(_product_var_list) \ |
| 644 | PRODUCT_ENFORCE_PACKAGES_EXIST \ |
Colin Cross | c3ad804 | 2020-06-11 11:25:05 -0700 | [diff] [blame] | 645 | PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST, \ |
Anton Hansson | 13ea2a6 | 2019-03-28 14:47:25 +0000 | [diff] [blame] | 646 | $(eval $(v) := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).$(v)))) \ |
Anton Hansson | cca8cdb | 2019-10-28 11:30:40 +0000 | [diff] [blame] | 647 | $(eval get-product-var = $$(if $$(filter $$(1),$$(INTERNAL_PRODUCT)),$$($$(2)),$$(PRODUCTS.$$(strip $$(1)).$$(2)))) \ |
| 648 | $(KATI_obsolete_var PRODUCTS.$(INTERNAL_PRODUCT).$(v),Use $(v) instead) \ |
Joe Onorato | 38a57bf | 2021-02-08 13:38:01 -0800 | [diff] [blame] | 649 | ) \ |
| 650 | $(call dump-phase-end,build/make/core/product.mk) |
Yifan Hong | e5d879a | 2018-11-27 11:37:38 -0800 | [diff] [blame] | 651 | endef |
| 652 | |
Keun young Park | c41c5f4 | 2012-05-30 10:22:29 -0700 | [diff] [blame] | 653 | define add-to-product-copy-files-if-exists |
| 654 | $(if $(wildcard $(word 1,$(subst :, ,$(1)))),$(1)) |
| 655 | endef |
Ying Wang | 20ebd2e | 2014-10-07 18:07:23 -0700 | [diff] [blame] | 656 | |
| 657 | # whitespace placeholder when we record module's dex-preopt config. |
| 658 | _PDPMC_SP_PLACE_HOLDER := |@SP@| |
| 659 | # Set up dex-preopt config for a module. |
| 660 | # $(1) list of module names |
| 661 | # $(2) the modules' dex-preopt config |
| 662 | define add-product-dex-preopt-module-config |
| 663 | $(eval _c := $(subst $(space),$(_PDPMC_SP_PLACE_HOLDER),$(strip $(2))))\ |
| 664 | $(eval PRODUCT_DEX_PREOPT_MODULE_CONFIGS += \ |
| 665 | $(foreach m,$(1),$(m)=$(_c))) |
| 666 | endef |
Andreas Gampe | 6b30d77 | 2016-06-27 15:15:31 -0700 | [diff] [blame] | 667 | |
| 668 | # whitespace placeholder when we record module's sanitizer config. |
| 669 | _PSMC_SP_PLACE_HOLDER := |@SP@| |
| 670 | # Set up sanitizer config for a module. |
| 671 | # $(1) list of module names |
| 672 | # $(2) the modules' sanitizer config |
| 673 | define add-product-sanitizer-module-config |
| 674 | $(eval _c := $(subst $(space),$(_PSMC_SP_PLACE_HOLDER),$(strip $(2))))\ |
| 675 | $(eval PRODUCT_SANITIZER_MODULE_CONFIGS += \ |
| 676 | $(foreach m,$(1),$(m)=$(_c))) |
| 677 | endef |