Adding logcat
[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
26# Architecture
27TARGET_ARCH := arm64
41b3d004 28TARGET_ARCH_VARIANT := armv8-2a
d52e70d1
SJ
29TARGET_CPU_ABI := arm64-v8a
30TARGET_CPU_ABI2 :=
41b3d004 31TARGET_CPU_VARIANT := cortex-a75
c5ff77ee 32
d52e70d1 33TARGET_2ND_ARCH := arm
41b3d004 34TARGET_2ND_ARCH_VARIANT := armv8-a
d52e70d1
SJ
35TARGET_2ND_CPU_ABI := armeabi-v7a
36TARGET_2ND_CPU_ABI2 := armeabi
41b3d004 37TARGET_2ND_CPU_VARIANT := cortex-a75
d52e70d1
SJ
38
39ENABLE_CPUSETS := true
40ENABLE_SCHEDBOOST := true
41
42# Bootloader
51cb0147 43TARGET_BOOTLOADER_BOARD_NAME := msmnile
d52e70d1 44TARGET_NO_BOOTLOADER := true
d52e70d1
SJ
45TARGET_USES_UEFI := true
46
d52e70d1 47# Kernel
51cb0147 48BOARD_KERNEL_CMDLINE := 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
4e657cd3 49BOARD_KERNEL_CMDLINE += skip_override androidboot.fastboot=1
c5ff77ee 50BOARD_KERNEL_BASE := 0x00000000
d52e70d1 51BOARD_KERNEL_PAGESIZE := 4096
51cb0147 52TARGET_PREBUILT_KERNEL := device/oneplus/guacamole/prebuilt/Image.gz-dtb
d52e70d1 53
c5ff77ee 54# Platform
51cb0147 55TARGET_BOARD_PLATFORM := msmnile
56TARGET_BOARD_PLATFORM_GPU := qcom-adreno640
57QCOM_BOARD_PLATFORMS += msmnile
c5ff77ee 58
d52e70d1 59# Partitions
80d272c6 60BOARD_FLASH_BLOCK_SIZE := 262144
caf65763 61
51cb0147 62BOARD_BOOTIMAGE_PARTITION_SIZE := 100663296
63BOARD_RECOVERYIMAGE_PARTITION_SIZE := 100663296
64BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3640655872
6178f87f 65BOARD_SYSTEMIMAGE_JOURNAL_SIZE := 0
66BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 4096
51cb0147 67BOARD_USERDATAIMAGE_PARTITION_SIZE := 115601780736
17c91b8c 68BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4
db1518aa 69BOARD_VENDORIMAGE_PARTITION_SIZE := 1073741824
caf65763
SS
70TARGET_USERIMAGES_USE_EXT4 := true
71TARGET_USERIMAGES_USE_F2FS := true
c5ff77ee 72
af762776 73TARGET_NO_KERNEL := false
74TARGET_NO_RECOVERY := false
75BOARD_USES_RECOVERY_AS_BOOT := true
76BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
77
6969ac25 78# Partitions (listed in the file) to be wiped under recovery.
51cb0147 79TARGET_RECOVERY_WIPE := device/oneplus/guacamole/recovery.wipe
80TARGET_RECOVERY_FSTAB := device/oneplus/guacamole/recovery.fstab
6969ac25 81
41b3d004 82
c5ff77ee 83# Workaround for error copying vendor files to recovery ramdisk
caf65763
SS
84BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
85TARGET_COPY_OUT_VENDOR := vendor
78cb5f12 86
d52e70d1
SJ
87# Recovery
88BOARD_HAS_LARGE_FILESYSTEM := true
c5ff77ee 89BOARD_HAS_NO_SELECT_BUTTON := true
c99dbeb1 90
d52e70d1 91# TWRP specific build flags
16c951e1 92BOARD_HAS_NO_REAL_SDCARD := true
d8bcc3d9 93RECOVERY_SDCARD_ON_DATA := true
c5ff77ee 94TARGET_RECOVERY_QCOM_RTC_FIX := true
c8503a7c 95TW_BRIGHTNESS_PATH := "/sys/class/backlight/panel0-backlight/brightness"
caf65763
SS
96TW_EXCLUDE_DEFAULT_USB_INIT := true
97TW_EXCLUDE_SUPERSU := true
98TW_EXTRA_LANGUAGES := true
bd2a0a16 99TW_INCLUDE_NTFS_3G := true
db1518aa 100AB_OTA_UPDATER := true
c5ff77ee 101TW_INPUT_BLACKLIST := "hbtp_vm"
41b3d004 102TW_MAX_BRIGHTNESS := 1023
23c3f0b1 103TW_DEFAULT_BRIGHTNESS := 420
3bc4b259 104TW_THEME := portrait_hdpi
8dde1ce7 105TARGET_RECOVERY_DEVICE_MODULES += android.hardware.boot@1.0
41b3d004 106TARGET_USE_CUSTOM_LUN_FILE_PATH := /config/usb_gadget/g1/functions/mass_storage.0/lun.%d/file
3ec3c203
EY
107TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888
108TW_NO_SCREEN_BLANK := true
c5c70837 109TW_USE_TOOLBOX := true
db1518aa 110
1bce1ff4 111# Use mke2fs to create ext4 images
112TARGET_USES_MKE2FS := true
113
6969ac25 114# A/B updater updatable partitions list. Keep in sync with the partition list
115# with "_a" and "_b" variants in the device. Note that the vendor can add more
116# more partitions to this list for the bootloader and radio.
117AB_OTA_PARTITIONS += \
118 boot \
119 system \
120 vendor \
121 vbmeta \
122 dtbo
123
db1518aa 124# Encryption
3ec3c203 125PLATFORM_SECURITY_PATCH := 2025-12-31
db1518aa 126TW_INCLUDE_CRYPTO := true
83e22127 127TW_INCLUDE_CRYPTO_FBE := true
51cb0147 128BOARD_USES_METADATA_PARTITION := true
80d272c6 129
130# Extras
131BOARD_SUPPRESS_SECURE_ERASE := true
132TW_USE_LEDS_HAPTICS := true
42e2e80d 133USE_RECOVERY_INSTALLER := true
51cb0147 134RECOVERY_INSTALLER_PATH := device/oneplus/guacamole/installer
41b3d004 135TW_EXCLUDE_TWRPAPP := true
3bc4b259 136TW_INCLUDE_REPACKTOOLS := true
3bc4b259 137TW_HAS_EDL_MODE := true
ee44b684 138TWRP_INCLUDE_LOGCAT := true
139TARGET_USES_LOGD := true