-
Notifications
You must be signed in to change notification settings - Fork 19
/
targa.mk
249 lines (227 loc) · 9.04 KB
/
targa.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
#
# This is the product configuration for a generic targa,
#
# Vendor-specifics
$(call inherit-product-if-exists, vendor/motorola/targa/targa-vendor.mk)
# Prop overrides
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase.ms=android-verizon \
ro.com.google.clientidbase.am=android-verizon \
ro.com.google.clientidbase.gmm=android-motorola \
ro.com.google.clientidbase.yt=android-verizon \
ro.kernel.android.ril=yes \
persist.ril.mux.noofchannels=10 \
persist.ril.mux.ttydevice=/dev/ttyO0 \
persist.ril.modem.ttydevice=/dev/ttyUSB4 \
persist.ril.tcmd.ttydevice=/dev/usb/tty2-1:1.3 \
persist.ril.features=0x90A \
persist.ril.mux.retries=500 \
persist.ril.mux.sleep=2 \
rild.libpath=/system/lib/moto-ril-multimode.so \
ro.default_usb_mode=0 \
ro.media.enc.aud.fileformat=qcp \
ro.media.enc.aud.codec=qcelp \
ro.media.enc.aud.bps=13300 \
ro.media.enc.aud.ch=1 \
ro.media.enc.aud.hz=8000 \
ro.com.google.gmsversion=2.3_r6 \
ro.mot.phonemode.vzw4gphone=1 \
ro.mot.lte_on_cdma=1 \
lte_ril.libpath=/system/lib/lib-mot-lte-ril.so \
cdma_ril.libpath=/system/lib/libmoto_ril.so \
ril.rat=LTE \
lte_ril.netcfg_to=90 \
ro.mot.tmp.telephony.refactor=true \
ro.cdma.subscription=0 \
ro.telephony.call_ring.multiple=false \
ro.telephony.call_ring.delay=3000 \
ro.setupwizard.enable_bypass=1 \
ro.cdma.homesystem=64,65,76,77,78,79,80,81,82,83 \
ro.cdma.data_retry_config=default_randomization=2000,max_retries=infinite,0,0,120000,180000,540000,960000 \
ro.gsm.data_retry_config=default_randomization=2000,max_retries=infinite,0,0,80000,125000,485000,905000 \
ro.gsm.2nd_data_retry_config=max_retries=1,15000 \
ro.media.camcorder.1080p=mp4,h264,30,15000000,aac,128000,44100,2 \
ro.media.camcorder.720p=mp4,h264,30,10000000,aac,128000,44100,2 \
ro.media.camcorder.d1NTSC=mp4,h264,30,6000000,aac,128000,44100,2 \
ro.media.camcorder.vga=mp4,h264,30,4000000,aac,128000,44100,2 \
ro.media.camcorder.cif=mp4,h264,30,1500000,aac,128000,44100,2 \
ro.media.camcorder.qvga=mp4,h264,15,500000,aac,64000,44100,2 \
ro.media.camcorder.mms=3gp,h264,15,128000,amrnb,12200,8000,1 \
ro.media.camcorder.mmsres=qvga \
ro.camcorder.zoom=true \
ro.media.capture.maxres=8m \
ro.media.capture.fast.fps=4 \
ro.media.capture.slow.fps=120 \
ro.media.capture.flash=led \
ro.media.capture.flashMinV=3300000 \
ro.media.capture.torchIntensity=40 \
ro.media.capture.flashIntensity=70 \
ro.media.panorama.defres=3264x1840 \
ro.media.panorama.frameres=1280x720 \
ro.camcorder.videoModes=false \
media.stagefright.enable-player=true \
media.stagefright.enable-meta=true \
media.stagefright.enable-scan=false \
media.stagefright.enable-http=true \
media.stagefright.enable-record=false \
ro.media.camera.focal=3451.0,3451.0 \
ro.media.camera.principal=1632.0,1224.0 \
ro.media.camera.skew=0.0 \
ro.media.camera.distortion=0.0,0.0,0.0,0.0,0.0 \
ro.media.camera.calresolution=3264,2448 \
ro.mot.setuptype=2 \
ro.HorizontalBUA=true \
ro.HorizontalVVM=true \
ro.horizontalIM=true \
ro.horizontalNGM=false \
ro.horizontalVMM=false \
ro.horizontalMOD=false \
ro.horizontalVOD=false \
ro.horizontalEmail=false \
ro.mot.internalsdcard=1 \
ro.mot.dpmext=true \
ro.com.google.clientid=android-motorola \
ro.mot.hw.uaprof=http://uaprof.motorola.com/phoneconfig/MotoMB200/profile/MotoMB200.rdf \
ro.build.version.full=Blur_Version.5.5.886.XT875.Verizon.en.US \
ro.mot.hidden_keyboards=evfwd
# Device overlay
DEVICE_PACKAGE_OVERLAYS += device/motorola/targa/overlay
# Permissions files
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.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.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.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.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
# Prebuilts
PRODUCT_COPY_FILES += \
device/motorola/targa/prebuilt/TICameraCameraProperties.xml:system/etc/TICameraCameraProperties.xml \
device/motorola/targa/prebuilt/apns-conf.xml:system/etc/apns-conf.xml \
device/motorola/targa/prebuilt/gps.conf:system/etc/gps.conf \
device/motorola/targa/prebuilt/media_profiles.xml:system/etc/media_profiles.xml \
device/motorola/targa/prebuilt/mount_ext3.sh:system/bin/mount_ext3.sh \
device/motorola/targa/prebuilt/tiwlan_ap.ini:system/etc/wifi/tiwlan_ap.ini \
device/motorola/targa/prebuilt/tiwlan.ini:system/etc/wifi/tiwlan.ini \
device/motorola/targa/prebuilt/vold.fstab:system/etc/vold.fstab
# Rootfs
PRODUCT_COPY_FILES += \
device/motorola/targa/root/init.mapphone_cdma.rc:root/init.mapphone_cdma.rc \
device/motorola/targa/root/ueventd.mapphone_cdma.rc:root/ueventd.mapphone_cdma.rc
# HW Libs
PRODUCT_PACKAGES += \
alsa.default \
alsa.omap4 \
acoustics.default \
overlay.omap4
# sensors.targa \
# lights.targa \
# OMX
PRODUCT_PACKAGES += \
OMXCore \
libomxcameraadapter \
libOMX_CoreOsal \
libOMX_Core \
libomx_proxy_common \
libomx_rpc \
libOMX.TI.DUCATI1.IMAGE.JPEGD \
libOMX.TI.DUCATI1.MISC.SAMPLE \
libOMX.TI.DUCATI1.VIDEO.CAMERA \
libOMX.TI.DUCATI1.VIDEO.DECODER \
libOMX.TI.DUCATI1.VIDEO.H264D \
libOMX.TI.DUCATI1.VIDEO.H264E \
libOMX.TI.DUCATI1.VIDEO.MPEG4D \
libOMX.TI.DUCATI1.VIDEO.MPEG4E \
libOMX.TI.DUCATI1.VIDEO.VP6D \
libOMX.TI.DUCATI1.VIDEO.VP7D \
libVendor_ti_omx \
libVendor_ti_omx_config_parser
# Syslink and Tiler
PRODUCT_PACKAGES += \
libcamera \
libd2cmap \
libipc \
libipcutils \
libnotify \
libomap_mm_library_jni \
librcm \
libsysmgr \
libtimemmgr \
libtiutils \
dmm_daemontest.out \
ducati_load.out \
event_listener.out \
gateMPApp.out \
heapBufMPApp.out \
heapMemMPApp.out \
interm3.out \
listMPApp.out \
memmgrserver.out \
messageQApp.out \
nameServerApp.out \
notifyping.out \
procMgrApp.out \
rcm_daemontest.out \
rcm_multiclienttest.out \
rcm_multitest.out \
rcm_multithreadtest.out \
rcm_singletest.out \
sharedRegionApp.out \
slpmresources.out \
slpmtest.out \
slpmtransport.out \
syslink_daemon.out \
syslink_tilertest.out \
syslink_trace_daemon.out \
utilsApp.out
# Wifi
PRODUCT_PACKAGES += \
libtiOsLib \
libCustomWifi \
wlan_loader \
wlan_cu \
wpa_supplicant.conf \
dhcpcd.conf
# Release utilities
PRODUCT_PACKAGES += \
targa_releaseutils-check_kernel \
targa_releaseutils-finalize_release \
targa_releaseutils-mke2fs \
targa_releaseutils-tune2fs \
# Misc
PRODUCT_PACKAGES += \
librs_jni \
libreference-ril \
libreference-cdma-sms \
Usb
FRAMEWORKS_BASE_SUBDIRS += \
$(addsuffix /java, omapmmlib)
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
# targa uses high-density artwork where available
PRODUCT_LOCALES += hdpi
# copy all kernel modules under the "modules" directory to system/lib/modules
PRODUCT_COPY_FILES += $(shell \
find device/motorola/targa/modules -name '*.ko' \
| sed -r 's/^\/?(.*\/)([^/ ]+)$$/\1\2:system\/lib\/modules\/\2/' \
| tr '\n' ' ')
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/motorola/targa/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
$(call inherit-product-if-exists, vendor/motorola/targa/targa-vendor.mk)
# stuff common to all Motorola phones
$(call inherit-product, device/motorola/common/common_hijack.mk)
$(call inherit-product, build/target/product/full_base.mk)
PRODUCT_NAME := generic_targa
PRODUCT_DEVICE := targa