-
Notifications
You must be signed in to change notification settings - Fork 14
/
device_solana.mk
265 lines (218 loc) · 11.2 KB
/
device_solana.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 solana
#
# 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/solana/overlay
# high-density artwork where available
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
PRODUCT_PACKAGES := \
charger \
charger_res_images
# Audio
PRODUCT_COPY_FILES += \
device/motorola/solana/audio/acoustics.default.so:/system/lib/hw/acoustics.solana.so \
device/motorola/solana/audio/alsa.omap4.so:/system/lib/hw/alsa.solana.so \
device/motorola/solana/audio/libasound.so:/system/lib/libasound.so \
device/motorola/solana/audio/libaudio.so:/system/lib/libaudio.so \
device/motorola/solana/audio/libaudio_ext.so:/system/lib/libaudio_ext.so \
device/motorola/solana/audio/libaudiopolicy.so:/system/lib/libaudiopolicy.so \
device/motorola/solana/audio/liba2dp.so:/system/lib/liba2dp.so \
# Hardware HALs
PRODUCT_COPY_FILES += \
device/motorola/solana/prebuilt/imgtec/gralloc.omap4.so:system/lib/hw/gralloc.omap4.so \
# lights.solana \
# sensors.solana \
# Hardware HALs
PRODUCT_PACKAGES += \
camera.omap4
PRODUCT_PACKAGES += \
audio.primary.solana \
audio_policy.solana \
# BlueZ a2dp Audio HAL module
PRODUCT_PACKAGES += \
audio.a2dp.default
# BlueZ test tools
PRODUCT_PACKAGES += \
hciconfig \
hcitool
# Modem
PRODUCT_PACKAGES += \
libaudiomodemgeneric \
libreference-cdma-sms \
rild \
radiooptions \
# Wifi
PRODUCT_PACKAGES += \
libCustomWifi \
wlan_loader \
wlan_cu \
dhcpcd.conf \
wpa_supplicant.conf \
# HotSpot
PRODUCT_PACKAGES += \
tiap_loader \
tiap_cu \
hostap \
hostapd.conf \
# 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 += \
solana_releaseutils-check_kernel \
solana_releaseutils-finalize_release \
solana_releaseutils-mke2fs \
solana_releaseutils-tune2fs
# Tests -- Can remove later
PRODUCT_PACKAGES += \
d2c_test \
memmgr_test \
utils_test \
tiler_ptest \
overlay_test \
omx_tests \
evtest \
camera_test \
# VideoEncTest \
PRODUCT_PACKAGES += \
Camera \
Superuser \
su \
Usb
PRODUCT_PACKAGES += \
librs_jni \
com.android.future.usb.accessory \
libjni_pinyinime \
# Additional Apps
#PRODUCT_PACKAGES += \
# GlobalNwSwitch \
# WirelessTether
PRODUCT_COPY_FILES += \
device/motorola/solana/prebuilt/app/wifi_tether_v3_1-beta11.apk:system/app/wifi_tether_v3_1-beta11.apk \
device/motorola/solana/prebuilt/lib/libwtnativetask.so:system/lib/libwtnativetask.so \
# Rootfs files
PRODUCT_COPY_FILES += \
out/target/product/solana/root/init:system/etc/rootfs/init \
out/target/product/solana/root/sbin/adbd:system/etc/rootfs/sbin/adbd \
device/motorola/solana/root/default.prop:system/etc/rootfs/default.prop \
device/motorola/solana/root/init.rc:system/etc/rootfs/init.rc \
device/motorola/solana/root/init.mapphone_cdma.rc:system/etc/rootfs/init.mapphone_cdma.rc \
device/motorola/solana/root/init.mapphone_umts.rc:system/etc/rootfs/init.mapphone_umts.rc \
device/motorola/solana/root/usbcheck.sh:system/etc/rootfs/usbcheck.sh \
device/motorola/solana/root/ueventd.rc:system/etc/rootfs/ueventd.rc \
# Hijack files
PRODUCT_COPY_FILES += \
device/motorola/solana/root/default.prop:root/default.prop \
device/motorola/solana/root/init.rc:root/init.rc \
device/motorola/solana/root-hijack/init.mapphone_cdma.rc:root/init.mapphone_cdma.rc \
device/motorola/solana/root-hijack/init.mapphone_umts.rc:root/init.mapphone_umts.rc \
device/motorola/solana/root/usbcheck.sh:root/usbcheck.sh \
device/motorola/solana/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 \
frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
# Prebuilts
PRODUCT_COPY_FILES += \
device/motorola/solana/prebuilt/bin/battd:system/bin/battd \
device/motorola/solana/prebuilt/bin/hijack:system/bin/hijack \
device/motorola/solana/prebuilt/bin/hijack.log_dump:system/bin/hijack.log_dump \
device/motorola/solana/prebuilt/bin/mount_ext3.sh:system/bin/mount_ext3.sh \
device/motorola/solana/prebuilt/bin/strace:system/bin/strace \
device/motorola/solana/prebuilt/etc/TICameraCameraProperties.xml:system/etc/TICameraCameraProperties.xml \
device/motorola/solana/prebuilt/etc/gps.conf:system/etc/gps.conf \
device/motorola/solana/prebuilt/etc/media_profiles.xml:system/etc/media_profiles.xml \
device/motorola/solana/prebuilt/etc/vold.fstab:system/etc/vold.fstab \
device/motorola/solana/prebuilt/etc/wifi/tiwlan_ap.ini:system/etc/wifi/tiwlan_ap.ini \
device/motorola/solana/prebuilt/etc/wifi/tiwlan.ini:system/etc/wifi/tiwlan.ini \
device/motorola/solana/prebuilt/etc/hijack-boot.zip:system/etc/hijack-boot.zip \
device/motorola/solana/prebuilt/usr/idc/cpcap-key.idc:system/usr/idc/cpcap-key.idc \
device/motorola/solana/prebuilt/usr/idc/light-prox.idc:system/usr/idc/light-prox.idc \
device/motorola/solana/prebuilt/usr/idc/mapphone-switch.idc:system/usr/idc/mapphone-switch.idc \
device/motorola/solana/prebuilt/usr/idc/omap-keypad.idc:system/usr/idc/omap-keypad.idc \
device/motorola/solana/prebuilt/usr/idc/qtouch-touchscreen.idc:system/usr/idc/qtouch-touchscreen.idc \
device/motorola/solana/prebuilt/usr/keychars/cpcap-key.kcm:system/usr/keychars/cpcap-key.kcm \
device/motorola/solana/prebuilt/usr/keychars/light-prox.kcm:system/usr/keychars/light-prox.kcm \
device/motorola/solana/prebuilt/usr/keychars/mapphone-switch.kcm:system/usr/keychars/mapphone-switch.kcm \
device/motorola/solana/prebuilt/usr/keychars/omap-keypad.kcm:system/usr/keychars/omap-keypad.kcm \
device/motorola/solana/prebuilt/usr/keychars/qtouch-touchscreen.kcm:system/usr/keychars/qtouch-touchscreen.kcm \
device/motorola/solana/prebuilt/usr/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \
device/motorola/solana/prebuilt/usr/keylayout/cpcap-key.kl:system/usr/keylayout/cpcap-key.kl \
device/motorola/solana/prebuilt/usr/keylayout/light-prox.kl:system/usr/keylayout/light-prox.kl \
device/motorola/solana/prebuilt/usr/keylayout/mapphone-switch.kl:system/usr/keylayout/mapphone-switch.kl \
device/motorola/solana/prebuilt/usr/keylayout/omap-keypad.kl:system/usr/keylayout/omap-keypad.kl \
device/motorola/solana/prebuilt/usr/keylayout/qtouch-touchscreen.kl:system/usr/keylayout/qtouch-touchscreen.kl \
# Phone settings
PRODUCT_COPY_FILES += \
device/motorola/solana/prebuilt/etc/apns-conf.xml:system/etc/apns-conf.xml \
vendor/cm/prebuilt/common/etc/spn-conf.xml:system/etc/spn-conf.xml \
# Graphics
PRODUCT_COPY_FILES += \
device/motorola/solana/prebuilt/imgtec/pvrsrvinit:system/bin/pvrsrvinit \
device/motorola/solana/prebuilt/imgtec/libEGL_POWERVR_SGX540_120.so:system/lib/egl/libEGL_POWERVR_SGX540_120.so \
device/motorola/solana/prebuilt/imgtec/libGLESv1_CM_POWERVR_SGX540_120.so:system/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so \
device/motorola/solana/prebuilt/imgtec/libGLESv2_POWERVR_SGX540_120.so:system/lib/egl/libGLESv2_POWERVR_SGX540_120.so \
device/motorola/solana/prebuilt/imgtec/libglslcompiler.so:system/lib/libglslcompiler.so \
device/motorola/solana/prebuilt/imgtec/libIMGegl.so:system/lib/libIMGegl.so \
device/motorola/solana/prebuilt/imgtec/libpvr2d.so:system/lib/libpvr2d.so \
device/motorola/solana/prebuilt/imgtec/libpvrANDROID_WSEGL.so:system/lib/libpvrANDROID_WSEGL.so \
device/motorola/solana/prebuilt/imgtec/libPVRScopeServices.so:system/lib/libPVRScopeServices.so \
device/motorola/solana/prebuilt/imgtec/libsrv_init.so:system/lib/libsrv_init.so \
device/motorola/solana/prebuilt/imgtec/libsrv_um.so:system/lib/libsrv_um.so \
device/motorola/solana/prebuilt/imgtec/libusc.so:system/lib/libusc.so \
device/motorola/solana/prebuilt/imgtec/libdrm.so:system/lib/libdrm.so \
FRAMEWORKS_BASE_SUBDIRS += \
$(addsuffix /java, omapmmlib)
# 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/solana/modules -name '*.ko' \
| sed -r 's/^\/?(.*\/)([^/ ]+)$$/\1\2:system\/lib\/modules\/\2/' \
| tr '\n' ' ')
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/motorola/solana/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
$(call inherit-product, hardware/ti/omap4xxx/omap4.mk)
$(call inherit-product, hardware/ti/camera/camera.mk)
$(call inherit-product, hardware/ti/wpan/ti-wpan-products.mk)
#$(call inherit-product-if-exists, vendor/google/google-vendor.mk)
#$(call inherit-product, hardware/ti/wpan/tools/FM/Android.mk)
$(call inherit-product-if-exists, vendor/motorola/solana/solana-vendor.mk)
$(call inherit-product-if-exists, vendor/cm/config/common_full_phone.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_solana
PRODUCT_DEVICE := solana