blob: ce1df0ca62c6150635e4113615b6aa4b160fbf52 [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
micky38752076e82019-06-11 02:23:57 +020056# Camera
57BOARD_USES_SNAPDRAGONCAMERA_VERSION := 2
58
micky38718f07ac2019-06-10 00:40:50 +020059# charger
60HEALTHD_USE_BATTERY_INFO := true
61BOARD_CHARGER_ENABLE_SUSPEND := true
62BOARD_CHARGER_DISABLE_INIT_BLANK := true
63
64# Dex
65ifeq ($(HOST_OS),linux)
66 ifneq ($(TARGET_BUILD_VARIANT),eng)
67 WITH_DEXPREOPT ?= true
68 endif
69endif
70WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= true
71
72# Display
73TARGET_USES_HWC2 := true
74
75# DRM
76TARGET_ENABLE_MEDIADRM_64 := true
77
78# Global
79BOARD_USES_QCOM_HARDWARE := true
80TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/include
81TARGET_SUPPORTS_32_BIT_APPS := true
82TARGET_SUPPORTS_64_BIT_APPS := true
83TARGET_USES_QCOM_BSP := false
84TARGET_USERIMAGES_USE_EXT4 := true
85TARGET_USERIMAGES_USE_F2FS := false
86TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
87
micky387679a11f2019-06-11 02:18:20 +020088# Kernel
89BOARD_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
90BOARD_KERNEL_CMDLINE += androidboot.avb_version=1.0 androidboot.vbmeta.avb_version=1.0
91BOARD_KERNEL_PAGESIZE := 4096
92BOARD_KERNEL_BASE := 0x00000000
93BOARD_KERNEL_TAGS_OFFSET := 0x00008000
94BOARD_RAMDISK_OFFSET := 0x01000000
95BOARD_TAGS_OFFSET := 0x00000100
96TARGET_KERNEL_ARCH := arm64
97TARGET_KERNEL_HEADER_ARCH := arm64
98TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-
99BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
100TARGET_COMPILE_WITH_MSM_KERNEL := true
101TARGET_KERNEL_SOURCE := kernel/asus/zenfone6
102TARGET_KERNEL_CONFIG := vendor/zs630kl_defconfig
103BOARD_KERNEL_SEPARATED_DTBO := true
104TARGET_KERNEL_CLANG_COMPILE := true
105TARGET_KERNEL_CLANG_VERSION := 6.0.2
106
micky38718f07ac2019-06-10 00:40:50 +0200107# Partitions
108BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
109BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
110BOARD_DTBOIMG_PARTITION_SIZE := 8388608
111BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2998927360
112BOARD_USERDATAIMAGE_PARTITION_SIZE := 118112366592
113BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
114TARGET_COPY_OUT_VENDOR := vendor
115
116# Platform
117TARGET_BOARD_PLATFORM := msmnile
118TARGET_BOARD_PLATFORM_GPU := qcom-adreno640
119
120# Properties
121BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
122
123# Recovery
124BOARD_USES_RECOVERY_AS_BOOT := true
125TARGET_NO_RECOVERY := true
126TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery.fstab
127TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
128TARGET_USERIMAGES_USE_EXT4 := true
129TARGET_USERIMAGES_USE_F2FS := true
130TARGET_USES_MKE2FS := true