2009-03-04 04:28:42 +01:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 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.
|
|
|
|
#
|
|
|
|
|
2019-05-06 15:40:57 +02:00
|
|
|
# Variables that are meant to hold only a single value.
|
|
|
|
# - The value set in the current makefile takes precedence over inherited values
|
|
|
|
# - If multiple inherited makefiles set the var, the first-inherited value wins
|
|
|
|
_product_single_value_vars :=
|
|
|
|
|
|
|
|
# Variables that are lists of values.
|
|
|
|
_product_list_vars :=
|
|
|
|
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_NAME
|
|
|
|
_product_single_value_vars += PRODUCT_MODEL
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# The resoure configuration options to use for this product.
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_LOCALES
|
|
|
|
_product_list_vars += PRODUCT_AAPT_CONFIG
|
2020-11-11 23:41:08 +01:00
|
|
|
_product_single_value_vars += PRODUCT_AAPT_PREF_CONFIG
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_AAPT_PREBUILT_DPI
|
|
|
|
_product_list_vars += PRODUCT_HOST_PACKAGES
|
|
|
|
_product_list_vars += PRODUCT_PACKAGES
|
|
|
|
_product_list_vars += PRODUCT_PACKAGES_DEBUG
|
|
|
|
_product_list_vars += PRODUCT_PACKAGES_DEBUG_ASAN
|
2019-06-11 19:27:47 +02:00
|
|
|
# Packages included only for eng/userdebug builds, when building with EMMA_INSTRUMENT=true
|
|
|
|
_product_list_vars += PRODUCT_PACKAGES_DEBUG_JAVA_COVERAGE
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_PACKAGES_ENG
|
|
|
|
_product_list_vars += PRODUCT_PACKAGES_TESTS
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2019-03-28 15:47:25 +01:00
|
|
|
# The device that this product maps to.
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_DEVICE
|
|
|
|
_product_single_value_vars += PRODUCT_MANUFACTURER
|
|
|
|
_product_single_value_vars += PRODUCT_BRAND
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# These PRODUCT_SYSTEM_* flags, if defined, are used in place of the
|
|
|
|
# corresponding PRODUCT_* flags for the sysprops on /system.
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += \
|
2018-12-21 16:36:00 +01:00
|
|
|
PRODUCT_SYSTEM_NAME \
|
|
|
|
PRODUCT_SYSTEM_MODEL \
|
|
|
|
PRODUCT_SYSTEM_DEVICE \
|
|
|
|
PRODUCT_SYSTEM_BRAND \
|
|
|
|
PRODUCT_SYSTEM_MANUFACTURER \
|
2019-03-28 15:47:25 +01:00
|
|
|
|
2020-05-29 10:50:03 +02:00
|
|
|
# PRODUCT_<PARTITION>_PROPERTIES are lists of property assignments
|
|
|
|
# that go to <partition>/build.prop. Each property assignment is
|
|
|
|
# "key = value" with zero or more whitespace characters on either
|
|
|
|
# side of the '='.
|
|
|
|
_product_list_vars += \
|
|
|
|
PRODUCT_SYSTEM_PROPERTIES \
|
|
|
|
PRODUCT_SYSTEM_EXT_PROPERTIES \
|
|
|
|
PRODUCT_VENDOR_PROPERTIES \
|
|
|
|
PRODUCT_ODM_PROPERTIES \
|
|
|
|
PRODUCT_PRODUCT_PROPERTIES
|
|
|
|
|
|
|
|
# TODO(b/117892318) deprecate these:
|
|
|
|
# ... in favor or PRODUCT_SYSTEM_PROPERTIES
|
|
|
|
_product_list_vars += PRODUCT_SYSTEM_DEFAULT_PROPERTIES
|
|
|
|
# ... in favor of PRODUCT_VENDOR_PROPERTIES
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_PROPERTY_OVERRIDES
|
|
|
|
_product_list_vars += PRODUCT_DEFAULT_PROPERTY_OVERRIDES
|
2019-03-28 15:47:25 +01:00
|
|
|
|
2020-05-29 10:50:03 +02:00
|
|
|
# TODO(b/117892318) consider deprecating these too
|
|
|
|
_product_list_vars += PRODUCT_SYSTEM_PROPERTY_BLACKLIST
|
|
|
|
_product_list_vars += PRODUCT_VENDOR_PROPERTY_BLACKLIST
|
2019-05-13 19:06:45 +02:00
|
|
|
|
|
|
|
# The characteristics of the product, which among other things is passed to aapt
|
|
|
|
_product_single_value_vars += PRODUCT_CHARACTERISTICS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# A list of words like <source path>:<destination path>[:<owner>].
|
|
|
|
# The file at the source path should be copied to the destination path
|
|
|
|
# when building this product. <destination path> is relative to
|
|
|
|
# $(PRODUCT_OUT), so it should look like, e.g., "system/etc/file.xml".
|
|
|
|
# The rules for these copy steps are defined in build/make/core/Makefile.
|
|
|
|
# The optional :<owner> is used to indicate the owner of a vendor file.
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_COPY_FILES
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# The OTA key(s) specified by the product config, if any. The names
|
|
|
|
# of these keys are stored in the target-files zip so that post-build
|
|
|
|
# signing tools can substitute them for the test key embedded by
|
|
|
|
# default.
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_OTA_PUBLIC_KEYS
|
2021-12-29 09:29:05 +01:00
|
|
|
_product_list_vars += PRODUCT_EXTRA_OTA_KEYS
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_EXTRA_RECOVERY_KEYS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# Should we use the default resources or add any product specific overlays
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_PACKAGE_OVERLAYS
|
|
|
|
_product_list_vars += DEVICE_PACKAGE_OVERLAYS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# Resource overlay list which must be excluded from enforcing RRO.
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# Package list to apply enforcing RRO.
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_ENFORCE_RRO_TARGETS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_SDK_ATREE_FILES
|
|
|
|
_product_list_vars += PRODUCT_SDK_ADDON_NAME
|
|
|
|
_product_list_vars += PRODUCT_SDK_ADDON_COPY_FILES
|
|
|
|
_product_list_vars += PRODUCT_SDK_ADDON_COPY_MODULES
|
|
|
|
_product_list_vars += PRODUCT_SDK_ADDON_DOC_MODULES
|
|
|
|
_product_list_vars += PRODUCT_SDK_ADDON_SYS_IMG_SOURCE_PROP
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# which Soong namespaces to export to Make
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_SOONG_NAMESPACES
|
2019-03-28 15:47:25 +01:00
|
|
|
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_DEFAULT_WIFI_CHANNELS
|
2020-11-11 23:41:08 +01:00
|
|
|
_product_single_value_vars += PRODUCT_DEFAULT_DEV_CERTIFICATE
|
2019-08-07 11:13:33 +02:00
|
|
|
_product_list_vars += PRODUCT_MAINLINE_SEPOLICY_DEV_CERTIFICATES
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_RESTRICT_VENDOR_FILES
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# The list of product-specific kernel header dirs
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_VENDOR_KERNEL_HEADERS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
2021-07-05 21:53:57 +02:00
|
|
|
# A list of module names in BOOTCLASSPATH (jar files). Each module may be
|
|
|
|
# prefixed with "<apex>:", which identifies the APEX that provides it. APEXes
|
|
|
|
# are identified by their "variant" names, i.e. their `apex_name` values in
|
|
|
|
# Soong, which default to the `name` values. The prefix can also be "platform:"
|
|
|
|
# or "system_ext:", and defaults to "platform:" if left out. See the long
|
|
|
|
# comment in build/soong/java/dexprepopt_bootjars.go for details.
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_BOOT_JARS
|
2020-03-13 07:14:27 +01:00
|
|
|
|
2021-07-05 21:53:57 +02:00
|
|
|
# A list of extra BOOTCLASSPATH jars (to be appended after common jars),
|
|
|
|
# following the same format as PRODUCT_BOOT_JARS. Products that include
|
|
|
|
# device-specific makefiles before AOSP makefiles should use this instead of
|
|
|
|
# PRODUCT_BOOT_JARS, so that device-specific jars go after common jars.
|
2020-03-13 07:14:27 +01:00
|
|
|
_product_list_vars += PRODUCT_BOOT_JARS_EXTRA
|
|
|
|
|
2021-02-11 07:27:36 +01:00
|
|
|
_product_single_value_vars += PRODUCT_SUPPORTS_BOOT_SIGNER
|
|
|
|
_product_single_value_vars += PRODUCT_SUPPORTS_VBOOT
|
|
|
|
_product_single_value_vars += PRODUCT_SUPPORTS_VERITY
|
|
|
|
_product_single_value_vars += PRODUCT_SUPPORTS_VERITY_FEC
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_SYSTEM_SERVER_APPS
|
2021-10-28 16:37:20 +02:00
|
|
|
# List of system_server classpath jars on the platform.
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_SYSTEM_SERVER_JARS
|
2021-10-28 16:37:20 +02:00
|
|
|
# List of system_server classpath jars delivered via apex. Format = <apex name>:<jar name>.
|
2021-07-27 13:32:40 +02:00
|
|
|
_product_list_vars += PRODUCT_APEX_SYSTEM_SERVER_JARS
|
2021-10-28 16:37:20 +02:00
|
|
|
# List of jars on the platform that system_server loads dynamically using separate classloaders.
|
|
|
|
_product_list_vars += PRODUCT_STANDALONE_SYSTEM_SERVER_JARS
|
|
|
|
# List of jars delivered via apex that system_server loads dynamically using separate classloaders.
|
|
|
|
# Format = <apex name>:<jar name>
|
|
|
|
_product_list_vars += PRODUCT_APEX_STANDALONE_SYSTEM_SERVER_JARS
|
2020-03-27 13:12:59 +01:00
|
|
|
# If true, then suboptimal order of system server jars does not cause an error.
|
2020-11-11 23:41:08 +01:00
|
|
|
_product_single_value_vars += PRODUCT_BROKEN_SUBOPTIMAL_ORDER_OF_SYSTEM_SERVER_JARS
|
2021-10-26 13:50:27 +02:00
|
|
|
# If true, then system server jars defined in Android.mk are supported.
|
|
|
|
_product_single_value_vars += PRODUCT_BROKEN_DEPRECATED_MK_SYSTEM_SERVER_JARS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
2020-04-22 11:01:10 +02:00
|
|
|
# Additional system server jars to be appended at the end of the common list.
|
|
|
|
# This is necessary to avoid jars reordering due to makefile inheritance order.
|
|
|
|
_product_list_vars += PRODUCT_SYSTEM_SERVER_JARS_EXTRA
|
|
|
|
|
2021-03-22 18:24:18 +01:00
|
|
|
# Set to true to disable <uses-library> checks for a product.
|
|
|
|
_product_list_vars += PRODUCT_BROKEN_VERIFY_USES_LIBRARIES
|
|
|
|
|
2019-03-28 15:47:25 +01:00
|
|
|
# All of the apps that we force preopt, this overrides WITH_DEXPREOPT.
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_ALWAYS_PREOPT_EXTRACTED_APK
|
|
|
|
_product_list_vars += PRODUCT_DEXPREOPT_SPEED_APPS
|
|
|
|
_product_list_vars += PRODUCT_LOADED_BY_PRIVILEGED_MODULES
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_VBOOT_SIGNING_KEY
|
|
|
|
_product_single_value_vars += PRODUCT_VBOOT_SIGNING_SUBKEY
|
|
|
|
_product_single_value_vars += PRODUCT_VERITY_SIGNING_KEY
|
|
|
|
_product_single_value_vars += PRODUCT_SYSTEM_VERITY_PARTITION
|
|
|
|
_product_single_value_vars += PRODUCT_VENDOR_VERITY_PARTITION
|
|
|
|
_product_single_value_vars += PRODUCT_PRODUCT_VERITY_PARTITION
|
2019-06-25 08:58:13 +02:00
|
|
|
_product_single_value_vars += PRODUCT_SYSTEM_EXT_VERITY_PARTITION
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_ODM_VERITY_PARTITION
|
2020-05-07 23:58:20 +02:00
|
|
|
_product_single_value_vars += PRODUCT_VENDOR_DLKM_VERITY_PARTITION
|
2020-07-16 01:52:59 +02:00
|
|
|
_product_single_value_vars += PRODUCT_ODM_DLKM_VERITY_PARTITION
|
2022-01-27 08:05:08 +01:00
|
|
|
_product_single_value_vars += PRODUCT_SYSTEM_DLKM_VERITY_PARTITION
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_SYSTEM_SERVER_DEBUG_INFO
|
|
|
|
_product_single_value_vars += PRODUCT_OTHER_JAVA_DEBUG_INFO
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# Per-module dex-preopt configs.
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_DEX_PREOPT_MODULE_CONFIGS
|
2020-11-11 23:41:08 +01:00
|
|
|
_product_single_value_vars += PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_DEX_PREOPT_DEFAULT_FLAGS
|
2020-11-11 23:41:08 +01:00
|
|
|
_product_single_value_vars += PRODUCT_DEX_PREOPT_BOOT_FLAGS
|
|
|
|
_product_single_value_vars += PRODUCT_DEX_PREOPT_PROFILE_DIR
|
|
|
|
_product_single_value_vars += PRODUCT_DEX_PREOPT_GENERATE_DM_FILES
|
|
|
|
_product_single_value_vars += PRODUCT_DEX_PREOPT_NEVER_ALLOW_STRIPPING
|
|
|
|
_product_single_value_vars += PRODUCT_DEX_PREOPT_RESOLVE_STARTUP_STRINGS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# Boot image options.
|
2021-11-05 19:00:22 +01:00
|
|
|
_product_list_vars += PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += \
|
2021-09-29 11:28:48 +02:00
|
|
|
PRODUCT_EXPORT_BOOT_IMAGE_TO_DIST \
|
2017-06-29 03:23:37 +02:00
|
|
|
PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE \
|
2019-05-02 00:34:47 +02:00
|
|
|
PRODUCT_USES_DEFAULT_ART_CONFIG \
|
2019-03-28 15:47:25 +01:00
|
|
|
|
2020-11-11 23:41:08 +01:00
|
|
|
_product_single_value_vars += PRODUCT_SYSTEM_SERVER_COMPILER_FILTER
|
2019-03-28 15:47:25 +01:00
|
|
|
# Per-module sanitizer configs
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_SANITIZER_MODULE_CONFIGS
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_SYSTEM_BASE_FS_PATH
|
|
|
|
_product_single_value_vars += PRODUCT_VENDOR_BASE_FS_PATH
|
|
|
|
_product_single_value_vars += PRODUCT_PRODUCT_BASE_FS_PATH
|
2019-06-25 08:58:13 +02:00
|
|
|
_product_single_value_vars += PRODUCT_SYSTEM_EXT_BASE_FS_PATH
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_ODM_BASE_FS_PATH
|
2020-05-07 23:58:20 +02:00
|
|
|
_product_single_value_vars += PRODUCT_VENDOR_DLKM_BASE_FS_PATH
|
2020-07-16 01:52:59 +02:00
|
|
|
_product_single_value_vars += PRODUCT_ODM_DLKM_BASE_FS_PATH
|
2022-01-27 08:05:08 +01:00
|
|
|
_product_single_value_vars += PRODUCT_SYSTEM_DLKM_BASE_FS_PATH
|
2019-05-06 16:09:19 +02:00
|
|
|
|
|
|
|
# The first API level this product shipped with
|
|
|
|
_product_single_value_vars += PRODUCT_SHIPPING_API_LEVEL
|
|
|
|
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += VENDOR_PRODUCT_RESTRICT_VENDOR_FILES
|
|
|
|
_product_list_vars += VENDOR_EXCEPTION_MODULES
|
|
|
|
_product_list_vars += VENDOR_EXCEPTION_PATHS
|
2019-03-28 15:47:25 +01:00
|
|
|
# Whether the product wants to ship libartd. For rules and meaning, see art/Android.mk.
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# Make this art variable visible to soong_config.mk.
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_ART_USE_READ_BARRIER
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# Add reserved headroom to a system image.
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_SYSTEM_HEADROOM
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# Whether to save disk space by minimizing java debug info
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_MINIMIZE_JAVA_DEBUG_INFO
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# Whether any paths are excluded from sanitization when SANITIZE_TARGET=integer_overflow
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_INTEGER_OVERFLOW_EXCLUDE_PATHS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_ADB_KEYS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# Whether any paths should have CFI enabled for components
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_CFI_INCLUDE_PATHS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# Whether any paths are excluded from sanitization when SANITIZE_TARGET=cfi
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_CFI_EXCLUDE_PATHS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# Whether the Scudo hardened allocator is disabled platform-wide
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_DISABLE_SCUDO
|
2019-03-28 15:47:25 +01:00
|
|
|
|
2019-05-06 10:55:48 +02:00
|
|
|
# List of extra VNDK versions to be included
|
|
|
|
_product_list_vars += PRODUCT_EXTRA_VNDK_VERSIONS
|
|
|
|
|
2020-11-25 17:00:38 +01:00
|
|
|
# Whether APEX should be compressed or not
|
|
|
|
_product_single_value_vars += PRODUCT_COMPRESSED_APEX
|
|
|
|
|
2019-11-18 11:43:41 +01:00
|
|
|
# VNDK version of product partition. It can be 'current' if the product
|
|
|
|
# partitions uses PLATFORM_VNDK_VERSION.
|
2020-09-04 07:44:09 +02:00
|
|
|
_product_single_value_vars += PRODUCT_PRODUCT_VNDK_VERSION
|
2019-11-18 11:43:41 +01:00
|
|
|
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS
|
|
|
|
_product_single_value_vars += PRODUCT_ENFORCE_ARTIFACT_SYSTEM_CERTIFICATE_REQUIREMENT
|
2020-06-11 20:25:05 +02:00
|
|
|
_product_list_vars += PRODUCT_ARTIFACT_SYSTEM_CERTIFICATE_REQUIREMENT_ALLOW_LIST
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_ARTIFACT_PATH_REQUIREMENT_HINT
|
2020-06-11 20:25:05 +02:00
|
|
|
_product_list_vars += PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# List of modules that should be forcefully unmarked from being LOCAL_PRODUCT_MODULE, and hence
|
|
|
|
# installed on /system directory by default.
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_FORCE_PRODUCT_MODULES_TO_SYSTEM_PARTITION
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# When this is true, dynamic partitions is retrofitted on a device that has
|
|
|
|
# already been launched without dynamic partitions. Otherwise, the device
|
|
|
|
# is launched with dynamic partitions.
|
|
|
|
# This flag implies PRODUCT_USE_DYNAMIC_PARTITIONS.
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_RETROFIT_DYNAMIC_PARTITIONS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
2021-04-01 06:28:02 +02:00
|
|
|
# When this is true, various build time as well as runtime debugfs restrictions are enabled.
|
|
|
|
_product_single_value_vars += PRODUCT_SET_DEBUGFS_RESTRICTIONS
|
|
|
|
|
2019-03-28 15:47:25 +01:00
|
|
|
# Other dynamic partition feature flags.PRODUCT_USE_DYNAMIC_PARTITION_SIZE and
|
|
|
|
# PRODUCT_BUILD_SUPER_PARTITION default to the value of PRODUCT_USE_DYNAMIC_PARTITIONS.
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += \
|
2019-03-28 15:47:25 +01:00
|
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS \
|
2018-07-31 21:47:27 +02:00
|
|
|
PRODUCT_USE_DYNAMIC_PARTITION_SIZE \
|
|
|
|
PRODUCT_BUILD_SUPER_PARTITION \
|
2019-03-28 15:47:25 +01:00
|
|
|
|
|
|
|
# If set, kernel configuration requirements are present in OTA package (and will be enforced
|
|
|
|
# during OTA). Otherwise, kernel configuration requirements are enforced in VTS.
|
|
|
|
# Devices that checks the running kernel (instead of the kernel in OTA package) should not
|
|
|
|
# set this variable to prevent OTA failures.
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS
|
2019-03-28 15:47:25 +01:00
|
|
|
|
2019-04-09 06:11:59 +02:00
|
|
|
# If set to true, this product builds a generic OTA package, which installs generic system images
|
|
|
|
# onto matching devices. The product may only build a subset of system images (e.g. only
|
|
|
|
# system.img), so devices need to install the package in a system-only OTA manner.
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_GENERIC_OTA_PACKAGE
|
2019-04-09 06:11:59 +02:00
|
|
|
|
2019-05-06 15:40:57 +02:00
|
|
|
_product_list_vars += PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES
|
|
|
|
_product_list_vars += PRODUCT_PACKAGE_NAME_OVERRIDES
|
|
|
|
_product_list_vars += PRODUCT_CERTIFICATE_OVERRIDES
|
2019-05-06 16:09:19 +02:00
|
|
|
|
|
|
|
# Controls for whether different partitions are built for the current product.
|
|
|
|
_product_single_value_vars += PRODUCT_BUILD_SYSTEM_IMAGE
|
|
|
|
_product_single_value_vars += PRODUCT_BUILD_SYSTEM_OTHER_IMAGE
|
|
|
|
_product_single_value_vars += PRODUCT_BUILD_VENDOR_IMAGE
|
|
|
|
_product_single_value_vars += PRODUCT_BUILD_PRODUCT_IMAGE
|
2019-06-25 08:58:13 +02:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_SYSTEM_EXT_IMAGE
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_ODM_IMAGE
|
2020-05-07 23:58:20 +02:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_VENDOR_DLKM_IMAGE
|
2020-07-16 01:52:59 +02:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_ODM_DLKM_IMAGE
|
2022-01-27 08:05:08 +01:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_SYSTEM_DLKM_IMAGE
|
2019-05-06 16:09:19 +02:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_CACHE_IMAGE
|
|
|
|
_product_single_value_vars += PRODUCT_BUILD_RAMDISK_IMAGE
|
|
|
|
_product_single_value_vars += PRODUCT_BUILD_USERDATA_IMAGE
|
2019-04-22 20:09:57 +02:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_RECOVERY_IMAGE
|
|
|
|
_product_single_value_vars += PRODUCT_BUILD_BOOT_IMAGE
|
2021-11-04 20:01:19 +01:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_INIT_BOOT_IMAGE
|
2021-09-29 13:41:11 +02:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_DEBUG_BOOT_IMAGE
|
2020-10-06 20:09:56 +02:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_VENDOR_BOOT_IMAGE
|
2022-02-24 03:30:15 +01:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_VENDOR_KERNEL_BOOT_IMAGE
|
2021-09-29 13:41:11 +02:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_DEBUG_VENDOR_BOOT_IMAGE
|
2019-08-13 09:30:57 +02:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_VBMETA_IMAGE
|
2021-03-25 11:12:28 +01:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_SUPER_EMPTY_IMAGE
|
2021-09-24 15:49:00 +02:00
|
|
|
_product_single_value_vars += PRODUCT_BUILD_PVMFW_IMAGE
|
2019-05-06 16:09:19 +02:00
|
|
|
|
2021-07-05 21:53:57 +02:00
|
|
|
# List of boot jars delivered via updatable APEXes, following the same format as
|
|
|
|
# PRODUCT_BOOT_JARS.
|
2021-07-15 19:19:56 +02:00
|
|
|
_product_list_vars += PRODUCT_APEX_BOOT_JARS
|
2019-04-22 20:09:57 +02:00
|
|
|
|
2019-07-23 23:20:29 +02:00
|
|
|
# If set, device uses virtual A/B.
|
|
|
|
_product_single_value_vars += PRODUCT_VIRTUAL_AB_OTA
|
|
|
|
|
2021-01-15 19:47:52 +01:00
|
|
|
# If set, device uses virtual A/B Compression.
|
|
|
|
_product_single_value_vars += PRODUCT_VIRTUAL_AB_COMPRESSION
|
|
|
|
|
2019-07-23 23:20:29 +02:00
|
|
|
# If set, device retrofits virtual A/B.
|
|
|
|
_product_single_value_vars += PRODUCT_VIRTUAL_AB_OTA_RETROFIT
|
|
|
|
|
2020-04-17 19:08:10 +02:00
|
|
|
# If set, forcefully generate a non-A/B update package.
|
|
|
|
# Note: A device configuration should inherit from virtual_ab_ota_plus_non_ab.mk
|
|
|
|
# instead of setting this variable directly.
|
|
|
|
# Note: Use TARGET_OTA_ALLOW_NON_AB in the build system because
|
|
|
|
# TARGET_OTA_ALLOW_NON_AB takes the value of AB_OTA_UPDATER into account.
|
|
|
|
_product_single_value_vars += PRODUCT_OTA_FORCE_NON_AB_PACKAGE
|
|
|
|
|
2019-07-19 06:40:18 +02:00
|
|
|
# If set, Java module in product partition cannot use hidden APIs.
|
|
|
|
_product_single_value_vars += PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE
|
|
|
|
|
2020-12-02 08:34:12 +01:00
|
|
|
# If set, only java_sdk_library can be used at inter-partition dependency.
|
|
|
|
# Note: Build error if BOARD_VNDK_VERSION is not set while
|
|
|
|
# PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY is true, because
|
|
|
|
# PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY has no meaning if
|
|
|
|
# BOARD_VNDK_VERSION is not set.
|
|
|
|
# Note: When PRODUCT_ENFORCE_PRODUCT_PARTITION_INTERFACE is not set, there are
|
|
|
|
# no restrictions at dependency between system and product partition.
|
|
|
|
_product_single_value_vars += PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY
|
|
|
|
|
|
|
|
# Allowlist for PRODUCT_ENFORCE_INTER_PARTITION_JAVA_SDK_LIBRARY option.
|
|
|
|
# Listed modules are allowed at inter-partition dependency even if it isn't
|
|
|
|
# a java_sdk_library module.
|
|
|
|
_product_list_vars += PRODUCT_INTER_PARTITION_JAVA_LIBRARY_ALLOWLIST
|
|
|
|
|
2019-12-05 08:14:18 +01:00
|
|
|
_product_single_value_vars += PRODUCT_INSTALL_EXTRA_FLATTENED_APEXES
|
|
|
|
|
2021-09-23 16:14:16 +02:00
|
|
|
# Install a copy of the debug policy to the system_ext partition, and allow
|
|
|
|
# init-second-stage to load debug policy from system_ext.
|
2021-10-18 12:32:46 +02:00
|
|
|
# This option is only meant to be set by compliance GSI targets.
|
2021-09-23 16:14:16 +02:00
|
|
|
_product_single_value_vars += PRODUCT_INSTALL_DEBUG_POLICY_TO_SYSTEM_EXT
|
|
|
|
|
2021-10-12 15:59:12 +02:00
|
|
|
# If set, metadata files for the following artifacts will be generated.
|
|
|
|
# - system/framework/*.jar
|
|
|
|
# - system/framework/oat/<arch>/*.{oat,vdex,art}
|
|
|
|
# - system/etc/boot-image.prof
|
|
|
|
# - system/etc/dirty-image-objects
|
|
|
|
# One fsverity metadata container file per one input file will be generated in
|
|
|
|
# system.img, with a suffix ".fsv_meta". e.g. a container file for
|
|
|
|
# "/system/framework/foo.jar" will be "system/framework/foo.jar.fsv_meta".
|
|
|
|
_product_single_value_vars += PRODUCT_SYSTEM_FSVERITY_GENERATE_METADATA
|
|
|
|
|
2022-03-10 18:51:13 +01:00
|
|
|
# If true, sets the default for MODULE_BUILD_FROM_SOURCE. This overrides
|
|
|
|
# BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE but not an explicitly set value.
|
|
|
|
_product_single_value_vars += PRODUCT_MODULE_BUILD_FROM_SOURCE
|
|
|
|
|
2019-05-06 15:40:57 +02:00
|
|
|
.KATI_READONLY := _product_single_value_vars _product_list_vars
|
|
|
|
_product_var_list :=$= $(_product_single_value_vars) $(_product_list_vars)
|
2014-10-08 03:07:23 +02:00
|
|
|
|
2019-03-28 15:47:25 +01:00
|
|
|
#
|
|
|
|
# Functions for including product makefiles
|
|
|
|
#
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
#
|
|
|
|
# $(1): product to inherit
|
|
|
|
#
|
2018-05-30 19:24:41 +02:00
|
|
|
# To be called from product makefiles, and is later evaluated during the import-nodes
|
2022-02-28 19:49:33 +01:00
|
|
|
# call below. It does the following:
|
2009-03-05 23:34:30 +01:00
|
|
|
# 1. Inherits all of the variables from $1.
|
|
|
|
# 2. Records the inheritance in the .INHERITS_FROM variable
|
2018-05-30 19:24:41 +02:00
|
|
|
#
|
2022-02-28 19:49:33 +01:00
|
|
|
# (2) and the PRODUCTS variable can be used together to reconstruct the include hierarchy
|
2018-05-30 19:24:41 +02:00
|
|
|
# See e.g. product-graph.mk for an example of this.
|
2009-03-05 23:34:30 +01:00
|
|
|
#
|
2009-03-04 04:28:42 +01:00
|
|
|
define inherit-product
|
2022-03-09 03:29:17 +01:00
|
|
|
$(eval _inherit_product_wildcard := $(wildcard $(1)))\
|
|
|
|
$(if $(_inherit_product_wildcard),,$(error $(1) does not exist.))\
|
|
|
|
$(foreach part,$(_inherit_product_wildcard),\
|
|
|
|
$(if $(findstring ../,$(part)),\
|
|
|
|
$(eval np := $(call normalize-paths,$(part))),\
|
|
|
|
$(eval np := $(strip $(part))))\
|
|
|
|
$(foreach v,$(_product_var_list), \
|
|
|
|
$(eval $(v) := $($(v)) $(INHERIT_TAG)$(np))) \
|
|
|
|
$(eval current_mk := $(strip $(word 1,$(_include_stack)))) \
|
|
|
|
$(eval inherit_var := PRODUCTS.$(current_mk).INHERITS_FROM) \
|
|
|
|
$(eval $(inherit_var) := $(sort $($(inherit_var)) $(np))) \
|
|
|
|
$(call dump-inherit,$(strip $(word 1,$(_include_stack))),$(1)) \
|
|
|
|
$(call dump-config-vals,$(current_mk),inherit))
|
2009-03-04 04:28:42 +01:00
|
|
|
endef
|
|
|
|
|
2018-06-01 15:18:14 +02:00
|
|
|
# Specifies a number of path prefixes, relative to PRODUCT_OUT, where the
|
|
|
|
# product makefile hierarchy rooted in the current node places its artifacts.
|
|
|
|
# Creating artifacts outside the specified paths will cause a build-time error.
|
|
|
|
define require-artifacts-in-path
|
|
|
|
$(eval current_mk := $(strip $(word 1,$(_include_stack)))) \
|
|
|
|
$(eval PRODUCTS.$(current_mk).ARTIFACT_PATH_REQUIREMENTS := $(strip $(1))) \
|
2020-06-11 20:25:05 +02:00
|
|
|
$(eval PRODUCTS.$(current_mk).ARTIFACT_PATH_ALLOWED_LIST := $(strip $(2))) \
|
2018-06-01 15:18:14 +02:00
|
|
|
$(eval ARTIFACT_PATH_REQUIREMENT_PRODUCTS := \
|
|
|
|
$(sort $(ARTIFACT_PATH_REQUIREMENT_PRODUCTS) $(current_mk)))
|
|
|
|
endef
|
2010-02-22 19:33:05 +01:00
|
|
|
|
2020-12-08 13:13:50 +01:00
|
|
|
# Like require-artifacts-in-path, but does not require all allow-list entries to
|
|
|
|
# have an effect.
|
|
|
|
define require-artifacts-in-path-relaxed
|
|
|
|
$(require-artifacts-in-path) \
|
|
|
|
$(eval PRODUCTS.$(current_mk).ARTIFACT_PATH_REQUIREMENT_IS_RELAXED := true)
|
|
|
|
endef
|
|
|
|
|
2020-05-10 14:33:35 +02:00
|
|
|
# Makes including non-existent modules in PRODUCT_PACKAGES an error.
|
2020-06-11 20:25:05 +02:00
|
|
|
# $(1): list of non-existent modules to allow.
|
2018-07-04 18:17:23 +02:00
|
|
|
define enforce-product-packages-exist
|
|
|
|
$(eval current_mk := $(strip $(word 1,$(_include_stack)))) \
|
|
|
|
$(eval PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST := true) \
|
2020-06-11 20:25:05 +02:00
|
|
|
$(eval PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST := $(1)) \
|
2018-07-04 18:17:23 +02:00
|
|
|
$(eval .KATI_READONLY := PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST) \
|
2020-06-11 20:25:05 +02:00
|
|
|
$(eval .KATI_READONLY := PRODUCTS.$(current_mk).PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST)
|
2018-07-04 18:17:23 +02:00
|
|
|
endef
|
|
|
|
|
2010-02-22 19:33:05 +01:00
|
|
|
#
|
|
|
|
# Do inherit-product only if $(1) exists
|
|
|
|
#
|
|
|
|
define inherit-product-if-exists
|
|
|
|
$(if $(wildcard $(1)),$(call inherit-product,$(1)),)
|
|
|
|
endef
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
#
|
|
|
|
# $(1): product makefile list
|
|
|
|
#
|
|
|
|
#TODO: check to make sure that products have all the necessary vars defined
|
|
|
|
define import-products
|
2019-05-06 15:40:57 +02:00
|
|
|
$(call import-nodes,PRODUCTS,$(1),$(_product_var_list),$(_product_single_value_vars))
|
2009-03-04 04:28:42 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
#
|
2022-04-08 20:12:10 +02:00
|
|
|
# Does various consistency checks on the current product.
|
2009-03-04 04:28:42 +01:00
|
|
|
# Takes no parameters, so $(call ) is not necessary.
|
|
|
|
#
|
2022-04-08 20:12:10 +02:00
|
|
|
define check-current-product
|
2009-03-04 04:28:42 +01:00
|
|
|
$(if ,, \
|
2022-04-08 20:12:10 +02:00
|
|
|
$(if $(call is-c-identifier,$(PRODUCT_NAME)),, \
|
|
|
|
$(error $(INTERNAL_PRODUCT): PRODUCT_NAME must be a valid C identifier, not "$(pn)")) \
|
|
|
|
$(if $(PRODUCT_BRAND),, \
|
|
|
|
$(error $(INTERNAL_PRODUCT): PRODUCT_BRAND must be defined.)) \
|
|
|
|
$(foreach cf,$(strip $(PRODUCT_COPY_FILES)), \
|
|
|
|
$(if $(filter 2 3,$(words $(subst :,$(space),$(cf)))),, \
|
|
|
|
$(error $(p): malformed COPY_FILE "$(cf)"))))
|
2009-03-04 04:28:42 +01:00
|
|
|
endef
|
2010-09-14 19:09:48 +02:00
|
|
|
|
2019-03-28 15:47:25 +01:00
|
|
|
# BoardConfig variables that are also inherited in product mks. Should ideally
|
|
|
|
# be cleaned up to not be product variables.
|
|
|
|
_readonly_late_variables := \
|
|
|
|
DEVICE_PACKAGE_OVERLAYS \
|
|
|
|
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY \
|
|
|
|
|
|
|
|
# Modified internally in the build system
|
|
|
|
_readonly_late_variables += \
|
|
|
|
PRODUCT_COPY_FILES \
|
|
|
|
PRODUCT_DEX_PREOPT_NEVER_ALLOW_STRIPPING \
|
|
|
|
PRODUCT_DEX_PREOPT_BOOT_FLAGS \
|
|
|
|
|
|
|
|
_readonly_early_variables := $(filter-out $(_readonly_late_variables),$(_product_var_list))
|
2018-11-27 20:37:38 +01:00
|
|
|
|
2010-09-14 19:09:48 +02:00
|
|
|
#
|
2016-10-06 01:57:27 +02:00
|
|
|
# Mark the variables in _product_stash_var_list as readonly
|
2010-09-14 19:09:48 +02:00
|
|
|
#
|
2019-03-28 15:47:25 +01:00
|
|
|
define readonly-variables
|
|
|
|
$(foreach v,$(1), \
|
2019-02-21 11:41:03 +01:00
|
|
|
$(eval $(v) ?=) \
|
|
|
|
$(eval .KATI_READONLY := $(v)) \
|
2010-09-14 19:09:48 +02:00
|
|
|
)
|
|
|
|
endef
|
2019-03-28 15:47:25 +01:00
|
|
|
define readonly-product-vars
|
|
|
|
$(call readonly-variables,$(_readonly_early_variables))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define readonly-final-product-vars
|
|
|
|
$(call readonly-variables,$(_readonly_late_variables))
|
|
|
|
endef
|
2010-09-14 19:09:48 +02:00
|
|
|
|
2019-10-28 12:30:40 +01:00
|
|
|
# Macro re-defined inside strip-product-vars.
|
|
|
|
get-product-var = $(PRODUCTS.$(strip $(1)).$(2))
|
2018-11-27 20:37:38 +01:00
|
|
|
#
|
2019-06-25 19:57:57 +02:00
|
|
|
# Strip the variables in _product_var_list and a few build-system
|
|
|
|
# internal variables, and assign the ones for the current product
|
|
|
|
# to a shorthand that is more convenient to read from elsewhere.
|
2018-11-27 20:37:38 +01:00
|
|
|
#
|
|
|
|
define strip-product-vars
|
2021-02-08 22:38:01 +01:00
|
|
|
$(call dump-phase-start,PRODUCT-EXPAND,,$(_product_var_list),$(_product_single_value_vars), \
|
|
|
|
build/make/core/product.mk) \
|
2019-06-25 19:57:57 +02:00
|
|
|
$(foreach v,\
|
|
|
|
$(_product_var_list) \
|
|
|
|
PRODUCT_ENFORCE_PACKAGES_EXIST \
|
2020-06-11 20:25:05 +02:00
|
|
|
PRODUCT_ENFORCE_PACKAGES_EXIST_ALLOW_LIST, \
|
2019-03-28 15:47:25 +01:00
|
|
|
$(eval $(v) := $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).$(v)))) \
|
2019-10-28 12:30:40 +01:00
|
|
|
$(eval get-product-var = $$(if $$(filter $$(1),$$(INTERNAL_PRODUCT)),$$($$(2)),$$(PRODUCTS.$$(strip $$(1)).$$(2)))) \
|
|
|
|
$(KATI_obsolete_var PRODUCTS.$(INTERNAL_PRODUCT).$(v),Use $(v) instead) \
|
2021-02-08 22:38:01 +01:00
|
|
|
) \
|
|
|
|
$(call dump-phase-end,build/make/core/product.mk)
|
2018-11-27 20:37:38 +01:00
|
|
|
endef
|
|
|
|
|
2012-05-30 19:22:29 +02:00
|
|
|
define add-to-product-copy-files-if-exists
|
|
|
|
$(if $(wildcard $(word 1,$(subst :, ,$(1)))),$(1))
|
|
|
|
endef
|
2014-10-08 03:07:23 +02:00
|
|
|
|
|
|
|
# whitespace placeholder when we record module's dex-preopt config.
|
|
|
|
_PDPMC_SP_PLACE_HOLDER := |@SP@|
|
|
|
|
# Set up dex-preopt config for a module.
|
|
|
|
# $(1) list of module names
|
|
|
|
# $(2) the modules' dex-preopt config
|
|
|
|
define add-product-dex-preopt-module-config
|
|
|
|
$(eval _c := $(subst $(space),$(_PDPMC_SP_PLACE_HOLDER),$(strip $(2))))\
|
|
|
|
$(eval PRODUCT_DEX_PREOPT_MODULE_CONFIGS += \
|
|
|
|
$(foreach m,$(1),$(m)=$(_c)))
|
|
|
|
endef
|
2016-06-28 00:15:31 +02:00
|
|
|
|
|
|
|
# whitespace placeholder when we record module's sanitizer config.
|
|
|
|
_PSMC_SP_PLACE_HOLDER := |@SP@|
|
|
|
|
# Set up sanitizer config for a module.
|
|
|
|
# $(1) list of module names
|
|
|
|
# $(2) the modules' sanitizer config
|
|
|
|
define add-product-sanitizer-module-config
|
|
|
|
$(eval _c := $(subst $(space),$(_PSMC_SP_PLACE_HOLDER),$(strip $(2))))\
|
|
|
|
$(eval PRODUCT_SANITIZER_MODULE_CONFIGS += \
|
|
|
|
$(foreach m,$(1),$(m)=$(_c)))
|
|
|
|
endef
|