blob: fbac4171acc5cfaab387a96b9e2d493d5942fdab [file] [log] [blame]
Isaac Chen1573bac2017-04-18 19:09:02 +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# Bootloader is not part of generic AOSP image
21TARGET_NO_BOOTLOADER := true
22
23# Kernel is also not part of generic AOSP image
24TARGET_NO_KERNEL := true
25
26# system.img is always ext4 with sparse option
27TARGET_USERIMAGES_USE_EXT4 := true
28TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
29TARGET_USES_MKE2FS := true
30
31# Enable dex pre-opt to speed up initial boot
32ifeq ($(HOST_OS),linux)
33 ifeq ($(WITH_DEXPREOPT),)
34 WITH_DEXPREOPT := true
35 WITH_DEXPREOPT_PIC := true
36 ifneq ($(TARGET_BUILD_VARIANT),user)
37 # Retain classes.dex in APK's for non-user builds
38 DEX_PREOPT_DEFAULT := nostripping
39 endif
40 endif
41endif
42
43# Generic AOSP image always requires separate vendor.img
44BOARD_USES_VENDORIMAGE := true
45TARGET_COPY_OUT_VENDOR := vendor
46
47# Generic AOSP image does NOT support HWC1
48TARGET_USES_HWC2 := true
49
50TARGET_ARCH := arm64
51TARGET_ARCH_VARIANT := armv8-a
52TARGET_CPU_ABI := arm64-v8a
53TARGET_CPU_ABI2 :=
54TARGET_CPU_VARIANT := generic
55
56TARGET_2ND_ARCH := arm
57TARGET_2ND_ARCH_VARIANT := armv7-a-neon
58TARGET_2ND_CPU_ABI := armeabi-v7a
59TARGET_2ND_CPU_ABI2 := armeabi
60TARGET_2ND_CPU_VARIANT := generic
61
62TARGET_USES_64_BIT_BINDER := true
63
64BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1610612736 # 1.5 GB
65
66# TODO(b/35790399): remove when b/35790399 is fixed.
67BOARD_NAND_SPARE_SIZE := 0
68BOARD_FLASH_BLOCK_SIZE := 512
69
70BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
71