forked from STS-Dev-Team/android_device_motorola_targa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice_targa.mk
276 lines (232 loc) · 12 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
#
# 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)
## (3) Finally, the least specific parts, i.e. the non-GSM-specific aspects
# Device overlay
DEVICE_PACKAGE_OVERLAYS += device/motorola/targa/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/targa/audio/acoustics.default.so:/system/lib/hw/acoustics.targa.so \
device/motorola/targa/audio/alsa.omap4.so:/system/lib/hw/alsa.targa.so \
device/motorola/targa/audio/libasound.so:/system/lib/libasound.so \
device/motorola/targa/audio/libaudio.so:/system/lib/libaudio.so \
device/motorola/targa/audio/libaudio_ext.so:/system/lib/libaudio_ext.so \
device/motorola/targa/audio/libaudiopolicy.so:/system/lib/libaudiopolicy.so \
device/motorola/targa/audio/liba2dp.so:/system/lib/liba2dp.so
# Hardware HALs
PRODUCT_COPY_FILES += \
device/motorola/targa/prebuilt/imgtec/gralloc.omap4.so:system/lib/hw/gralloc.omap4.so \
# Hardware HALs
#PRODUCT_PACKAGES += \
# lights.targa \
# sensors.targa \
PRODUCT_PACKAGES += \
camera.omap4
PRODUCT_PACKAGES += \
audio.primary.targa \
audio_policy.targa
# BlueZ a2dp Audio HAL module
PRODUCT_PACKAGES += \
audio.a2dp.default
# BlueZ test tools
PRODUCT_PACKAGES += \
hciconfig \
hcitool
# Modem
PRODUCT_PACKAGES += \
nc \
Stk \
libaudiomodemgeneric \
libreference-cdma-sms \
rild \
radiooptions \
sh
# 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 += \
targa_releaseutils-check_kernel \
targa_releaseutils-finalize_release \
targa_releaseutils-mke2fs \
targa_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 \
Superuser \
su \
Usb \
DockAudio \
PRODUCT_PACKAGES += \
librs_jni \
com.android.future.usb.accessory \
FileManager \
MusicFX \
libjni_pinyinime \
# CameraFix
PRODUCT_COPY_FILES += \
device/motorola/targa/prebuilt/camerafix/TICameraCameraProperties.xml:system/etc/TICameraCameraProperties.xml \
device/motorola/targa/prebuilt/camerafix/camera.omap4.so:system/lib/hw/camera.omap4.so \
device/motorola/targa/prebuilt/camerafix/libcamera.so:system/lib/libcamera.so \
device/motorola/targa/prebuilt/camerafix/libomxcameraadapter.so:system/lib/libomxcameraadapter.so \
device/motorola/targa/prebuilt/camerafix/libtiutils.so:system/lib/libtiutils.so \
# WirelessTether Lib
PRODUCT_COPY_FILES += \
device/motorola/targa/prebuilt/app/wifi_tether_v3_1-beta11.apk:system/app/wifi_tether_v3_1-beta11.apk \
device/motorola/targa/prebuilt/lib/libwtnativetask.so:system/lib/libwtnativetask.so \
device/motorola/targa/prebuilt/bin/bootsound:system/bin/bootsound \
# device/motorola/targa/prebuilt/media/android_audio.mp3:system/media/android_audio.mp3 \
# device/motorola/targa/prebuilt/media/bootanimation.zip:system/media/bootanimation.zip \
# Rootfs files
PRODUCT_COPY_FILES += \
out/target/product/targa/root/init:system/etc/rootfs/init \
out/target/product/targa/root/sbin/adbd:system/etc/rootfs/sbin/adbd \
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/usbcheck.sh:system/etc/rootfs/usbcheck.sh \
device/motorola/targa/root/ueventd.rc:system/etc/rootfs/ueventd.rc \
# Hijack files
PRODUCT_COPY_FILES += \
device/motorola/targa/root/default.prop:root/default.prop \
device/motorola/targa/root/init.rc:root/init.rc \
device/motorola/targa/root-hijack/init.mapphone_cdma.rc:root/init.mapphone_cdma.rc \
device/motorola/targa/root-hijack/init.mapphone_umts.rc:root/init.mapphone_umts.rc \
device/motorola/targa/root/usbcheck.sh:root/usbcheck.sh \
device/motorola/targa/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 \
# Removed for camera fix
# device/motorola/targa/prebuilt/etc/TICameraCameraProperties.xml:system/etc/TICameraCameraProperties.xml \
# Prebuilts
PRODUCT_COPY_FILES += \
device/motorola/targa/prebuilt/bin/battd:system/bin/battd \
device/motorola/targa/prebuilt/bin/hijack:system/bin/hijack \
device/motorola/targa/prebuilt/bin/hijack.log_dump:system/bin/hijack.log_dump \
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/gps.conf:system/etc/gps.conf \
device/motorola/targa/prebuilt/etc/media_profiles.xml:system/etc/media_profiles.xml \
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/etc/spn-conf.xml:system/etc/spn-conf.xml \
device/motorola/targa/prebuilt/etc/hijack-boot.zip:system/etc/hijack-boot.zip \
device/motorola/targa/prebuilt/usr/bin/pm_init.sh:system/usr/bin/pm_init.sh \
device/motorola/targa/prebuilt/usr/idc/cpcap-key.idc:system/usr/idc/cpcap-key.idc \
device/motorola/targa/prebuilt/usr/idc/light-prox.idc:system/usr/idc/light-prox.idc \
device/motorola/targa/prebuilt/usr/idc/mapphone-switch.idc:system/usr/idc/mapphone-switch.idc \
device/motorola/targa/prebuilt/usr/idc/omap-keypad.idc:system/usr/idc/omap-keypad.idc \
device/motorola/targa/prebuilt/usr/idc/qtouch-touchscreen.idc:system/usr/idc/qtouch-touchscreen.idc \
device/motorola/targa/prebuilt/usr/keychars/cpcap-key.kcm:system/usr/keychars/cpcap-key.kcm \
device/motorola/targa/prebuilt/usr/keychars/light-prox.kcm:system/usr/keychars/light-prox.kcm \
device/motorola/targa/prebuilt/usr/keychars/mapphone-switch.kcm:system/usr/keychars/mapphone-switch.kcm \
device/motorola/targa/prebuilt/usr/keychars/omap-keypad.kcm:system/usr/keychars/omap-keypad.kcm \
device/motorola/targa/prebuilt/usr/keychars/qtouch-touchscreen.kcm:system/usr/keychars/qtouch-touchscreen.kcm \
device/motorola/targa/prebuilt/usr/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \
device/motorola/targa/prebuilt/usr/keylayout/cpcap-key.kl:system/usr/keylayout/cpcap-key.kl \
device/motorola/targa/prebuilt/usr/keylayout/light-prox.kl:system/usr/keylayout/light-prox.kl \
device/motorola/targa/prebuilt/usr/keylayout/mapphone-switch.kl:system/usr/keylayout/mapphone-switch.kl \
device/motorola/targa/prebuilt/usr/keylayout/omap-keypad.kl:system/usr/keylayout/omap-keypad.kl \
device/motorola/targa/prebuilt/usr/keylayout/qtouch-touchscreen.kl:system/usr/keylayout/qtouch-touchscreen.kl \
# Phone settings
PRODUCT_COPY_FILES += \
device/sample/etc/apns-conf_verizon.xml:system/etc/apns-conf.xml \
# Graphics
PRODUCT_COPY_FILES += \
device/motorola/targa/prebuilt/imgtec/pvrsrvinit:system/bin/pvrsrvinit \
device/motorola/targa/prebuilt/imgtec/libEGL_POWERVR_SGX540_120.so:system/lib/egl/libEGL_POWERVR_SGX540_120.so \
device/motorola/targa/prebuilt/imgtec/libGLESv1_CM_POWERVR_SGX540_120.so:system/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so \
device/motorola/targa/prebuilt/imgtec/libGLESv2_POWERVR_SGX540_120.so:system/lib/egl/libGLESv2_POWERVR_SGX540_120.so \
device/motorola/targa/prebuilt/imgtec/libglslcompiler.so:system/lib/libglslcompiler.so \
device/motorola/targa/prebuilt/imgtec/libIMGegl.so:system/lib/libIMGegl.so \
device/motorola/targa/prebuilt/imgtec/libpvr2d.so:system/lib/libpvr2d.so \
device/motorola/targa/prebuilt/imgtec/libpvrANDROID_WSEGL.so:system/lib/libpvrANDROID_WSEGL.so \
device/motorola/targa/prebuilt/imgtec/libPVRScopeServices.so:system/lib/libPVRScopeServices.so \
device/motorola/targa/prebuilt/imgtec/libsrv_init.so:system/lib/libsrv_init.so \
device/motorola/targa/prebuilt/imgtec/libsrv_um.so:system/lib/libsrv_um.so \
device/motorola/targa/prebuilt/imgtec/libusc.so:system/lib/libusc.so \
device/motorola/targa/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/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
# stuff specific to ti OMAP4 hardware
$(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/verizon/targa-verizon-vendor.mk)
$(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_telephony.mk)
PRODUCT_NAME := full_targa
PRODUCT_DEVICE := targa