-
Notifications
You must be signed in to change notification settings - Fork 19
/
device_targa.mk
296 lines (249 loc) · 10 KB
/
device_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
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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
# This is the product configuration for a full targa
#
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
# Rootfs files
PRODUCT_COPY_FILES += \
device/motorola/targa/root/init:system/etc/rootfs/init \
device/motorola/targa/root/default.prop:system/etc/rootfs/default.prop \
device/motorola/targa/root/init.rc:system/etc/rootfs/init.rc \
device/motorola/targa/root/init.mapphone_cdma.rc:system/etc/rootfs/init.mapphone_cdma.rc \
device/motorola/targa/root/init.mapphone_umts.rc:system/etc/rootfs/init.mapphone_umts.rc \
device/motorola/targa/root/ueventd.rc:system/etc/rootfs/ueventd.rc \
device/motorola/targa/root/ueventd.mapphone_cdma.rc:system/etc/rootfs/ueventd.mapphone_cdma.rc \
device/motorola/targa/root/ueventd.mapphone_umts.rc:system/etc/rootfs/ueventd.mapphone_umts.rc
## (3) Finally, the least specific parts, i.e. the non-GSM-specific aspects
# Device overlay
DEVICE_PACKAGE_OVERLAYS += device/motorola/targa/overlay
# Permissions files
PRODUCT_COPY_FILES += \
device/motorola/targa/prebuilt/etc/permissions/android.hardware.camera.front.xml:/system/etc/permissions/android.hardware.camera.front.xml \
device/motorola/targa/prebuilt/etc/permissions/android.hardware.camera.flash-autofocus.xml:/system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
device/motorola/targa/prebuilt/etc/permissions/android.hardware.location.gps.xml:/system/etc/permissions/android.hardware.location.gps.xml \
device/motorola/targa/prebuilt/etc/permissions/android.hardware.sensor.accelerometer.xml:/system/etc/permissions/android.hardware.sensor.accelerometer.xml \
device/motorola/targa/prebuilt/etc/permissions/android.hardware.sensor.light.xml:/system/etc/permissions/android.hardware.sensor.light.xml \
device/motorola/targa/prebuilt/etc/permissions/android.hardware.sensor.proximity.xml:/system/etc/permissions/android.hardware.sensor.proximity.xml \
device/motorola/targa/prebuilt/etc/permissions/android.hardware.telephony.cdma.xml:/system/etc/permissions/android.hardware.telephony.cdma.xml \
device/motorola/targa/prebuilt/etc/permissions/android.hardware.telephony.gsm.xml:/system/etc/permissions/android.hardware.telephony.gsm.xml \
device/motorola/targa/prebuilt/etc/permissions/android.hardware.touchscreen.multitouch.xml:/system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
device/motorola/targa/prebuilt/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml:/system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
device/motorola/targa/prebuilt/etc/permissions/android.hardware.wifi.xml:/system/etc/permissions/android.hardware.wifi.xml \
device/motorola/targa/prebuilt/etc/permissions/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml \
device/motorola/targa/prebuilt/etc/permissions/com.android.location.provider.xml:/system/etc/permissions/com.android.location.provider.xml \
device/motorola/targa/prebuilt/etc/permissions/com.motorola.android.tcmd.xml:/system/etc/permissions/com.motorola.android.tcmd.xml \
device/motorola/targa/prebuilt/etc/permissions/com.motorola.atcmd_library.xml:/system/etc/permissions/com.motorola.atcmd_library.xml \
device/motorola/targa/prebuilt/etc/permissions/com.motorola.device.xml:/system/etc/permissions/com.motorola.device.xml \
device/motorola/targa/prebuilt/etc/permissions/handheld_core_hardware.xml:/system/etc/permissions/handheld_core_hardware.xml \
device/motorola/targa/prebuilt/etc/permissions/jcifs-krb5-1.3.12.xml:/system/etc/permissions/jcifs-krb5-1.3.12.xml \
# Prebuilts
# device/motorola/targa/prebuilt/app/Usb.apk:system/app/Usb.apk \
PRODUCT_COPY_FILES += \
device/motorola/targa/prebuilt/bin/mount_ext3.sh:system/bin/mount_ext3.sh \
device/motorola/targa/prebuilt/bin/strace:system/bin/strace \
device/motorola/targa/prebuilt/etc/TICameraCameraProperties.xml:system/etc/TICameraCameraProperties.xml \
device/motorola/targa/prebuilt/etc/apns-conf.xml:system/etc/apns-conf.xml \
device/motorola/targa/prebuilt/etc/gps.conf:system/etc/gps.conf \
device/motorola/targa/prebuilt/etc/media_profiles.xml:system/etc/media_profiles.xml \
device/motorola/targa/prebuilt/etc/powervr.ini:system/etc/powervr.ini \
device/motorola/targa/prebuilt/etc/vold.fstab:system/etc/vold.fstab \
device/motorola/targa/prebuilt/etc/wifi/tiwlan_ap.ini:system/etc/wifi/tiwlan_ap.ini \
device/motorola/targa/prebuilt/etc/wifi/tiwlan.ini:system/etc/wifi/tiwlan.ini \
device/motorola/targa/prebuilt/usr/keychars/omap-keypad.kcm.bin:system/usr/keychars/omap-keypad.kcm.bin \
device/motorola/targa/prebuilt/usr/keylayout/omap-keypad.kl:system/usr/keylayout/omap-keypad.kl \
# Audio sucks currently. Moto customized alsa_sound and while I'm working it out, I'll use phone libs. blech.
# device/motorola/targa/prebuilt/audio/acoustics.default.so:/system/lib/hw/acoustics.default.so \
# device/motorola/targa/prebuilt/audio/alsa.default.so:/system/lib/hw/alsa.default.so \
# device/motorola/targa/prebuilt/audio/libaudiopolicy.so:/system/lib/libaudiopolicy.so \
# device/motorola/targa/prebuilt/audio/libaudiopolicy_ext.so:/system/lib/libaudiopolicy_ext.so \
# device/motorola/targa/prebuilt/audio/libmediaext.so:/system/lib/libmediaext.so \
PRODUCT_COPY_FILES += \
device/motorola/targa/prebuilt/audio/libaudio.so:/system/lib/libaudio.so \
device/motorola/targa/prebuilt/audio/libaudio_ext.so:/system/lib/libaudio_ext.so \
device/motorola/targa/prebuilt/audio/libasound.so:/system/lib/libasound.so \
device/motorola/targa/prebuilt/audio/alsa.omap4.so:/system/lib/hw/alsa.omap4.so \
# HW Libs
PRODUCT_PACKAGES += \
gralloc.omap4 \
gralloc.default \
# Audio HAL
# alsa.omap4 \
PRODUCT_PACKAGES += \
acoustics.default \
alsa.default \
# Thermal Manager
PRODUCT_PACKAGES += \
libconfig \
libthermal_manager \
thermaldaemon \
# Sound / Media
# libaudio \
PRODUCT_PACKAGES += \
libaudiopolicy \
libbundlewrapper \
libreverbwrapper \
libvisualizer \
# Modem
PRODUCT_PACKAGES += \
libaudiomodemgeneric \
libreference-cdma-sms \
# OMX
PRODUCT_PACKAGES += \
OMXCore \
libOMX_CoreOsal \
libOMX_Core \
libomx_rpc \
libomx_proxy_common \
libOMX.TI.DUCATI1.VIDEO.H264D \
libOMX.TI.DUCATI1.VIDEO.MPEG4D \
libOMX.TI.DUCATI1.VIDEO.VP6D \
libOMX.TI.DUCATI1.VIDEO.VP7D \
libOMX.TI.DUCATI1.VIDEO.H264E \
libOMX.TI.DUCATI1.VIDEO.MPEG4E \
libOMX.TI.DUCATI1.IMAGE.JPEGD \
libOMX.TI.DUCATI1.VIDEO.CAMERA \
libOMX.TI.DUCATI1.MISC.SAMPLE \
libOMX.TI.DUCATI1.VIDEO.DECODER \
libOMX_ResourceManagerProxy \
libVendor_ti_omx \
libVendor_ti_omx_config_parser \
libstagefrighthw \
libLCML \
libOMX.TI.Video.Decoder \
libOMX.TI.Video.encoder \
# OMX Binaries
PRODUCT_PACKAGES += \
OMXPolicyManager \
OMXResourceManager \
# Syslink and Tiler
PRODUCT_PACKAGES += \
libd2cmap \
libipc \
libipcutils \
libnotify \
libomap_mm_library_jni \
librcm \
libsyslink_ipc_listener \
libsysmgr \
libtimemmgr \
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 \
# TI CameraHal
PRODUCT_PACKAGES += \
libtiutils \
libcamera \
libfakecameraadapter \
libomxcameraadapter \
#libskiahw-omap4
PRODUCT_PACKAGES += \
libskiahwdec \
SkLibTiJpeg_Test \
# Overlay
PRODUCT_PACKAGES += \
overlay.omap4 \
# FM Radio
PRODUCT_PACKAGES += \
libfmchr \
libfm_stack \
libmcphal \
# Framework
PRODUCT_PACKAGES += \
# Wifi
PRODUCT_PACKAGES += \
libtiOsLib \
libCustomWifi \
wlan_loader \
wlan_cu \
dhcpcd.conf \
wpa_supplicant.conf \
# HotSpot
PRODUCT_PACKAGES += \
tiap_loader \
tiap_cu \
hostap \
hostapd.conf \
# Lights
#PRODUCT_PACKAGES += \
# lights.targa \
# Sensors
#PRODUCT_PACKAGES += \
# sensors.targa \
# Release utilities
PRODUCT_PACKAGES += \
targa_releaseutils-check_kernel \
targa_releaseutils-finalize_release \
targa_releaseutils-mke2fs \
targa_releaseutils-tune2fs
# Libs
PRODUCT_PACKAGES += \
libRS \
librs_jni \
libSR_AudioIn \
libicui18n \
lubicuuc \
libjni_latinime \
libvorbisidec \
# Tests -- Can remove later
PRODUCT_PACKAGES += \
d2c_test \
memmgr_test \
utils_test \
tiler_ptest \
overlay_test \
camera_test \
VideoEncTest \
omx_tests \
# Misc Packages
# safestrapmenu \
# 2nd-init \
PRODUCT_PACKAGES += \
Usb \
FRAMEWORKS_BASE_SUBDIRS += \
$(addsuffix /java, omapmmlib)
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
# high-density artwork where available
PRODUCT_LOCALES += hdpi
# still need to set english for audio init
PRODUCT_LOCALES += en_US
# 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 -- disabled for Sandbox
#$(call inherit-product, device/motorola/common/common_hijack.mk)
$(call inherit-product, build/target/product/full_base.mk)
PRODUCT_NAME := full_targa
PRODUCT_DEVICE := targa