forked from diepquynh/android_device_samsung_scx35-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoardConfigCommon.mk
115 lines (90 loc) · 3.03 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#
# Copyright (C) 2017-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from SPRD common configs
-include device/samsung/sprd-common/BoardConfigCommon.mk
# Architecture
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_VARIANT := cortex-a7
TARGET_CPU_SMP := true
ARCH_ARM_HAVE_TLS_REGISTER := true
# Platform
TARGET_BOARD_PLATFORM := sc8830
TARGET_NO_BOOTLOADER := true
BOARD_VENDOR := samsung
# Audio
BOARD_USES_TINYALSA_AUDIO := true
TARGET_TINY_ALSA_IGNORE_SILENCE_SIZE := true
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/samsung/scx35-common/bluetooth
BOARD_CUSTOM_BT_CONFIG := device/samsung/scx35-common/bluetooth/libbt_vndcfg.txt
# Extended Filesystem Support
TARGET_EXFAT_DRIVER := exfat
# RIL
TARGET_DISABLE_ASHMEM_TRACKING := true
# Graphics
USE_OPENGL_RENDERER := true
BOARD_EGL_NEEDS_HANDLE_VALUE := true
USE_SPRD_DITHER := true
USE_SPRD_HWCOMPOSER := true
TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
# HIDL
DEVICE_MANIFEST_FILE := device/samsung/scx35-common/configs/manifest.xml
# Codecs
BOARD_CANT_REALLOCATE_OMX_BUFFERS := true
# seccomp
#BOARD_SECCOMP_POLICY := device/samsung/scx35-common/seccomp # This flag is dead?
# SPRD hardware
BOARD_USES_SPRD_HARDWARE := true
# Kernel
BOARD_CUSTOM_BOOTIMG_MK := device/samsung/scx35-common/mkbootimg.mk
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_TAGS_OFFSET := 0x01d88000
BOARD_RAMDISK_OFFSET := 0x01000000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000
BOARD_KERNEL_SEPARATED_DT := true
BOARD_KERNEL_IMAGE_NAME := zImage
TARGET_KERNEL_CROSS_COMPILE_PREFIX := arm-eabi-
KERNEL_TOOLCHAIN := $(ANDROID_BUILD_TOP)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin
# Include an expanded selection of fonts
EXTENDED_FONT_FOOTPRINT := true
# Bionic
TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS := true
# PowerHAL
TARGET_POWERHAL_VARIANT := scx35
# Lights
TARGET_HAS_BACKLIT_KEYS := false
# Target shims
TARGET_LD_SHIM_LIBS := \
/system/vendor/bin/gpsd|libgps_shim.so
# Init
TARGET_INIT_VENDOR_LIB := libinit_sec
# GPS
TARGET_SPECIFIC_HEADER_PATH := device/samsung/scx35-common/include
# healthd
BOARD_HAL_STATIC_LIBRARIES := libhealthd.sc8830
# Properties
TARGET_SYSTEM_PROP += device/samsung/scx35-common/system.prop
# Charger
BOARD_CHARGER_ENABLE_SUSPEND := true
BOARD_NO_CHARGER_LED := true
BOARD_CHARGING_MODE_BOOTING_LPM := /sys/class/power_supply/battery/batt_lp_charging
CHARGING_ENABLED_PATH := /sys/class/power_supply/battery/batt_lp_charging
BACKLIGHT_PATH := /sys/class/backlight/panel/brightness
# Enable dex-preoptimization to speed up first boot sequence
WITH_DEXPREOPT := true
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := true
PRODUCT_DEX_PREOPT_BOOT_FLAGS += --compiler-filter=speed
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed
WITH_DEX_PREOPT_GENERATE_PROFILE := false
# SELinux policy
BOARD_SEPOLICY_DIRS += device/samsung/scx35-common/sepolicy