blob: cbb9746660387131c8eed4b30c39063e6b0b6e0a [file] [log] [blame]
micky38718f07ac2019-06-10 00:40:50 +02001# Copyright (C) 2010 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15#
16# This file is the build configuration for a full Android
17# build for grouper hardware. This cleanly combines a set of
18# device-specific aspects (drivers) with a device-agnostic
19# product configuration (apps).
20#
21DEVICE_PATH := device/asus/zenfone6
22
23BOARD_VENDOR := oneplus
24
25# Architecture
26TARGET_ARCH := arm64
27TARGET_ARCH_VARIANT := armv8-a
28TARGET_CPU_ABI := arm64-v8a
29TARGET_CPU_ABI2 :=
30TARGET_CPU_VARIANT := kryo300
31
32TARGET_2ND_ARCH := arm
33TARGET_2ND_ARCH_VARIANT := armv8-a
34TARGET_2ND_CPU_ABI := armeabi-v7a
35TARGET_2ND_CPU_ABI2 := armeabi
36TARGET_2ND_CPU_VARIANT := cortex-a75
37
38TARGET_USES_64_BIT_BINDER := true
39
40ENABLE_CPUSETS := true
41ENABLE_SCHEDBOOST := true
42
43# Bootloader
44TARGET_BOOTLOADER_BOARD_NAME := msmnile
45TARGET_NO_BOOTLOADER := true
46
47# ANT+
48BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl"
49
50# Bluetooth
51BOARD_HAVE_BLUETOOTH := true
52BOARD_HAVE_BLUETOOTH_QCOM := true
53BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
54QCOM_BT_USE_BTNV := true
55
56# charger
57HEALTHD_USE_BATTERY_INFO := true
58BOARD_CHARGER_ENABLE_SUSPEND := true
59BOARD_CHARGER_DISABLE_INIT_BLANK := true
60
61# Dex
62ifeq ($(HOST_OS),linux)
63 ifneq ($(TARGET_BUILD_VARIANT),eng)
64 WITH_DEXPREOPT ?= true
65 endif
66endif
67WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= true
68
69# Display
70TARGET_USES_HWC2 := true
71
72# DRM
73TARGET_ENABLE_MEDIADRM_64 := true
74
75# Global
76BOARD_USES_QCOM_HARDWARE := true
77TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/include
78TARGET_SUPPORTS_32_BIT_APPS := true
79TARGET_SUPPORTS_64_BIT_APPS := true
80TARGET_USES_QCOM_BSP := false
81TARGET_USERIMAGES_USE_EXT4 := true
82TARGET_USERIMAGES_USE_F2FS := false
83TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
84
85# Partitions
86BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
87BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
88BOARD_DTBOIMG_PARTITION_SIZE := 8388608
89BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2998927360
90BOARD_USERDATAIMAGE_PARTITION_SIZE := 118112366592
91BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
92TARGET_COPY_OUT_VENDOR := vendor
93
94# Platform
95TARGET_BOARD_PLATFORM := msmnile
96TARGET_BOARD_PLATFORM_GPU := qcom-adreno640
97
98# Properties
99BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
100
101# Recovery
102BOARD_USES_RECOVERY_AS_BOOT := true
103TARGET_NO_RECOVERY := true
104TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery.fstab
105TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
106TARGET_USERIMAGES_USE_EXT4 := true
107TARGET_USERIMAGES_USE_F2FS := true
108TARGET_USES_MKE2FS := true