blob: 4c57f31e4e8f7b97ff5ab7dd03a3282fb29d8e99 [file] [log] [blame]
Jiyong Park38f8aac2017-03-07 10:36:13 +09001#
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
Jiyong Park38f8aac2017-03-07 10:36:13 +090050# TODO(jiyong): Remove these two. These are required in order to remove
51# board-specific sysprops from system.img. This should be replaced with
52# a more meaningful build flags such as BOARD_SYSPROP_SPLIT.
53ENABLE_TREBLE := true
54BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
55
56TARGET_ARCH := arm64
57TARGET_ARCH_VARIANT := armv8-a
58TARGET_CPU_ABI := arm64-v8a
59TARGET_CPU_ABI2 :=
60TARGET_CPU_VARIANT := generic
61
62TARGET_2ND_ARCH := arm
63TARGET_2ND_ARCH_VARIANT := armv7-a-neon
64TARGET_2ND_CPU_ABI := armeabi-v7a
65TARGET_2ND_CPU_ABI2 := armeabi
66# TODO(jiyong) can we set krait here?
67TARGET_2ND_CPU_VARIANT := cortex-a15
68
69TARGET_USES_64_BIT_BINDER := true
70
71# Enable A/B update
72TARGET_NO_RECOVERY := true
73BOARD_USES_RECOVERY_AS_BOOT := true
74BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
75
Jiyong Park06241052017-03-10 21:29:47 +090076# TODO(jiyong) These might be SoC specific.
77BOARD_ROOT_EXTRA_FOLDERS := bt_firmware firmware firmware/radio persist
78BOARD_ROOT_EXTRA_SYMLINKS := /vendor/lib/dsp:/dsp
79
Jiyong Park38f8aac2017-03-07 10:36:13 +090080# TODO(b/35603549): this is currently set to 2.5GB to support sailfish/marlin
81# Fix this!
82BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
83
84# TODO(b/35790399): remove when b/35790399 is fixed.
85BOARD_NAND_SPARE_SIZE := 0
86BOARD_FLASH_BLOCK_SIZE := 512
87
Diego Wilsona2d55b52017-03-15 14:17:13 -070088BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
Jiyong Park6fdf9382017-03-27 20:58:30 +090089
90# TODO(b/36764215): remove this setting when the generic system image
91# no longer has QCOM-specific directories under /.
92BOARD_SEPOLICY_DIRS += build/target/board/generic_arm64_ab/sepolicy