-
Notifications
You must be signed in to change notification settings - Fork 3
/
BoardConfigCommon.mk
165 lines (132 loc) · 4.63 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# Copyright (C) 2009 The Android Open Source 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.
#
# This file sets variables that control the way modules are built
# thorughout the system. It should not be used to conditionally
# disable makefiles (the proper mechanism to control what gets
# included in a build is to use PRODUCT_PACKAGES in a product
# definition file).
#
# WARNING: This line must come *before* including the proprietary
# variant, so that it gets overwritten by the parent (which goes
# against the traditional rules of inheritance).
PLATFORM_PATH := device/htc/msm8960-common
BOARD_VENDOR := htc
TARGET_SPECIFIC_HEADER_PATH += device/htc/msm8960-common/include
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := MSM8960
TARGET_NO_BOOTLOADER := true
# Platform
TARGET_BOARD_PLATFORM := msm8960
TARGET_BOARD_PLATFORM_GPU := qcom-adreno200
# Architecture
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_VARIANT := generic
TARGET_CPU_VARIANT_RUNTIME := krait
BUILD_BROKEN_DUP_RULES := true
BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
RELAX_USES_LIBRARY_CHECK := true
# QCOM hardware
BOARD_USES_QCOM_HARDWARE := true
# Audio
BOARD_USES_ALSA_AUDIO := true
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
AUDIO_FEATURE_ENABLED_FLUENCE := true
AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
BOARD_HAVE_HTC_CSDCLIENT := true
USE_XML_AUDIO_POLICY_CONF := 1
USE_CUSTOM_AUDIO_POLICY := 1
# Binder API version
TARGET_USES_64_BIT_BINDER := true
# Bionic
TARGET_ALLOWS_INVALID_PTHREAD := true
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
# Camera
TARGET_HAS_LEGACY_CAMERA_HAL1 := true
TARGET_NEEDS_LEGACY_CAMERA_HAL1_DYN_NATIVE_HANDLE := true
TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS := true
TARGET_DISPLAY_INSECURE_MM_HEAP := true
USE_DEVICE_SPECIFIC_CAMERA := true
TARGET_USES_NON_TREBLE_CAMERA := true
TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY := camera_parameters_htc_msm8960
TARGET_PROCESS_SDK_VERSION_OVERRIDE := \
/system/bin/mm-qcamera-daemon=21 \
/system/bin/qseecomd=21 \
/system/vendor/bin/hw/[email protected]=21 \
/system/vendor/bin/hw/[email protected]=21 \
/system/vendor/bin/hw/rild=27 \
/system/bin/audioserver=21 \
/system/bin/mediaserver=21
# Charge mode
BOARD_CHARGING_MODE_BOOTING_LPM := /sys/htc_lpm/lpm_mode
WITH_LINEAGE_CHARGER := false
# Clang
TARGET_KERNEL_CLANG_COMPILE := false
# Graphics
HAVE_ADRENO_SOURCE := false
OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
# Extended Filesystem Support
TARGET_EXFAT_DRIVER := sdfat
# Filesystem
TARGET_FS_CONFIG_GEN := $(PLATFORM_PATH)/config.fs
# Graphics
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
TARGET_USES_C2D_COMPOSITION := true
TARGET_USES_ION := true
USE_OPENGL_RENDERER := true
SF_START_GRAPHICS_ALLOCATOR_SERVICE := true
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS := 0x02000000U
TARGET_DISABLE_POSTRENDER_CLEANUP := true
VSYNC_EVENT_PHASE_OFFSET_NS := 2000000
SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000
# GCC
TARGET_NEEDS_GCC_LIBC := true
# HIDL
DEVICE_MATRIX_FILE := $(PLATFORM_PATH)/compatibility_matrix.xml
DEVICE_MANIFEST_FILE := $(PLATFORM_PATH)/manifest.xml
PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true
# Keymaster
TARGET_KEYMASTER_SKIP_WAITING_FOR_QSEE := true
# Lights
TARGET_PROVIDES_LIBLIGHT := true
# Media
TARGET_NO_ADAPTIVE_PLAYBACK := true
# memfd
TARGET_HAS_MEMFD_BACKPORT := true
# Network Routing
TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE := true
# Power
TARGET_HAS_LEGACY_POWER_STATS := true
TARGET_USES_INTERACTION_BOOST := true
# Radio
TARGET_USES_OLD_MNC_FORMAT := true
BOARD_PROVIDES_LIBRIL := true
# Recovery
TARGET_RECOVERY_DEVICE_MODULES += chargeled
LZMA_RAMDISK_TARGETS := recovery
# Shims
TARGET_LD_SHIM_LIBS := \
/system/bin/mpdecision|libshims_atomic.so \
/system/vendor/lib/hw/camera.vendor.msm8960.so|libcamera_shim.so \
/system/lib/liblog.so|liblog_shim.so \
/system/vendor/lib/libril.so|libshims_ril.so \
/system/vendor/lib/libril-qc-qmi-1.so|libshims_ril.so \
/system/lib/libril-qc-qmi-1.so|libshims_ril.so \
/system/lib/libui.so|libui_shim.so