Use TWRP version of cryptfs_hw
[GitHub/moto-9609/twrp_device_motorola_troika.git] / BoardConfig.mk
CommitLineData
d52e70d1
SJ
1#
2# Copyright 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# This contains the module build definitions for the hardware-specific
18# components for this device.
19#
20# As much as possible, those components should be built unconditionally,
21# with device-specific names to avoid collisions, to avoid device-specific
22# bitrot and build breakages. Building a component unconditionally does
23# *not* include it on all devices, so it is safe even with hardware-specific
24# components.
25
2eb668a3
SS
26BOARD_PATH := device/oneplus/dumpling
27
d52e70d1
SJ
28# Architecture
29TARGET_ARCH := arm64
30TARGET_ARCH_VARIANT := armv8-a
31TARGET_CPU_ABI := arm64-v8a
32TARGET_CPU_ABI2 :=
33TARGET_CPU_VARIANT := generic
34
35TARGET_2ND_ARCH := arm
36TARGET_2ND_ARCH_VARIANT := armv7-a-neon
37TARGET_2ND_CPU_ABI := armeabi-v7a
38TARGET_2ND_CPU_ABI2 := armeabi
39TARGET_2ND_CPU_VARIANT := cortex-a9
40
41ENABLE_CPUSETS := true
42ENABLE_SCHEDBOOST := true
43
44# Bootloader
45TARGET_BOOTLOADER_BOARD_NAME := msm8998
46TARGET_NO_BOOTLOADER := true
d52e70d1
SJ
47TARGET_USES_UEFI := true
48
d52e70d1
SJ
49# Kernel
50BOARD_KERNEL_BASE := 0x00000000
b491187e 51BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 earlycon=msm_serial_dm,0xc1b0000 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_locator.enable=1 swiotlb=2048 androidboot.configfs=true androidboot.usbcontroller=a800000.dwc3 androidboot.selinux=permissive
d52e70d1 52BOARD_KERNEL_PAGESIZE := 4096
b491187e
SS
53BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
54BOARD_RAMDISK_OFFSET := 0x02000000
c213021e 55TARGET_PREBUILT_KERNEL := device/oneplus/dumpling/prebuilt/Image.gz-dtb
d52e70d1 56
b491187e
SS
57TARGET_KERNEL_ARCH := arm64
58TARGET_KERNEL_HEADER_ARCH := arm64
59TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-
60TARGET_USES_UNCOMPRESSED_KERNEL := false
61
d52e70d1
SJ
62# Platform
63TARGET_BOARD_PLATFORM := msm8998
64TARGET_BOARD_PLATFORM_GPU := qcom-adreno540
65
66# Partitions
12e041e4 67BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000
d52e70d1 68BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
12e041e4
SS
69BOARD_USERDATAIMAGE_PARTITION_SIZE := 10737418240
70BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
71BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
72BOARD_PERSISTIMAGE_PARTITION_SIZE := 33554432
73BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4
b491187e 74BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
16c951e1
SS
75BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
76TARGET_COPY_OUT_VENDOR := vendor
d52e70d1 77
78cb5f12
SS
78# Crypto
79TARGET_HW_DISK_ENCRYPTION := true
2eb668a3 80TARGET_CRYPTFS_HW_PATH := $(BOARD_PATH)/cryptfs_hw
78cb5f12 81
d52e70d1
SJ
82# Recovery
83BOARD_HAS_LARGE_FILESYSTEM := true
84BOARD_HAS_NO_SELECT_BUTTON := true
85TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
86TARGET_USERIMAGES_USE_EXT4 := true
87TARGET_USERIMAGES_USE_F2FS := true
88
b491187e
SS
89TARGET_USES_ION := true
90TARGET_USES_NEW_ION_API :=true
b491187e 91TARGET_NO_RPC := true
b491187e 92TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/
b491187e 93TARGET_INIT_COLDBOOT_TIMEOUT := 8
b491187e
SS
94NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
95TARGET_KERNEL_APPEND_DTB := true
96TARGET_COMPILE_WITH_MSM_KERNEL := true
97
98#Enable SSC Feature
99TARGET_USES_SSC := true
100
101# Enable sensor multi HAL
102USE_SENSOR_MULTI_HAL := true
103
d52e70d1 104# TWRP specific build flags
16c951e1 105TW_THEME := portrait_hdpi
d52e70d1 106RECOVERY_SDCARD_ON_DATA := true
16c951e1 107BOARD_HAS_NO_REAL_SDCARD := true
d52e70d1
SJ
108TARGET_RECOVERY_QCOM_RTC_FIX := true
109TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness"
16c951e1
SS
110TW_MAX_BRIGHTNESS := 255
111TW_DEFAULT_BRIGHTNESS := 150
d52e70d1 112TW_EXTRA_LANGUAGES := true
d52e70d1
SJ
113TW_INCLUDE_NTFS_3G := true
114TW_INPUT_BLACKLIST := "hbtp_vm"
16c951e1 115TW_EXCLUDE_SUPERSU := true
3bdda247
SS
116TW_EXCLUDE_DEFAULT_USB_INIT := true
117TW_NO_USB_STORAGE := true
d52e70d1 118TW_SCREEN_BLANK_ON_BOOT := true
e04a1869 119TW_INCLUDE_CRYPTO := true