1# 2# Copyright (C) 2019 The Android Open-Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17# 18# The makefile contains the special settings for GSI releasing. 19# This makefile is used for the build targets which used for releasing GSI. 20# 21# For example: 22# - Released GSI contains skip_mount.cfg to skip mounting prodcut paritition 23# - Released GSI contains more VNDK packages to support old version vendors 24# - etc. 25# 26 27BUILDING_GSI := true 28 29# Exclude all files under system/product and system/system_ext 30PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \ 31 system/product/% \ 32 system/system_ext/% 33 34# Split selinux policy 35PRODUCT_FULL_TREBLE_OVERRIDE := true 36 37# Enable dynamic partition size 38PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true 39 40# Needed by Pi newly launched device to pass VtsTrebleSysProp on GSI 41PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true 42 43# GSI targets should install "unflattened" APEXes in /system 44TARGET_FLATTEN_APEX := false 45 46# GSI targets should install "flattened" APEXes in /system_ext as well 47PRODUCT_INSTALL_EXTRA_FLATTENED_APEXES := true 48 49# GSI specific tasks on boot 50PRODUCT_PACKAGES += \ 51 gsi_skip_mount.cfg \ 52 init.gsi.rc 53 54# Support additional P and Q VNDK packages 55PRODUCT_EXTRA_VNDK_VERSIONS := 28 29 56