-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoardConfig.mk
35 lines (27 loc) · 1.14 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
DEVICE_PATH := device/retroid/pocket2plus
# Inherit from t310-common
include device/retroid/t310-common/BoardConfigCommon.mk
# Prebuilt 2plus kernel
TARGET_PREBUILT_KERNEL := device/retroid/pocket2plus/prebuilt/kernel
# Kernel and recoveryimage generation
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
BOARD_MKBOOTIMG_ARGS += --base 0x00000000
BOARD_MKBOOTIMG_ARGS += --pagesize 2048
BOARD_MKBOOTIMG_ARGS += --ramdisk_offset 0x05400000
BOARD_MKBOOTIMG_ARGS += --tags_offset 0x00000100
BOARD_MKBOOTIMG_ARGS += --kernel_offset 0x00008000
BOARD_MKBOOTIMG_ARGS += --second_offset 0x00000000
BOARD_MKBOOTIMG_ARGS += --dtb_offset 0x01f00000
BOARD_MKBOOTIMG_ARGS += --header_version 2
BOARD_MKBOOTIMG_ARGS += --cmdline "console=ttyS1,115200n8 buildvariant=user androidboot.selinux=permissive enforcing=0"
BOARD_MKBOOTIMG_ARGS += --dtb $(PRODUCT_OUT)/dtb.img
# Recovery fstab
TARGET_RECOVERY_FSTAB := device/retroid/pocket2plus/recovery/recovery.fstab
BOARD_SUPPRESS_EMMC_WIPE := true
# Bootanimation generation
TARGET_SCREEN_HEIGHT := 480
TARGET_SCREEN_WIDTH := 640
# Display
TARGET_SCREEN_DENSITY := 176
# System prop
TARGET_SYSTEM_PROP += device/retroid/pocket2plus/system.prop