• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
27# Exclude all files under system/product and system/system_ext
28PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \
29    system/product/% \
30    system/system_ext/%
31
32# Split selinux policy
33PRODUCT_FULL_TREBLE_OVERRIDE := true
34
35# Enable dynamic partition size
36PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
37
38# Needed by Pi newly launched device to pass VtsTrebleSysProp on GSI
39PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
40
41# GSI targets should install "unflattened" APEXes in /system
42TARGET_FLATTEN_APEX := false
43
44# GSI targets should install "flattened" APEXes in /system_ext as well
45PRODUCT_INSTALL_EXTRA_FLATTENED_APEXES := true
46
47# The flattened version of com.android.apex.cts.shim.v1 should be explicitly installed
48# because the shim apex is prebuilt one and PRODUCT_INSTALL_EXTRA_FLATTENED_APEXES is not
49# supported for prebuilt_apex modules yet.
50PRODUCT_PACKAGES += com.android.apex.cts.shim.v1_with_prebuilts.flattened
51
52# GSI specific tasks on boot
53PRODUCT_PACKAGES += \
54    gsi_skip_mount.cfg \
55    init.gsi.rc
56
57# Support addtional P and Q VNDK packages
58PRODUCT_EXTRA_VNDK_VERSIONS := 28 29
59