forked from CM9-D2G/android_device_motorola_omap34com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
276 lines (247 loc) · 11.2 KB
/
device.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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
#
# Copyright (C) 2011 The Android Open-Source Project
# Copyright (C) 2012 bikedude880
#
# 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 includes all definitions that apply to ALL omap34com devices, and
# are also specific to omap34com devices
#
# Everything in this directory will become public
DEVICE_PREBUILT := device/motorola/omap34com/prebuilt
DEVICE_PACKAGE_OVERLAYS := device/motorola/omap34com/overlay
# This device is xhdpi. However the platform doesn't
# currently contain all of the bitmaps at xhdpi density so
# we do this little trick to fall back to the hdpi version
# if the xhdpi doesn't exist.
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
# Camera
PRODUCT_PACKAGES := \
Camera camera.omap3 libcamera \
hwcomposer.default libui
# Modem
PRODUCT_PACKAGES += \
rild \
libril \
libreference-ril \
libreference-cdma-sms \
radiooptions
# ICS graphics
PRODUCT_PACKAGES += \
libEGL libGLESv2 libGLESv1_CM \
libdsswbhal ti_wfd_libs
ifeq ($(TARGET_USES_ION),true)
PRODUCT_PACKAGES += libion
endif
# Jpeg hw encoder/decoder
PRODUCT_PACKAGES += \
libstagefrighthw
# DSP
PRODUCT_PACKAGES += \
dspexec \
libbridge
# OMX
PRODUCT_PACKAGES += \
libLCML \
libOMX_Core \
libOMX.TI.AAC.decode \
libOMX.TI.AAC.encode \
libOMX.TI.AMR.encode \
libOMX.TI.AMR.decode \
libOMX.TI.MP3.decode \
libOMX.TI.Video.Decoder \
libOMX.TI.Video.encoder \
libOMX.TI.WBAMR.decode \
libOMX.TI.WBAMR.encode \
libOMX.TI.WMA.decode \
libOMX.TI.JPEG.Encoder \
libOMX.TI.JPEG.decoder \
libOMX.TI.ILBC.decode \
libOMX.TI.ILBC.encode \
libOMX.TI.VPP \
libVendor_ti_omx \
# Wifi
#PRODUCT_PACKAGES += \
# iwmulticall hostap wlan_loader wlan_cu wpa_supplicant \
# libhostapdcli libCustomWifi libwpa_client libtiOsLib \
# tiwlan.ini dhcpcd.conf wpa_supplicant.conf hostapd.conf \
# tiap_loader tiap_cu ndc
# Wifi
PRODUCT_PACKAGES += \
lib_driver_cmd_wl12xx \
dhcpcd.conf \
hostapd.conf \
wpa_supplicant.conf \
TQS_D_1.7.ini \
TQS_D_1.7_127x.ini \
crda \
regulatory.bin \
calibrator
# wifi props
#PRODUCT_PROPERTY_OVERRIDES += \
# wifi.interface=wlan0 \
# softap.interface=wlan0 \
# wifi.supplicant_scan_interval=60 \
# Bluetooth configuration files
PRODUCT_COPY_FILES += \
system/bluetooth/data/main.conf:system/etc/bluetooth/main.conf
# Core
PRODUCT_PACKAGES += \
mot_boot_mode charge_only_mode \
lights.omap3 usbd ping6
# Apps and bin
PRODUCT_PACKAGES += Superuser su FileManager Torch Usb Apollo GanOptimizer
# Live Wallpapers
PRODUCT_PACKAGES += \
LiveWallpapers LiveWallpapersPicker \
VisualizationWallpapers MagicSmokeWallpapers \
librs_jni
# Themes
PRODUCT_PACKAGES += ThemeChooser
# Key Layouts
PRODUCT_COPY_FILES := \
$(DEVICE_PREBUILT)/usr/idc/cpcap-key.idc:system/usr/idc/cpcap-key.idc \
$(DEVICE_PREBUILT)/usr/idc/light-prox.idc:system/usr/idc/light-prox.idc \
$(DEVICE_PREBUILT)/usr/idc/qtouch-touchscreen.idc:system/usr/idc/qtouch-touchscreen.idc \
$(DEVICE_PREBUILT)/usr/idc/sholes-keypad.idc:system/usr/idc/sholes-keypad.idc \
$(DEVICE_PREBUILT)/usr/keylayout/cpcap-key.kl:system/usr/keylayout/cpcap-key.kl \
$(DEVICE_PREBUILT)/usr/keylayout/qtouch-touchscreen.kl:system/usr/keylayout/qtouch-touchscreen.kl \
$(DEVICE_PREBUILT)/usr/keylayout/sholes-keypad.kl:system/usr/keylayout/sholes-keypad.kl \
$(DEVICE_PREBUILT)/usr/keychars/cpcap-key.kcm:system/usr/keychars/cpcap-key.kcm \
$(DEVICE_PREBUILT)/usr/keychars/qtouch-touchscreen.kcm:system/usr/keychars/qtouch-touchscreen.kcm \
$(DEVICE_PREBUILT)/usr/keychars/sholes-keypad.kcm:system/usr/keychars/sholes-keypad.kcm
# DSP
PRODUCT_COPY_FILES += \
$(DEVICE_PREBUILT)/TI_DSP/bios/baseimage.dof:system/lib/dsp/baseimage.dof \
$(DEVICE_PREBUILT)/TI_DSP/codecs/720p_h264vdec_sn.dll64P:system/lib/dsp/720p_h264vdec_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/720p_h264venc_sn.dll64P:system/lib/dsp/720p_h264venc_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/720p_mp4vdec_sn.dll64P:system/lib/dsp/720p_mp4vdec_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/720p_mp4venc_sn.dll64P:system/lib/dsp/720p_mp4venc_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/conversions.dll64P:system/lib/dsp/conversions.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/h264vdec_sn.dll64P:system/lib/dsp/h264vdec_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/h264venc_sn.dll64P:system/lib/dsp/h264venc_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/jpegenc_sn.dll64P:system/lib/dsp/jpegenc_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/m4venc_sn.dll64P:system/lib/dsp/m4venc_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/mp3dec_sn.dll64P:system/lib/dsp/mp3dec_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/mp4vdec_sn.dll64P:system/lib/dsp/mp4vdec_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/mpeg4aacdec_sn.dll64P:system/lib/dsp/mpeg4aacdec_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/mpeg4aacenc_sn.dll64P:system/lib/dsp/mpeg4aacenc_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/nbamrdec_sn.dll64P:system/lib/dsp/nbamrdec_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/nbamrenc_sn.dll64P:system/lib/dsp/nbamrenc_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/postprocessor_dualout.dll64P:system/lib/dsp/postprocessor_dualout.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/ringio.dll64P:system/lib/dsp/ringio.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/usn.dll64P:system/lib/dsp/usn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/wbamrdec_sn.dll64P:system/lib/dsp/wbamrdec_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/wbamrenc_sn.dll64P:system/lib/dsp/wbamrenc_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/wmadec_sn.dll64P:system/lib/dsp/wmadec_sn.dll64P \
$(DEVICE_PREBUILT)/TI_DSP/codecs/wmv9dec_sn.dll64P:system/lib/dsp/wmv9dec_sn.dll64P
# Prebuilts
PRODUCT_COPY_FILES += \
$(DEVICE_PREBUILT)/bin/mount_ext3.sh:system/bin/mount_ext3.sh \
$(DEVICE_PREBUILT)/bin/adbd:system/bin/adbd \
$(DEVICE_PREBUILT)/etc/apns-conf.xml:system/etc/apns-conf.xml \
$(DEVICE_PREBUILT)/etc/egl.cfg:system/etc/egl.cfg \
$(DEVICE_PREBUILT)/etc/inetd.conf:system/etc/inetd.conf \
$(DEVICE_PREBUILT)/etc/gps.conf:system/etc/gps.conf \
$(DEVICE_PREBUILT)/etc/media_profiles.xml:system/etc/media_profiles.xml \
$(DEVICE_PREBUILT)/etc/media_codecs.xml:system/etc/media_codecs.xml \
$(DEVICE_PREBUILT)/etc/profile:system/etc/profile \
$(DEVICE_PREBUILT)/etc/vold.fstab:system/etc/vold.fstab \
$(DEVICE_PREBUILT)/etc/sysctl.conf:system/etc/sysctl.conf \
$(DEVICE_PREBUILT)/etc/init.d/01sysctl:system/etc/init.d/01sysctl \
$(DEVICE_PREBUILT)/etc/init.d/12scheduler:system/etc/init.d/12scheduler \
$(DEVICE_PREBUILT)/etc/init.d/13kernel:system/etc/init.d/13kernel \
$(DEVICE_PREBUILT)/etc/init.d/14multitouch:system/etc/init.d/14multitouch \
$(DEVICE_PREBUILT)/xbin/multitouch:system/xbin/multitouch \
$(DEVICE_PREBUILT)/xbin/scheduler:system/xbin/scheduler
# Permissions files
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml \
# these need to be here for the installer, just put them here for now
PRODUCT_COPY_FILES += \
device/motorola/omap34com/releaseutils/mke2fs:system/bin/mke2fs \
device/motorola/omap34com/releaseutils/tune2fs:system/bin/tune2fs \
device/motorola/omap34com/releaseutils/check_kernel:system/etc/releaseutils/check_kernel \
device/motorola/omap34com/releaseutils/finalize_release:system/etc/finalize_release
# Hijack files
PRODUCT_COPY_FILES += \
$(DEVICE_PREBUILT)/bin/hijack:system/bin/hijack \
$(DEVICE_PREBUILT)/bin/hijack.log_dump:system/bin/hijack.log_dump \
# Copy all common kernel modules
PRODUCT_COPY_FILES += $(shell \
find device/motorola/omap34com/modules -name '*.ko' \
| sed -r 's/^\/?(.*\/)([^/ ]+)$$/\1\2:system\/lib\/modules\/\2/' \
| tr '\n' ' ')
# Some overrides never change
PRODUCT_PROPERTY_OVERRIDES += \
mobiledata.interfaces=ppp0 \
persist.ril.mux.retries=500 \
persist.ril.mux.sleep=2 \
persist.ril.mux.ttydevice=/dev/ttyS0 \
persist.ril.pppd.start.fail.max=16 \
persist.usb.android_config=0 \
ro.cdma.data_retry_config=default_randomization=2000,0,0,120000,180000,540000,960000 \
ro.cdma.home.operator.alpha=Verizon \
ro.cdma.home.operator.numeric=310004 \
ro.cdma.homesystem=64,65,76,77,78,79,80,81,82,83 \
ro.com.google.gmsversion=2.3_r3 \
ro.kernel.android.ril=yes \
ro.product.multi_touch_enabled=true \
ro.product.use_charge_counter=1 \
ro.media.dec.jpeg.memcap=20000000 \
ro.setupwizard.enable_bypass=1 \
ro.setupwizard.mode=OPTIONAL \
ro.telephony.call_ring.delay=1000 \
ro.telephony.call_ring.multiple=false \
ro.vold.umsdirtyratio=20 \
ro.usb.use_custom_service=1 \
ro.kernel.android.checkjni=0 \
dalvik.vm.dexopt-flags=m=y,v=n,o=v,u=n \
dalvik.vm.execution-mode=int:jit \
dalvik.vm.heapstartsize=5m \
dalvik.vm.heapsize=128m \
dalvik.vm.checkjni=false \
dev.pm.dyn_samplingrate=1 \
debug.enabletr=false \
ro.min_pointer_dur=10 \
ro.opengles.version=131072 \
wifi.interface=tiwlan0 \
wifi.supplicant_scan_interval=180 \
wifi.hotspot.ti=1 \
wifi.ap.interface=tiap0 \
windowsmgr.max_events_per_sec=300 \
com.ti.omap_compat=1 \
com.ti.omap_enhancement=true
# props for 512mb devices
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.low_ram=true \
dalvik.vm.jit.codecachesize=0 \
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
# still need to set english for audio init
PRODUCT_LOCALES += en_US
$(call inherit-product, hardware/ti/omap3/Android.mk)
$(call inherit-product-if-exists, vendor/cm/config/common_full_phone.mk)
$(call inherit-product-if-exists, vendor/motorola/omap34com/device-vendor.mk)
$(call inherit-product-if-exists, vendor/motorola/ti_sgx_es5.x/sgx-vendor.mk)