blob: 1ac2ac397c09bcdf840add75c0bcedd91e5d8aab [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
micky3874eedc682019-06-11 02:29:28 +020047# A/B
48AB_OTA_UPDATER := true
49
micky38718f07ac2019-06-10 00:40:50 +020050# ANT+
51BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl"
52
53# Bluetooth
54BOARD_HAVE_BLUETOOTH := true
55BOARD_HAVE_BLUETOOTH_QCOM := true
56BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
57QCOM_BT_USE_BTNV := true
58
micky38752076e82019-06-11 02:23:57 +020059# Camera
60BOARD_USES_SNAPDRAGONCAMERA_VERSION := 2
61
micky38718f07ac2019-06-10 00:40:50 +020062# charger
63HEALTHD_USE_BATTERY_INFO := true
64BOARD_CHARGER_ENABLE_SUSPEND := true
65BOARD_CHARGER_DISABLE_INIT_BLANK := true
66
67# Dex
68ifeq ($(HOST_OS),linux)
69 ifneq ($(TARGET_BUILD_VARIANT),eng)
70 WITH_DEXPREOPT ?= true
71 endif
72endif
73WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= true
74
75# Display
76TARGET_USES_HWC2 := true
77
78# DRM
79TARGET_ENABLE_MEDIADRM_64 := true
80
81# Global
82BOARD_USES_QCOM_HARDWARE := true
83TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/include
84TARGET_SUPPORTS_32_BIT_APPS := true
85TARGET_SUPPORTS_64_BIT_APPS := true
86TARGET_USES_QCOM_BSP := false
87TARGET_USERIMAGES_USE_EXT4 := true
88TARGET_USERIMAGES_USE_F2FS := false
89TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
90
micky387679a11f2019-06-11 02:18:20 +020091# Kernel
92BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=2048 firmware_class.path=/vendor/firmware_mnt/image loop.max_part=7 androidboot.usbcontroller=a600000.dwc3
93BOARD_KERNEL_CMDLINE += androidboot.avb_version=1.0 androidboot.vbmeta.avb_version=1.0
94BOARD_KERNEL_PAGESIZE := 4096
95BOARD_KERNEL_BASE := 0x00000000
96BOARD_KERNEL_TAGS_OFFSET := 0x00008000
97BOARD_RAMDISK_OFFSET := 0x01000000
98BOARD_TAGS_OFFSET := 0x00000100
99TARGET_KERNEL_ARCH := arm64
100TARGET_KERNEL_HEADER_ARCH := arm64
101TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-
102BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
103TARGET_COMPILE_WITH_MSM_KERNEL := true
104TARGET_KERNEL_SOURCE := kernel/asus/zenfone6
105TARGET_KERNEL_CONFIG := vendor/zs630kl_defconfig
106BOARD_KERNEL_SEPARATED_DTBO := true
107TARGET_KERNEL_CLANG_COMPILE := true
108TARGET_KERNEL_CLANG_VERSION := 6.0.2
109
micky38718f07ac2019-06-10 00:40:50 +0200110# Partitions
111BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
112BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
113BOARD_DTBOIMG_PARTITION_SIZE := 8388608
114BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2998927360
115BOARD_USERDATAIMAGE_PARTITION_SIZE := 118112366592
116BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
117TARGET_COPY_OUT_VENDOR := vendor
118
119# Platform
120TARGET_BOARD_PLATFORM := msmnile
121TARGET_BOARD_PLATFORM_GPU := qcom-adreno640
122
123# Properties
124BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
125
126# Recovery
127BOARD_USES_RECOVERY_AS_BOOT := true
128TARGET_NO_RECOVERY := true
129TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery.fstab
130TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
131TARGET_USERIMAGES_USE_EXT4 := true
132TARGET_USERIMAGES_USE_F2FS := true
133TARGET_USES_MKE2FS := true