-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoardConfigCommon.mk
127 lines (103 loc) · 3.01 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
116
117
118
119
120
121
122
123
124
125
126
127
# Copyright (C) 2014 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# inherit from Sony common
include device/sony/common/BoardConfigCommon.mk
TARGET_NO_BOOTLOADER := true
TARGET_NO_RADIOIMAGE := true
# Kernel properties
TARGET_KERNEL_SOURCE := kernel/sony/msm8974
# use CAF variants
BOARD_USES_QCOM_HARDWARE := true
# Platform
TARGET_BOOTLOADER_BOARD_NAME := MSM8974
TARGET_BOARD_PLATFORM := msm8974
# Architecture
TARGET_ARCH := arm
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := krait
# Audio
BOARD_USES_ALSA_AUDIO := true
AUDIO_FEATURE_DISABLED_USBAUDIO := true
AUDIO_FEATURE_ENABLED_EXTN_POST_PROC := true
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
# Camera
TARGET_PROVIDES_CAMERA_HAL := true
# CM Hardware
BOARD_HARDWARE_CLASS += device/sony/msm8974-common/cmhw
# Font
EXTENDED_FONT_FOOTPRINT := true
# Graphics
USE_OPENGL_RENDERER := true
TARGET_USES_ION := true
TARGET_USES_C2D_COMPOSITION := true
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
# Shader cache config options
# Maximum size of the GLES Shaders that can be cached for reuse.
# Increase the size if shaders of size greater than 12KB are used.
MAX_EGL_CACHE_KEY_SIZE := 12*1024
# Maximum GLES shader cache size for each app to store the compiled shader
# binaries. Decrease the size if RAM or Flash Storage size is a limitation
# of the device.
MAX_EGL_CACHE_SIZE := 2048*1024
VSYNC_EVENT_PHASE_OFFSET_NS := 7500000
SF_VSYNC_EVENT_PHASE_OFFSET_NS := 5000000
BOARD_CUSTOM_BOOTIMG_MK := device/sony/msm8974-common/boot/custombootimg.mk
# Lights HAL
TARGET_PROVIDES_LIBLIGHT := true
# Logd
TARGET_USES_LOGD := false
# Power HAL
TARGET_POWERHAL_VARIANT := qcom
CM_POWERHAL_EXTENSION := qcom
# RIL
BOARD_PROVIDES_LIBRIL := true
BOARD_RIL_CLASS := ../../../device/sony/msm8974-common/ril/
# SELinux
include device/qcom/sepolicy/sepolicy.mk
BOARD_SEPOLICY_DIRS += \
device/sony/msm8974-common/sepolicy
# The list below is order dependent
BOARD_SEPOLICY_UNION += \
bluetooth.te \
device.te \
domain.te \
file.te \
location.te \
mac-update.te \
mediaserver.te \
mm-qcamerad.te \
mpdecision.te \
property.te \
radio.te \
rild.te \
sct.te \
sensors.te \
suntrold.te \
system_server.te \
tad.te \
taimport.te \
ta_qmi.te \
tee.te \
thermanager.te \
time_daemon.te \
wpa.te \
file_contexts \
genfs_contexts \
property_contexts
# Time
BOARD_USES_QC_TIME_SERVICES := true