forked from ikarosdev/android_device_motorola_triumph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
triumph.mk
190 lines (161 loc) · 9.37 KB
/
triumph.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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
$(call inherit-product-if-exists, vendor/motorola/triumph/triumph-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += device/motorola/triumph/overlay
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/motorola/triumph/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
PRODUCT_PACKAGES += \
Gallery3d \
SpareParts \
Term \
Torch \
DeskClock \
Pacman \
gps.triumph \
lights.triumph \
gralloc.msm7x30 \
overlay.default \
libOmxCore \
libOmxVenc \
libOmxVdec
# Init files
PRODUCT_COPY_FILES += \
device/motorola/triumph/init.qcom.rc:root/init.qcom.rc \
device/motorola/triumph/ueventd.triumph.rc:root/ueventd.triumph.rc
# init.d task management
PRODUCT_COPY_FILES += \
device/motorola/triumph/prebuilt/etc/99memory:/system/etc/init.d/99memory
# vold
PRODUCT_COPY_FILES += \
device/motorola/triumph/vold.fstab:system/etc/vold.fstab
# Permissions
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/handheld_core_hardware.xml:/system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:/system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/base/data/etc/android.hardware.camera.autofocus.xml:/system/etc/permissions/android.hardware.camera.autofocus.xml \
frameworks/base/data/etc/android.hardware.camera.xml:/system/etc/permissions/android.hardware.camera.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:/system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:/system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:/system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.sensor.compass.xml:/system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/base/data/etc/android.hardware.sensor.light.xml:/system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/base/data/etc/android.hardware.sensor.accelerometer.xml:/system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.xml:/system/etc/permissions/android.hardware.touchscreen.multitouch.xml
# init scripts
PRODUCT_COPY_FILES += \
device/motorola/triumph/files/etc/init.qcom.bt.sh:/system/etc/init.qcom.bt.sh \
device/motorola/triumph/files/etc/init.qcom.coex.sh:/system/etc/init.qcom.coex.sh\
device/motorola/triumph/files/etc/init.qcom.bt.sh:/system/etc/init.qcom.fm.sh \
device/motorola/triumph/files/etc/init.qcom.sdio.sf6.sh:/system/etc/init.qcom.sdio.sf6.sh \
device/motorola/triumph/files/etc/init.qcom.sdio.sh:/system/etc/init.qcom.sdio.sh \
device/motorola/triumph/files/etc/init.qcom.wifi.sh:/system/etc/init.qcom.wifi.sh
# Keychars
#PRODUCT_COPY_FILES += \
# device/motorola/triumph/keychars/fih_headsethook.kcm.bin:system/usr/keychars/fih_headsethook.kcm.bin \
# device/motorola/triumph/keychars/fih_ringswitch.kcm.bin:system/usr/keychars/fih_ringswitch.kcm.bin \
# device/motorola/triumph/keychars/qwerty2.kcm.bin:system/usr/keychars/qwerty2.kcm.bin \
# device/motorola/triumph/keychars/qwerty.kcm.bin:system/usr/keychars/qwerty.kcm.bin \
# device/motorola/triumph/keychars/sf6_kybd.kcm.bin:system/usr/keychars/sf6_kybd.kcm.bin \
# device/motorola/triumph/keychars/sf8_kybd.kcm.bin:system/usr/keychars/sf8_kybd.kcm.bin \
# device/motorola/triumph/keychars/surf_keypad.kcm.bin:system/usr/keychars/surf_keypad.kcm.bin \
# device/motorola/triumph/keychars/surf_keypad_qwerty.kcm.bin:system/usr/keychars/surf_keypad_qwerty.kcm.bin \
# device/motorola/triumph/keychars/surf_keypad_numeric.kcm.bin:system/usr/keychars/surf_keypad_numeric.kcm.bin
#
# Keylayouts
PRODUCT_COPY_FILES += \
device/motorola/triumph/keylayout/fih_headsethook.kl:system/usr/keylayout/fih_headsethook.kl \
device/motorola/triumph/keylayout/fih_ringswitch.kl:system/usr/keylayout/fih_ringswitch.kl \
device/motorola/triumph/keylayout/fluid-keypad.kl:system/usr/keylayout/fluid-keypad.kl \
device/motorola/triumph/keylayout/fbx_kybd.kl:system/usr/keylayout/fbx_kybd.kl \
device/motorola/triumph/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl \
device/motorola/triumph/keylayout/sf6_kybd.kl:system/usr/keylayout/sf6_kybd.kl \
device/motorola/triumph/keylayout/sf8_kybd.kl:system/usr/keylayout/sf8_kybd.kl \
device/motorola/triumph/keylayout/msm_tma300_ts.kl:system/usr/keylayout/msm_tma300_ts.kl \
device/motorola/triumph/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \
device/motorola/triumph/keylayout/7k_handset.kl:system/usr/keylayout/7k_handset.kl \
device/motorola/triumph/keylayout/surf_keypad.kl:system/usr/keylayout/surf_keypad.kl
# Video firmware
PRODUCT_COPY_FILES += \
device/motorola/triumph/files/etc/firmware/vidc_720p_command_control.fw:/system/etc/firmware/vidc_720p_command_control.fw \
device/motorola/triumph/files/etc/firmware/vidc_720p_h263_dec_mc.fw:/system/etc/firmware/vidc_720p_h263_dec_mc.fw \
device/motorola/triumph/files/etc/firmware/vidc_720p_h264_dec_mc.fw:/system/etc/firmware/vidc_720p_h264_dec_mc.fw \
device/motorola/triumph/files/etc/firmware/vidc_720p_h264_enc_mc.fw:/system/etc/firmware/vidc_720p_h264_enc_mc.fw \
device/motorola/triumph/files/etc/firmware/vidc_720p_mp4_dec_mc.fw:/system/etc/firmware/vidc_720p_mp4_dec_mc.fw \
device/motorola/triumph/files/etc/firmware/vidc_720p_mp4_enc_mc.fw:/system/etc/firmware/vidc_720p_mp4_enc_mc.fw \
device/motorola/triumph/files/etc/firmware/vidc_720p_vc1_dec_mc.fw:/system/etc/firmware/vidc_720p_vc1_dec_mc.fw \
device/motorola/triumph/files/etc/firmware/yamato_pfp.fw:/system/etc/firmware/yamato_pfp.fw \
device/motorola/triumph/files/etc/firmware/yamato_pm4.fw:/system/etc/firmware/yamato_pm4.fw
# Wifi and filesystems
PRODUCT_COPY_FILES += \
device/motorola/triumph/modules/libra.ko:/system/lib/modules/libra.ko \
device/motorola/triumph/modules/librasdioif.ko:/system/lib/modules/librasdioif.ko \
device/motorola/triumph/modules/libra_ftm.ko:/system/lib/modules/libra_ftm.ko \
device/motorola/triumph/modules/cifs.ko:/system/lib/modules/cifs.ko \
device/motorola/triumph/files/etc/firmware/wlan/qcom_fw.bin:/system/etc/firmware/wlan/qcom_fw.bin \
device/motorola/triumph/files/etc/firmware/wlan/qcom_wapi_fw.bin:/system/etc/firmware/wlan/qcom_wapi_fw.bin \
device/motorola/triumph/files/etc/firmware/wlan/qcom_wlan_nv.bin:/system/etc/firmware/wlan/qcom_wlan_nv.bin \
device/motorola/triumph/files/etc/firmware/wlan/cfg.dat:/system/etc/firmware/wlan/cfg.dat \
device/motorola/triumph/files/etc/hostapd/hostapd.conf:/system/etc/hostapd/hostapd.conf \
device/motorola/triumph/files/etc/firmware/wlan/qcom_cfg.ini:/system/etc/firmware/wlan/qcom_cfg.ini \
device/motorola/triumph/files/etc/wifi/wpa_supplicant.conf:/system/etc/wifi/wpa_supplicant.conf
# GPS
PRODUCT_COPY_FILES += \
device/motorola/triumph/files/etc/loc_parameter.ini:system/etc/loc_parameter.ini
# Tunnelling
PRODUCT_COPY_FILES += \
device/motorola/triumph/modules/tun.ko:/system/lib/modules/tun.ko
# APN
PRODUCT_COPY_FILES += \
device/motorola/triumph/files/etc/apns-conf.xml:system/etc/apns-conf.xml
# Camera
PRODUCT_COPY_FILES += \
vendor/motorola/triumph/cherry/libcamera.so:/system/lib/libcamera.so \
vendor/motorola/triumph/cherry/libcamera.so:/obj/lib/libcamera.so \
vendor/motorola/triumph/cherry/liboemcamera.so:/system/lib/liboemcamera.so \
vendor/motorola/triumph/proprietary/libmmjpeg.so:/system/lib/libmmjpeg.so \
vendor/motorola/triumph/proprietary/libmmipl.so:/system/lib/libmmipl.so
# Sensors
PRODUCT_COPY_FILES += \
vendor/motorola/triumph/cherry/sensors.qcom.so:/system/lib/hw/sensors.qcom.so
# xml config
PRODUCT_COPY_FILES += \
device/motorola/triumph/files/etc/media_profiles.xml:system/etc/media_profiles.xml
# The OpenGL ES API level that is natively supported by this device.
# This is a 16.16 fixed point number
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=131072
# Perfomance tweaks and misc
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.execution-mode=int:jit \
dalvik.vm.heapsize=32m \
persist.sys.use_dithering=1 \
ro.sf.lcd_density=240 \
ro.compcache.default=0
# Properties taken from build.prop
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=android-motorola \
ro.com.google.clientidbase.yt=android-motorola \
ro.com.google.clientidbase.am=android-motorola \
ro.com.google.clientidbase.ms=android-motorola \
ro.com.google.clientidbase.gmm=android-motorola
# Triumph uses high-density artwork where available
PRODUCT_LOCALES += hdpi
# Set region
PRODUCT_DEFAULT_LANGUAGE := en_US
PRODUCT_DEFAULT_REGION := US
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
$(call inherit-product, build/target/product/full.mk)
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := motorola_triumph
PRODUCT_DEVICE := triumph
PRODUCT_BRAND := Motorola
PRODUCT_MODEL := WX435
PRODUCT_MANUFACTURER := Motorola