0% found this document useful (0 votes)
165 views2 pages

Board Config

This document contains build definitions for hardware-specific components for a device. It specifies details for the bootloader, platform, architecture, kernels, partitions, recovery, and support for TWRP and multi-ROM functionality.

Uploaded by

Zeeshan Hussain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
165 views2 pages

Board Config

This document contains build definitions for hardware-specific components for a device. It specifies details for the bootloader, platform, architecture, kernels, partitions, recovery, and support for TWRP and multi-ROM functionality.

Uploaded by

Zeeshan Hussain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

#

#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#

Copyright 2016 The Android Open Source Project


Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
This contains the module build definitions for the hardware-specific
components for this device.
As much as possible, those components should be built unconditionally,
with device-specific names to avoid collisions, to avoid device-specific
bitrot and build breakages. Building a component unconditionally does
*not* include it on all devices, so it is safe even with hardware-specific
components.

# Bootloader
TARGET_NO_BOOTLOADER := true
TARGET_BOOTLOADER_BOARD_NAME := MSM8952
# Platform
TARGET_BOARD_PLATFORM := msm8952
TARGET_BOARD_PLATFORM_GPU := qcom-adreno510
TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/
# Architecture
TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-a
TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_ABI2 :=
TARGET_CPU_VARIANT := generic
TARGET_CPU_SMP := true
TARGET_2ND_ARCH := arm
TARGET_2ND_ARCH_VARIANT := armv7-a-neon
TARGET_2ND_CPU_ABI := armeabi-v7a
TARGET_2ND_CPU_ABI2 := armeabi
TARGET_2ND_CPU_VARIANT := generic
# Flags
TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
# Kernel
BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_CMDLINE := androidboot.console=ttyHSL0 androidboot.hardware=qcom ms
m_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_leve
ls.sleep_disabled=1 earlyprintk
BOARD_KERNEL_PAGESIZE := 2048
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x00000100 -dt device/xiaomi/kenzo/dt.img

BOARD_CUSTOM_BOOTIMG_MK := device/xiaomi/kenzo/mkbootimg.mk
TARGET_PREBUILT_KERNEL := device/xiaomi/kenzo/kernel
# Partitions
BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2684354560
BOARD_USERDATAIMAGE_PARTITION_SIZE := 26838785024 # (26838801408 - 16384)
BOARD_FLASH_BLOCK_SIZE := 131072
# Recovery
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
# TWRP
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TARGET_RECOVERY_QCOM_RTC_FIX := true
BOARD_SUPPRESS_SECURE_ERASE := true
RECOVERY_SDCARD_ON_DATA := true
TW_DEFAULT_EXTERNAL_STORAGE := true
TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness
TW_INCLUDE_CRYPTO := true
TW_THEME := portrait_hdpi
HAS_MOUSE := 0
# MULTIROM
TARGET_RECOVERY_IS_MULTIROM := true
MR_INPUT_TYPE := type_a
MR_INIT_DEVICES := device/xiaomi/kenzo/multirom/mr_init_devices.c
DEVICE_RESOLUTION := 1080 x 1920
MR_DPI := hdpi
MR_DPI_FONT := 216
MR_FSTAB := device/xiaomi/kenzo/twrp.fstab
MR_DEVICE_HOOKS := device/xiaomi/kenzo/multirom/mr_hooks.c
MR_KEXEC_MEM_MIN := 0x0
MR_DEVICE_HOOKS_VER := 5
MR_DEVICE_VARIANTS := kenzo

You might also like