Files
android_device_samsung_rube…/BoardConfig.mk
T

90 lines
3.2 KiB
Makefile

# BoardConfig for rubenslte (SM-T365 msm8226) TWRP builds.
#
# The kernel is built from source (kernel/samsung/rubenslte, Samsung msm8226
# stock tree) and shipped as a separate device tree blob (dt.img) that the
# bootloader uses to pick the right DTB per hardware variant. All boot-image
# work (mkbootimg, dt.img, ramdisk trim) happens in mkbootimg.mk.
DEVICE_TREE := device/samsung/rubenslte
# Architecture
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := krait
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_SMP := true
ARCH_ARM_HAVE_TLS_REGISTER := true
# Board
TARGET_BOARD_PLATFORM := msm8226
TARGET_BOARD_PLATFORM_GPU := qcom-adreno305
TARGET_BOOTLOADER_BOARD_NAME := MSM8226
# Bootloader
TARGET_NO_BOOTLOADER := true
BOARD_VENDOR := samsung
# Kernel (built from source)
TARGET_KERNEL_SOURCE := kernel/samsung/rubenslte
TARGET_KERNEL_ARCH := arm
TARGET_KERNEL_HEADER_ARCH := arm
TARGET_KERNEL_CONFIG := msm8226-sec_defconfig
TARGET_KERNEL_VARIANT_CONFIG := msm8926-sec_rubenslte_defconfig
TARGET_KERNEL_SELINUX_CONFIG := selinux_defconfig
KERNEL_TOOLCHAIN_PREFIX := arm-eabi-
# Boot image with separate device tree blob (dt.img via dtbtool)
BOARD_CUSTOM_BOOTIMG_MK := $(DEVICE_TREE)/mkbootimg.mk
BOARD_KERNEL_SEPARATED_DT := true
# NOTE: these two must stay *recursive* ("=", not ":="). BoardConfig.mk is
# parsed by build/envsetup.mk before PRODUCT_OUT/KERNEL_OUT are defined, while
# mkbootimg.mk is included from build/core/Makefile:993 -- before
# build/core/tasks/kernel.mk (included at :1942) defines KERNEL_OUT.
# ":=" would freeze empty values here and break the dt.img rule.
INSTALLED_DTIMAGE_TARGET = $(PRODUCT_OUT)/dt.img
BOARD_KERNEL_CMDLINE := console=null androidboot.console=null androidboot.hardware=qcom user_debug=23 androidboot.selinux=permissive
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_MKBOOTIMG_ARGS = --kernel_offset 0x00008000 --ramdisk_offset 0x02000000 --tags_offset 0x01e00000 --dt $(INSTALLED_DTIMAGE_TARGET)
# Filesystems
BOARD_HAS_LARGE_FILESYSTEM := true
TARGET_USERIMAGES_USE_EXT4 := true
# F2FS intentionally NOT enabled: the rubenslte kernel has no F2FS driver,
# so offering "Data (F2FS)" in the TWRP format menu would only produce an
# unreadable /data partition.
BOARD_SUPPRESS_SECURE_ERASE := true
# Partitions
BOARD_BOOTIMAGE_PARTITION_SIZE := 10485248
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 10485248
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2411724288
BOARD_USERDATAIMAGE_PARTITION_SIZE := 12843662336
BOARD_CACHEIMAGE_PARTITION_SIZE := 314572288
BOARD_FLASH_BLOCK_SIZE := 131072
# Time services
BOARD_USES_QC_TIME_SERVICES := true
TARGET_RECOVERY_QCOM_RTC_FIX := true
# TWRP
TW_THEME := portrait_mdpi
RECOVERY_SDCARD_ON_DATA := true
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness"
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/msm_hsusb/gadget/lun%d/file"
TW_MAX_BRIGHTNESS := 255
TW_DEFAULT_BRIGHTNESS := 128
TW_NO_REBOOT_BOOTLOADER := true
TW_HAS_DOWNLOAD_MODE := true
TW_MTP_DEVICE := "/dev/mtp_usb"
TW_EXCLUDE_TWRPAPP := true
TW_NO_EXFAT_FUSE := true
TW_EXCLUDE_BASH := true
TW_EXCLUDE_TZDATA := true
TW_EXCLUDE_NANO := true
TW_NO_SSH := true