-
Notifications
You must be signed in to change notification settings - Fork 0
/
msm8960.mk
102 lines (83 loc) · 2.58 KB
/
msm8960.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
# Copyright (C) 2012 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.
LOCAL_PATH := device/motorola/msm8960-common
$(call inherit-product, device/motorola/qcom-common/qcom-common.mk)
## overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# HAL
PRODUCT_PACKAGES += \
camera.msm8960 \
# GPS
PRODUCT_PACKAGES += \
gps.msm8960
# Motorola
PRODUCT_PACKAGES += \
batt_health \
charge_only_mode \
graphicsd \
mot_boot_mode
# Misc
PRODUCT_PACKAGES += \
DevicePerformanceSettingsHelper
# EGL config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/egl.cfg:system/lib/egl/egl.cfg
# GPS configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf
# Wifi
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wlan/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
$(LOCAL_PATH)/wlan/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini
# Ramdisk
PRODUCT_PACKAGES += \
fstab.qcom \
init.qcom.rc \
init.target.rc \
ueventd.qcom.rc
# Init scripts
PRODUCT_PACKAGES += \
init.qcom.post_boot.sh \
init.qcom.sh
# TWRP
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/twrp.fstab:recovery/root/etc/twrp.fstab
# Audio configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/config/snd_soc_msm_2x:system/etc/snd_soc_msm/snd_soc_msm_2x
# Media config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/config/media_codecs.xml:system/etc/media_codecs.xml
# Misc
PRODUCT_PROPERTY_OVERRIDES += \
ro.usb.mtp=0x2e32 \
ro.usb.mtp_adb=0x2e33 \
ro.usb.ptp=0x2e30 \
ro.usb.ptp_adb=0x2e31 \
ro.hdmi.enable=true
# Opengles version 2
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=131072
# Radio and Telephony
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.ril_class=MotorolaQualcommRIL
# Misc
PRODUCT_PROPERTY_OVERRIDES += \
persist.fuse_sdcard=true
# Wifi
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=30