blob: 6a286674ddb0919e153175913036c18516bb640c [file] [log] [blame]
SzuWei Lin0f0cc8a2017-07-03 18:28:40 +08001#
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# System properties
21TARGET_SYSTEM_PROP := build/make/target/board/treble_system.prop
22
23# Bootloader is not part of generic AOSP image
24TARGET_NO_BOOTLOADER := true
25
26# Kernel is also not part of generic AOSP image
27TARGET_NO_KERNEL := true
28
29# system.img is always ext4 with sparse option
30TARGET_USERIMAGES_USE_EXT4 := true
31TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
32TARGET_USES_MKE2FS := true
33
34# Enable dex pre-opt to speed up initial boot
35ifeq ($(HOST_OS),linux)
36 ifeq ($(WITH_DEXPREOPT),)
37 WITH_DEXPREOPT := true
38 WITH_DEXPREOPT_PIC := true
39 ifneq ($(TARGET_BUILD_VARIANT),user)
40 # Retain classes.dex in APK's for non-user builds
41 DEX_PREOPT_DEFAULT := nostripping
42 endif
43 endif
44endif
45
46# Generic AOSP image always requires separate vendor.img
47TARGET_COPY_OUT_VENDOR := vendor
48
49# Generic AOSP image does NOT support HWC1
50TARGET_USES_HWC2 := true
51
52TARGET_CPU_ABI := x86
53TARGET_ARCH := x86
54TARGET_ARCH_VARIANT := x86
55
56# Enable A/B update
57BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
58
59BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736 # 1.5 GB
60
61# TODO(b/35790399): remove when b/35790399 is fixed.
62BOARD_NAND_SPARE_SIZE := 0
63BOARD_FLASH_BLOCK_SIZE := 512
64
65BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true