blob: b028c2422cacf0e54ecb1211d37287bdb535971f [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
micky387679a11f2019-06-11 02:18:20 +020085# Kernel
86BOARD_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
87BOARD_KERNEL_CMDLINE += androidboot.avb_version=1.0 androidboot.vbmeta.avb_version=1.0
88BOARD_KERNEL_PAGESIZE := 4096
89BOARD_KERNEL_BASE := 0x00000000
90BOARD_KERNEL_TAGS_OFFSET := 0x00008000
91BOARD_RAMDISK_OFFSET := 0x01000000
92BOARD_TAGS_OFFSET := 0x00000100
93TARGET_KERNEL_ARCH := arm64
94TARGET_KERNEL_HEADER_ARCH := arm64
95TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-
96BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
97TARGET_COMPILE_WITH_MSM_KERNEL := true
98TARGET_KERNEL_SOURCE := kernel/asus/zenfone6
99TARGET_KERNEL_CONFIG := vendor/zs630kl_defconfig
100BOARD_KERNEL_SEPARATED_DTBO := true
101TARGET_KERNEL_CLANG_COMPILE := true
102TARGET_KERNEL_CLANG_VERSION := 6.0.2
103
micky38718f07ac2019-06-10 00:40:50 +0200104# Partitions
105BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
106BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
107BOARD_DTBOIMG_PARTITION_SIZE := 8388608
108BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2998927360
109BOARD_USERDATAIMAGE_PARTITION_SIZE := 118112366592
110BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
111TARGET_COPY_OUT_VENDOR := vendor
112
113# Platform
114TARGET_BOARD_PLATFORM := msmnile
115TARGET_BOARD_PLATFORM_GPU := qcom-adreno640
116
117# Properties
118BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
119
120# Recovery
121BOARD_USES_RECOVERY_AS_BOOT := true
122TARGET_NO_RECOVERY := true
123TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery.fstab
124TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
125TARGET_USERIMAGES_USE_EXT4 := true
126TARGET_USERIMAGES_USE_F2FS := true
127TARGET_USES_MKE2FS := true