-
Notifications
You must be signed in to change notification settings - Fork 22
/
device_spyder.mk
265 lines (224 loc) · 10.5 KB
/
device_spyder.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
#
# This is the product configuration for a full spyder
#
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
## (3) Finally, the least specific parts, i.e. the non-GSM-specific aspects
# Device overlay
DEVICE_PACKAGE_OVERLAYS += device/motorola/spyder/overlay
# high-density artwork where available
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
PRODUCT_PACKAGES := \
charger \
charger_res_images
# Audio sucks currently. Moto customized alsa_sound and while I'm working it out, I'll use phone libs. blech.
PRODUCT_COPY_FILES += \
device/motorola/spyder/audio/acoustics.default.so:/system/lib/hw/acoustics.spyder.so \
device/motorola/spyder/audio/alsa.omap4.so:/system/lib/hw/alsa.spyder.so \
device/motorola/spyder/audio/libasound.so:/system/lib/libasound.so \
device/motorola/spyder/audio/libaudio.so:/system/lib/libaudio.so \
device/motorola/spyder/audio/libaudio_ext.so:/system/lib/libaudio_ext.so \
device/motorola/spyder/audio/libaudiopolicy.so:/system/lib/libaudiopolicy.so \
device/motorola/spyder/audio/liba2dp.so:/system/lib/liba2dp.so
# Hardware HALs
PRODUCT_COPY_FILES += \
device/motorola/spyder/prebuilt/imgtec/gralloc.omap4.so:system/lib/hw/gralloc.omap4.so \
# Lights
#PRODUCT_PACKAGES += \
# lights.spyder
# Sensors
#PRODUCT_PACKAGES += \
# sensors.spyder \
# IMSCServer \
PRODUCT_PACKAGES += \
audio_policy.spyder \
audio.primary.spyder
# Modem
PRODUCT_PACKAGES += \
Stk \
libaudiomodemgeneric \
libreference-cdma-sms
# Syslink and Tiler
PRODUCT_PACKAGES += \
syslink_daemon.out \
syslink_tilertest.out \
syslink_trace_daemon.out \
libipc \
libipcutils \
librcm \
libsysmgr \
libnotify \
libd2cmap \
libtimemmgr
# Wifi
PRODUCT_PACKAGES += \
libCustomWifi \
wlan_loader \
wlan_cu \
dhcpcd.conf \
wpa_supplicant.conf \
iwmulticall \
hostap \
hostapd.conf
# HotSpot
PRODUCT_PACKAGES += \
tiap_loader \
tiap_cu \
hostap \
hostapd.conf \
libhostapdcli
# Bluetooth
PRODUCT_PACKAGES += \
bt_sco_app \
uim-sysfs
# FM Radio
PRODUCT_PACKAGES += \
com.ti.fm.fmradioif.xml \
fmradioif \
FmRxApp \
FmTxApp \
FmService
# Release utilities
PRODUCT_PACKAGES += \
spyder_releaseutils-check_kernel \
spyder_releaseutils-finalize_release \
spyder_releaseutils-mke2fs \
spyder_releaseutils-tune2fs
# Tests -- Can remove later
PRODUCT_PACKAGES += \
d2c_test \
memmgr_test \
utils_test \
tiler_ptest \
overlay_test \
omx_tests
# camera_test \
# VideoEncTest
PRODUCT_PACKAGES += \
Camera \
Usb
PRODUCT_PACKAGES += \
librs_jni \
com.android.future.usb.accessory \
libjni_pinyinime \
PRODUCT_PACKAGES += \
FileManager \
AndroidTerm \
UserDictionaryProvider \
LatinIME \
Superuser \
Superuser.apk \
su
# Optional packages
PRODUCT_PACKAGES += \
VideoEditor \
VoiceDialer \
Basic \
HoloSpiralWallpaper \
MagicSmokeWallpapers \
NoiseField \
Galaxy4 \
LiveWallpapers \
LiveWallpapersPicker \
VisualizationWallpapers \
PhaseBeam
# Rootfs files
PRODUCT_COPY_FILES += \
out/target/product/spyder/root/init:system/etc/rootfs/init \
out/target/product/spyder/root/sbin/adbd:system/etc/rootfs/sbin/adbd \
device/motorola/spyder/root/default.prop:system/etc/rootfs/default.prop \
device/motorola/spyder/root/init.rc:system/etc/rootfs/init.rc \
device/motorola/spyder/root/init.mapphone_cdma.rc:system/etc/rootfs/init.mapphone_cdma.rc \
device/motorola/spyder/root/ueventd.rc:system/etc/rootfs/ueventd.rc \
# Hijack files
PRODUCT_COPY_FILES += \
device/motorola/spyder/root/default.prop:root/default.prop \
device/motorola/spyder/root-hijack/init.rc:root/init.rc \
device/motorola/spyder/root-hijack/init.mapphone_cdma.rc:root/init.mapphone_cdma.rc \
device/motorola/spyder/root/ueventd.rc:root/ueventd.rc \
# Permissions files
PRODUCT_COPY_FILES += \
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.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.sensor.accelerometer.xml:/system/etc/permissions/android.hardware.sensor.accelerometer.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.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/handheld_core_hardware.xml:/system/etc/permissions/handheld_core_hardware.xml \
# Prebuilts
PRODUCT_COPY_FILES += \
device/motorola/spyder/prebuilt/bin/battd:system/bin/battd \
device/motorola/spyder/prebuilt/bin/hijack:system/bin/hijack \
device/motorola/spyder/prebuilt/bin/hijack.log_dump:system/bin/hijack.log_dump \
device/motorola/spyder/prebuilt/bin/mount_ext3.sh:system/bin/mount_ext3.sh \
device/motorola/spyder/prebuilt/bin/strace:system/bin/strace \
device/motorola/spyder/prebuilt/etc/TICameraCameraProperties.xml:system/etc/TICameraCameraProperties.xml \
device/motorola/spyder/prebuilt/etc/apns-conf.xml:system/etc/apns-conf.xml \
device/motorola/spyder/prebuilt/etc/gps.conf:system/etc/gps.conf \
device/motorola/spyder/prebuilt/etc/media_profiles.xml:system/etc/media_profiles.xml \
device/motorola/spyder/prebuilt/etc/vold.fstab:system/etc/vold.fstab \
device/motorola/spyder/prebuilt/etc/wifi/tiwlan_ap.ini:system/etc/wifi/tiwlan_ap.ini \
device/motorola/spyder/prebuilt/etc/wifi/tiwlan.ini:system/etc/wifi/tiwlan.ini \
device/motorola/spyder/prebuilt/usr/idc/TOUCHIC-touchscreen.idc:system/usr/idc/TOUCHIC-touchscreen.idc \
device/motorola/spyder/prebuilt/usr/keychars/omap-keypad.kcm:system/usr/keychars/omap-keypad.kcm \
device/motorola/spyder/prebuilt/usr/keylayout/aev_abs.kl:system/usr/keylayout/aev_abs.kl \
device/motorola/spyder/prebuilt/usr/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \
device/motorola/spyder/prebuilt/usr/keylayout/cdma_spyder-keypad.kl:system/usr/keylayout/cdma_spyder-keypad.kl \
device/motorola/spyder/prebuilt/usr/keylayout/cpcap-key.kl:system/usr/keylayout/cpcap-key.kl \
device/motorola/spyder/prebuilt/usr/keylayout/cy8c201xx.kl:system/usr/keylayout/cy8c201xx.kl \
device/motorola/spyder/prebuilt/usr/keylayout/evfwd.kl:system/usr/keylayout/evfwd.kl \
device/motorola/spyder/prebuilt/usr/keylayout/omap-keypad.kl:system/usr/keylayout/omap-keypad.kl \
device/motorola/spyder/prebuilt/usr/keylayout/qtouch-touchscreen.kl:system/usr/keylayout/qtouch-touchscreen.kl \
device/motorola/spyder/prebuilt/usr/keylayout/usb_keyboard_102_en_us.kl:system/usr/keylayout/usb_keyboard_102_en_us.kl \
device/motorola/spyder/prebuilt/media/bootanimation.zip:system/media/bootanimation.zip
# Graphics
PRODUCT_COPY_FILES += \
device/motorola/spyder/prebuilt/imgtec/pvrsrvinit:system/bin/pvrsrvinit \
device/motorola/spyder/prebuilt/imgtec/libEGL_POWERVR_SGX540_120.so:system/lib/egl/libEGL_POWERVR_SGX540_120.so \
device/motorola/spyder/prebuilt/imgtec/libGLESv1_CM_POWERVR_SGX540_120.so:system/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so \
device/motorola/spyder/prebuilt/imgtec/libGLESv2_POWERVR_SGX540_120.so:system/lib/egl/libGLESv2_POWERVR_SGX540_120.so \
device/motorola/spyder/prebuilt/imgtec/libglslcompiler.so:system/lib/libglslcompiler.so \
device/motorola/spyder/prebuilt/imgtec/libIMGegl.so:system/lib/libIMGegl.so \
device/motorola/spyder/prebuilt/imgtec/libpvr2d.so:system/lib/libpvr2d.so \
device/motorola/spyder/prebuilt/imgtec/libpvrANDROID_WSEGL.so:system/lib/libpvrANDROID_WSEGL.so \
device/motorola/spyder/prebuilt/imgtec/libPVRScopeServices.so:system/lib/libPVRScopeServices.so \
device/motorola/spyder/prebuilt/imgtec/libsrv_init.so:system/lib/libsrv_init.so \
device/motorola/spyder/prebuilt/imgtec/libsrv_um.so:system/lib/libsrv_um.so \
device/motorola/spyder/prebuilt/imgtec/libusc.so:system/lib/libusc.so \
device/motorola/spyder/prebuilt/imgtec/libdrm.so:system/lib/libdrm.so \
# 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
# copy all kernel modules under the "modules" directory to system/lib/modules
PRODUCT_COPY_FILES += $(shell \
find device/motorola/spyder/modules -name '*.ko' \
| sed -r 's/^\/?(.*\/)([^/ ]+)$$/\1\2:system\/lib\/modules\/\2/' \
| tr '\n' ' ')
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/motorola/spyder/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
# stuff specific to ti OMAP4 hardware
$(call inherit-product, hardware/ti/omap4xxx/omap4.mk)
$(call inherit-product, hardware/ti/wpan/ti-wpan-products.mk)
#$(call inherit-product, hardware/ti/wpan/tools/FM/Android.mk)
$(call inherit-product-if-exists, vendor/google/google-vendor.mk)
$(call inherit-product-if-exists, vendor/verizon/verizon-vendor.mk)
$(call inherit-product-if-exists, vendor/motorola/spyder/spyder-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_telephony.mk)
PRODUCT_NAME := full_spyder
PRODUCT_DEVICE := spyder