TEMP: Remove the logic for init
[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
467c5ea6 28TARGET_ARCH_VARIANT := armv8-a
d52e70d1
SJ
29TARGET_CPU_ABI := arm64-v8a
30TARGET_CPU_ABI2 :=
467c5ea6 31TARGET_CPU_VARIANT := cortex-a73
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
467c5ea6 37TARGET_2ND_CPU_VARIANT := cortex-a53
d52e70d1
SJ
38
39ENABLE_CPUSETS := true
40ENABLE_SCHEDBOOST := true
41
42# Bootloader
467c5ea6 43TARGET_BOOTLOADER_BOARD_NAME := exynos5
d52e70d1 44TARGET_NO_BOOTLOADER := true
d52e70d1
SJ
45TARGET_USES_UEFI := true
46
d52e70d1 47# Kernel
467c5ea6 48BOARD_KERNEL_CMDLINE := androidboot.hardware=exynos9610 androidboot.console=ttyGS0 androidboot.memcg=1 video=vfb:640x400,bpp=32,memsize=3072000 service_locator.enable=1 swiotlb=2048 loop.max_part=7 androidboot.usbcontroller=13200000.dwc3
49BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
50BOARD_KERNEL_BASE := 0x10008000
d52e70d1 51BOARD_KERNEL_PAGESIZE := 4096
467c5ea6 52TARGET_PREBUILT_KERNEL := device/motorola/troika/prebuilt/Image.gz-dtb
d52e70d1 53
c5ff77ee 54# Platform
467c5ea6 55TARGET_BOARD_PLATFORM := exynos5
56TARGET_BOARD_PLATFORM_GPU := mali-g72
c5ff77ee 57
89ba5902 58PRODUCT_SOONG_NAMESPACES += device/motorola/troika
59TARGET_RECOVERY_DEVICE_MODULES += android.hardware.boot@1.0-impl.exynos
60
d52e70d1 61# Partitions
80d272c6 62BOARD_FLASH_BLOCK_SIZE := 262144
caf65763 63
467c5ea6 64BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
65BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864
66BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
6178f87f 67BOARD_SYSTEMIMAGE_JOURNAL_SIZE := 0
68BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := 4096
467c5ea6 69BOARD_USERDATAIMAGE_PARTITION_SIZE := 118974455808
17c91b8c 70BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := ext4
467c5ea6 71BOARD_VENDORIMAGE_PARTITION_SIZE := 805306368
caf65763
SS
72TARGET_USERIMAGES_USE_EXT4 := true
73TARGET_USERIMAGES_USE_F2FS := true
c5ff77ee 74
af762776 75TARGET_NO_KERNEL := false
76TARGET_NO_RECOVERY := false
77BOARD_USES_RECOVERY_AS_BOOT := true
78BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
79
6969ac25 80# Partitions (listed in the file) to be wiped under recovery.
467c5ea6 81TARGET_RECOVERY_WIPE := device/motorola/troika/recovery.wipe
82TARGET_RECOVERY_FSTAB := device/motorola/troika/recovery.fstab
6969ac25 83
41b3d004 84
c5ff77ee 85# Workaround for error copying vendor files to recovery ramdisk
caf65763
SS
86BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
87TARGET_COPY_OUT_VENDOR := vendor
78cb5f12 88
e93a0c47 89#Init
467c5ea6 90TARGET_INIT_VENDOR_LIB := libinit_troika
91TARGET_RECOVERY_DEVICE_MODULES := libinit_troika
e93a0c47 92TARGET_PLATFORM_DEVICE_BASE := /devices/soc/
93
d52e70d1
SJ
94# Recovery
95BOARD_HAS_LARGE_FILESYSTEM := true
c5ff77ee 96BOARD_HAS_NO_SELECT_BUTTON := true
c99dbeb1 97
d52e70d1 98# TWRP specific build flags
16c951e1 99BOARD_HAS_NO_REAL_SDCARD := true
d8bcc3d9 100RECOVERY_SDCARD_ON_DATA := true
c5ff77ee 101TARGET_RECOVERY_QCOM_RTC_FIX := true
c8503a7c 102TW_BRIGHTNESS_PATH := "/sys/class/backlight/panel0-backlight/brightness"
caf65763
SS
103TW_EXCLUDE_DEFAULT_USB_INIT := true
104TW_EXCLUDE_SUPERSU := true
105TW_EXTRA_LANGUAGES := true
bd2a0a16 106TW_INCLUDE_NTFS_3G := true
db1518aa 107AB_OTA_UPDATER := true
c5ff77ee 108TW_INPUT_BLACKLIST := "hbtp_vm"
41b3d004 109TW_MAX_BRIGHTNESS := 1023
23c3f0b1 110TW_DEFAULT_BRIGHTNESS := 420
9461b777 111TW_Y_OFFSET := 80
112TW_H_OFFSET := -80
3bc4b259 113TW_THEME := portrait_hdpi
8dde1ce7 114TARGET_RECOVERY_DEVICE_MODULES += android.hardware.boot@1.0
41b3d004 115TARGET_USE_CUSTOM_LUN_FILE_PATH := /config/usb_gadget/g1/functions/mass_storage.0/lun.%d/file
3ec3c203
EY
116TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888
117TW_NO_SCREEN_BLANK := true
c5c70837 118TW_USE_TOOLBOX := true
db1518aa 119
1bce1ff4 120# Use mke2fs to create ext4 images
121TARGET_USES_MKE2FS := true
122
6969ac25 123# A/B updater updatable partitions list. Keep in sync with the partition list
124# with "_a" and "_b" variants in the device. Note that the vendor can add more
125# more partitions to this list for the bootloader and radio.
126AB_OTA_PARTITIONS += \
127 boot \
128 system \
129 vendor \
130 vbmeta \
131 dtbo
132
80d272c6 133# Extras
134BOARD_SUPPRESS_SECURE_ERASE := true
467c5ea6 135#TW_USE_LEDS_HAPTICS := true
42e2e80d 136USE_RECOVERY_INSTALLER := true
467c5ea6 137RECOVERY_INSTALLER_PATH := device/motorola/troika/installer
41b3d004 138TW_EXCLUDE_TWRPAPP := true
3bc4b259 139TW_INCLUDE_REPACKTOOLS := true
ee44b684 140TWRP_INCLUDE_LOGCAT := true
141TARGET_USES_LOGD := true
467c5ea6 142#TW_NO_USB_STORAGE := true