forked from knuxdroid/android_device_pentagram_g12ref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoardConfig.mk
61 lines (49 loc) · 2.04 KB
/
BoardConfig.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
USE_CAMERA_STUB := true
# inherit from the proprietary version
-include vendor/pentagram/g12ref/BoardConfigVendor.mk
# These have been copied from https://github.com/FASTCHIP/TWRP_ritmix_rmd1035/blob/master/BoardConfigs/KK_UBIFS_classic_BoardConfig.mk
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_SMP := true
TARGET_CPU_VARIANT := cortex-a9
TARGET_ARCH_VARIANT := armv7-a-neon
ARCH_ARM_HAVE_VFP := true
TARGET_ARCH := arm
TARGET_ARCH_VARIANT_CPU := cortex-a9
TARGET_ARCH_VARIANT_FPU := neon
ARCH_ARM_HAVE_NEON := true
ARCH_ARM_HAVE_TLS_REGISTER := true
ARCH_ARM_HAVE_ARMV7A := true
TARGET_BOARD_PLATFORM := meson6
# Fun fact: According to the system.prop, the full board name is g12refM806A2PTGL, hence the "g12ref" codename has been given to this device. TODO: See if we'll need to add this full board name here.
TARGET_BOOTLOADER_BOARD_NAME := g12ref
TARGET_NO_BOOTLOADER := true
# TARGET_NO_KERNEL := true
TARGET_NO_RADIOIMAGE := true
TARGET_SIMULATOR := false
TARGET_PROVIDES_INIT_RC := true
BOARD_KERNEL_CMDLINE := console=ttyS0,115200 loglevel=8
BOARD_KERNEL_BASE := 0x10000000
BOARD_KERNEL_PAGESIZE := 2048
# fix this up by examining /proc/mtd on a running device
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00800000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00800000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x40000000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x40000000
BOARD_FLASH_BLOCK_SIZE := 131072
TARGET_PREBUILT_KERNEL := device/pentagram/g12ref/kernel
#BOARD_HAS_NO_SELECT_BUTTON := true
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/class/android_usb/android0/f_mass_storage/lun%d/file"
TARGET_RECOVERY_INITRC := device/pentagram/g12ref/rootdir/init.rc
TARGET_RECOVERY_FSTAB := device/pentagram/g12ref/rootdir/fstab.g12ref
DEVICE_RESOLUTION := 1024x768
TARGET_RECOVERY_PIXEL_FORMAT := "RGB_565"
#TW_FLASH_FROM_STORAGE := true
#TW_CUSTOM_POWER_BUTTON := 116
#TW_NO_REBOOT_BOOTLOADER := true
#TWHAVE_SELINUX := true
# TWRP
TW_THEME := portrait_mdpi
# TODO: See if this is actually required.
RECOVERY_SDCARD_ON_DATA := true
BOARD_HAS_NO_REAL_SDCARD := true