forked from LineageOS/android_device_samsung_gts2-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoardConfigCommon.mk
51 lines (41 loc) · 1.33 KB
/
BoardConfigCommon.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
LOCAL_PATH := device/samsung/gts2-common
# Platform
TARGET_SLSI_VARIANT := cm
TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true
# Extracted with libbootimg
BOARD_KERNEL_IMAGE_NAME := zImage
BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_SEPARATED_DT := true
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100
TARGET_CUSTOM_DTBTOOL := dtbhtoolExynos
# Include path
TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
# Boot animation
TARGET_BOOTANIMATION_PRELOAD := true
TARGET_BOOTANIMATION_TEXTURE_CACHE := true
# Per LineageOS required...
TARGET_SCREEN_HEIGHT := 2048
TARGET_SCREEN_WIDTH := 1536
# Recovery
#RECOVERY_VARIANT := twrp
BOARD_HAS_DOWNLOAD_MODE := true
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/ramdisk/fstab.universal5433
# TWRP
ifeq ($(RECOVERY_VARIANT),twrp)
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery/twrp.fstab
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TW_BRIGHTNESS_PATH := /sys/class/backlight/panel/brightness
TW_MAX_BRIGHTNESS := 255
TW_NO_REBOOT_BOOTLOADER := true
TW_INCLUDE_CRYPTO := true
TW_HAS_DOWNLOAD_MODE := true
TW_NO_EXFAT_FUSE := true
TW_EXCLUDE_SUPERSU := true
endif
# SELinux
BOARD_SEPOLICY_DIRS := device/samsung/gts2-common/sepolicy
# Seccomp filters
BOARD_SECCOMP_POLICY := device/samsung/gts2-common/seccomp
# Inherit board specific defines
include $(LOCAL_PATH)/board_defines/*.mk