This repository has been archived by the owner on Mar 28, 2020. It is now read-only.
forked from AICP/device_sony_msm8974-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
msm8974.mk
166 lines (140 loc) · 4.33 KB
/
msm8974.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
166
# 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.
COMMON_PATH := device/sony/msm8974-common
# Include HW subsystem-specific makefiles
-include $(LOCAL_PATH)/hardware/*/packages.mk
-include $(LOCAL_PATH)/hardware/*/copy.mk
-include $(LOCAL_PATH)/hardware/*/prop.mk
# Include msm8974-common system properties
-include $(LOCAL_PATH)/systemprop.mk
# inherit hidl hals
$(call inherit-product, device/sony/msm8974-common/hidl.mk)
# Permissions
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/rootdir/system/vendor/etc/permissions/permissions_sony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/permissions_sony.xml
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.primary.msm8974 \
audio.r_submix.default \
audio.usb.default \
audio_policy.msm8974
PRODUCT_PACKAGES += \
libaudio-resampler \
libqcompostprocbundle \
libqcomvisualizer \
libqcomvoiceprocessingdescriptors \
libqcomvoiceprocessing \
tinymix
# Audio configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
# Display
PRODUCT_PACKAGES += \
hwcomposer.msm8974 \
gralloc.msm8974 \
copybit.msm8974 \
memtrack.msm8974 \
libgenlock \
libmemalloc \
liboverlay \
libqdutils \
libtilerenderer \
libI420colorconvert
# GPS
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/gps/gps.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gps_debug.conf \
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
PRODUCT_PACKAGES += \
gps.msm8974 \
libloc_core \
libloc_eng \
libgps.utils \
libloc_ds_api \
libloc_api_v02
# Ion
PRODUCT_PACKAGES += \
libion
# Lights
PRODUCT_PACKAGES += \
lights.msm8974
# Media profile
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml
# Omx
PRODUCT_PACKAGES += \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxEvrcEnc \
libOmxQcelp13Enc \
libOmxVdec \
libOmxVenc \
libOmxVdecHevc \
libc2dcolorconvert \
libdivxdrmdecrypt \
libmm-omxcore \
libstagefrighthw
# Overlay
DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay
ifneq ($(BOARD_HAVE_RADIO),false)
DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay-radio
$(call inherit-product, $(COMMON_PATH)/radio.mk)
else
DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay-wifionly
endif
# Power
# now qti binderised
# Camera (stock blobs)
PRODUCT_PACKAGES += \
camera.qcom \
libshims_signal \
libshims_idd \
libsonycamera \
libshim_camera \
libshim_cald
# Snap Camera
PRODUCT_PACKAGES += \
Snap
# Recovery
PRODUCT_PACKAGES += \
keycheck
# Seccomp
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/seccomp/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
$(LOCAL_PATH)/seccomp/mediaextractor.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
# Mobile Data
PRODUCT_PACKAGES += \
librmnetctl \
libxml2
# Thermal management
PRODUCT_PACKAGES += \
thermanager
# TimeKeep for managing time offsets w.r.t. RTC
PRODUCT_PACKAGES += \
timekeep \
TimeKeep
# Wifi
PRODUCT_PACKAGES += \
libwpa_client \
hostapd \
wificond \
wifilogd \
wpa_supplicant \
wpa_supplicant.conf