2019-06-25 11:49:01 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2019 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.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# The makefile contains the special settings for GSI releasing.
|
|
|
|
# This makefile is used for the build targets which used for releasing GSI.
|
|
|
|
#
|
|
|
|
# For example:
|
|
|
|
# - Released GSI contains skip_mount.cfg to skip mounting prodcut paritition
|
|
|
|
# - Released GSI contains more VNDK packages to support old version vendors
|
|
|
|
# - etc.
|
|
|
|
#
|
2022-10-24 05:28:38 +02:00
|
|
|
# See device/generic/common/README.md for more details.
|
|
|
|
#
|
2019-06-25 11:49:01 +02:00
|
|
|
|
2020-07-09 07:13:28 +02:00
|
|
|
BUILDING_GSI := true
|
|
|
|
|
2019-06-25 11:49:01 +02:00
|
|
|
# Exclude all files under system/product and system/system_ext
|
2020-06-11 20:25:05 +02:00
|
|
|
PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
|
2019-06-25 11:49:01 +02:00
|
|
|
system/product/% \
|
|
|
|
system/system_ext/%
|
|
|
|
|
2021-04-03 16:56:04 +02:00
|
|
|
# GSI should always support up-to-date platform features.
|
|
|
|
# Keep this value at the latest API level to ensure latest build system
|
|
|
|
# default configs are applied.
|
2023-04-19 07:29:26 +02:00
|
|
|
PRODUCT_SHIPPING_API_LEVEL := 34
|
2019-06-25 11:49:01 +02:00
|
|
|
|
2021-02-05 11:44:18 +01:00
|
|
|
# Enable dynamic partitions to facilitate mixing onto Cuttlefish
|
|
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
|
|
|
|
2019-06-25 11:49:01 +02:00
|
|
|
# Enable dynamic partition size
|
|
|
|
PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
|
|
|
|
|
2021-06-14 22:59:07 +02:00
|
|
|
# Disable the build-time debugfs restrictions on GSI builds
|
|
|
|
PRODUCT_SET_DEBUGFS_RESTRICTIONS := false
|
|
|
|
|
2019-06-25 11:49:01 +02:00
|
|
|
# GSI specific tasks on boot
|
2019-08-15 12:44:28 +02:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
gsi_skip_mount.cfg \
|
2020-08-03 11:19:30 +02:00
|
|
|
init.gsi.rc \
|
|
|
|
init.vndk-nodef.rc \
|
2019-06-25 11:49:01 +02:00
|
|
|
|
2022-10-17 10:42:16 +02:00
|
|
|
# Overlay the GSI specific SystemUI setting
|
|
|
|
PRODUCT_PACKAGES += gsi_overlay_systemui
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
device/generic/common/overlays/overlay-config.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/overlay/config/config.xml
|
|
|
|
|
2021-08-16 15:30:54 +02:00
|
|
|
# Support additional VNDK snapshots
|
|
|
|
PRODUCT_EXTRA_VNDK_VERSIONS := \
|
|
|
|
30 \
|
|
|
|
31 \
|
2022-03-17 06:09:22 +01:00
|
|
|
32 \
|
2022-08-25 02:09:17 +02:00
|
|
|
33 \
|
2023-07-14 10:56:17 +02:00
|
|
|
34 \
|
2021-03-18 11:29:48 +01:00
|
|
|
|
|
|
|
# Do not build non-GSI partition images.
|
|
|
|
PRODUCT_BUILD_CACHE_IMAGE := false
|
2021-10-14 11:07:14 +02:00
|
|
|
PRODUCT_BUILD_DEBUG_BOOT_IMAGE := false
|
|
|
|
PRODUCT_BUILD_DEBUG_VENDOR_BOOT_IMAGE := false
|
2021-03-18 11:29:48 +01:00
|
|
|
PRODUCT_BUILD_USERDATA_IMAGE := false
|
|
|
|
PRODUCT_BUILD_VENDOR_IMAGE := false
|
|
|
|
PRODUCT_BUILD_SUPER_PARTITION := false
|
2021-03-25 11:12:58 +01:00
|
|
|
PRODUCT_BUILD_SUPER_EMPTY_IMAGE := false
|
2022-11-04 12:30:58 +01:00
|
|
|
PRODUCT_BUILD_SYSTEM_DLKM_IMAGE := false
|
2021-09-29 11:28:48 +02:00
|
|
|
PRODUCT_EXPORT_BOOT_IMAGE_TO_DIST := true
|
2021-08-05 09:29:39 +02:00
|
|
|
|
2021-09-07 04:27:35 +02:00
|
|
|
# Additional settings used in all GSI builds
|
|
|
|
PRODUCT_PRODUCT_PROPERTIES += \
|
|
|
|
ro.crypto.metadata_init_delete_all_keys.enabled=false \
|
2023-06-05 06:14:01 +02:00
|
|
|
|
|
|
|
# Window Extensions
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/window_extensions.mk)
|