• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2017 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# Common boardconfig settings for generic AOSP products targetting mobile
18# (phone/table) devices.
19
20# VNDK
21BOARD_VNDK_VERSION := current
22BOARD_VNDK_RUNTIME_DISABLE := true
23
24# Properties
25TARGET_SYSTEM_PROP := build/make/target/board/treble_system.prop
26BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
27
28# Bootloader, kernel and recovery are not part of generic AOSP image
29TARGET_NO_BOOTLOADER := true
30TARGET_NO_KERNEL := true
31
32# system.img is always ext4 with sparse option
33# GSI also includes make_f2fs to support userdata parition in f2fs
34# for some devices
35TARGET_USERIMAGES_USE_EXT4 := true
36TARGET_USERIMAGES_USE_F2FS := true
37TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
38TARGET_USES_MKE2FS := true
39
40# Generic AOSP image always requires separate vendor.img
41TARGET_COPY_OUT_VENDOR := vendor
42
43# Enable dex pre-opt to speed up initial boot
44ifeq ($(HOST_OS),linux)
45  ifeq ($(WITH_DEXPREOPT),)
46    WITH_DEXPREOPT := true
47    WITH_DEXPREOPT_PIC := true
48    ifneq ($(TARGET_BUILD_VARIANT),user)
49      # Retain classes.dex in APK's for non-user builds
50      DEX_PREOPT_DEFAULT := nostripping
51    endif
52  endif
53endif
54
55# Generic AOSP image does NOT support HWC1
56TARGET_USES_HWC2 := true
57# Set emulator framebuffer display device buffer count to 3
58NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
59
60# TODO(b/35790399): remove when b/35790399 is fixed.
61BOARD_NAND_SPARE_SIZE := 0
62BOARD_FLASH_BLOCK_SIZE := 512
63
64# b/64700195: add minimum support for odm.img
65# Currently odm.img can only be built by `make custom_images`.
66# Adding /odm mount point under root directory.
67BOARD_ROOT_EXTRA_FOLDERS += odm
68