forked from zefie/android_device_lge_thunderc
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy paththunderc_common.mk
272 lines (234 loc) · 15.6 KB
/
thunderc_common.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
# Note: this needs to be called from the device specific thunderc_AANNN.mk file
# *AFTER* SUB_MODEL, CDMA_GOOGLE_BASE, CDMA_CARRIER_ALPHA, CDMA_CARRIER_NUMERIC,
# and BLUETOOTH_FIRMWARE have been defined.
DEVICE_PACKAGE_OVERLAYS += device/lge/thunderc_common/overlay
DEVICE_PACKAGE_OVERLAYS += device/lge/thunderc_$(SUB_MODEL)/overlay
PRODUCT_PACKAGES += \
gps.thunderc \
librs_jni \
libmm-omxcore \
libOmxCore \
bdaddr_read \
flash_image \
dump_image \
erase_image \
e2fsck \
SpareParts \
CMWallpapers \
LiveWallpapers \
LiveWallpapersPicker \
MagicSmokeWallpapers \
VisualizationWallpapers
DISABLE_DEXPREOPT := false
# Publish that we support the live wallpaper feature.
PRODUCT_COPY_FILES += \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
# Kernel
LOCAL_KERNEL := device/lge/thunderc_$(SUB_MODEL)/files/kernel/zImage
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
# Locate vendor bootimage files if present
# Because these are carrier specific, I've left the default to no logo.
BOOTIMAGE_FILES := $(wildcard device/lge/thunderc_$(SUB_MODEL)/files/bootimages/*.rle)
ifeq ($(BOOTIMAGE_FILES),)
PRODUCT_COPY_FILES += \
device/lge/thunderc_common/files/initlogo.rle:root/initlogo.rle
else
PRODUCT_PACKAGES += bootlogo
PRODUCT_COPY_FILES += \
$(foreach f,$(BOOTIMAGE_FILES),$(f):root/bootimages/$(notdir $(f)))
endif
# Keylayouts
PRODUCT_COPY_FILES += \
device/lge/thunderc_common/files/usr/keylayout/7k_handset.kl:system/usr/keylayout/7k_handset.kl \
device/lge/thunderc_common/files/usr/keylayout/thunder_keypad.kl:system/usr/keylayout/thunder_keypad.kl \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/usr/keychars/thunder_keypad.kcm.bin:system/usr/keychars/thunder_keypad.kcm.bin \
# Board-specific init
PRODUCT_COPY_FILES += \
device/lge/thunderc_common/files/init.thunderc.rc:root/init.thunderc.rc \
device/lge/thunderc_common/files/ueventd.thunderc.rc:root/ueventd.thunder.rc \
device/lge/thunderc_common/files/etc/init.local.rc:/system/etc/init.local.rc
# Off-mode charging pieces
PRODUCT_COPY_FILES += \
device/lge/thunderc_common/files/sbin/chargerlogo:root/sbin/chargerlogo \
device/lge/thunderc_common/files/chargerimages/battery_ani_01.rle:root/chargerimages/battery_ani_01.rle \
device/lge/thunderc_common/files/chargerimages/battery_ani_02.rle:root/chargerimages/battery_ani_02.rle \
device/lge/thunderc_common/files/chargerimages/battery_ani_03.rle:root/chargerimages/battery_ani_03.rle \
device/lge/thunderc_common/files/chargerimages/battery_ani_04.rle:root/chargerimages/battery_ani_04.rle \
device/lge/thunderc_common/files/chargerimages/battery_ani_05.rle:root/chargerimages/battery_ani_05.rle \
device/lge/thunderc_common/files/chargerimages/battery_charging_01.rle:root/chargerimages/battery_charging_01.rle \
device/lge/thunderc_common/files/chargerimages/battery_charging_02.rle:root/chargerimages/battery_charging_02.rle \
device/lge/thunderc_common/files/chargerimages/battery_charging_03.rle:root/chargerimages/battery_charging_03.rle \
device/lge/thunderc_common/files/chargerimages/battery_charging_04.rle:root/chargerimages/battery_charging_04.rle \
device/lge/thunderc_common/files/chargerimages/battery_charging_05.rle:root/chargerimages/battery_charging_05.rle \
device/lge/thunderc_common/files/chargerimages/battery_charging_06.rle:root/chargerimages/battery_charging_06.rle \
device/lge/thunderc_common/files/chargerimages/battery_notenough.rle:root/chargerimages/battery_notenough.rle \
device/lge/thunderc_common/files/chargerimages/battery_bg.rle:root/chargerimages/battery_bg.rle \
device/lge/thunderc_common/files/chargerimages/black_bg.rle:root/chargerimages/black_bg.rle \
device/lge/thunderc_common/files/chargerimages/battery_wait_ani_01.rle:root/chargerimages/battery_wait_ani_01.rle \
device/lge/thunderc_common/files/chargerimages/battery_wait_ani_01.rle:root/chargerimages/battery_wait_ani_02.rle \
# GPS (this might be better off as device specific depending on how carriers have configured AGPS)
PRODUCT_COPY_FILES += \
device/lge/thunderc_common/files/etc/loc_parameter.ini:system/etc/loc_parameter.ini \
# WiFi
PRODUCT_COPY_FILES += \
device/lge/thunderc_common/files/etc/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
device/lge/thunderc_common/files/etc/dhcpcd/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf \
# Audio
PRODUCT_COPY_FILES += \
device/lge/thunderc_common/files/etc/AudioFilter.csv:system/etc/AudioFilter.csv \
device/lge/thunderc_common/files/etc/AutoVolumeControl.txt:system/etc/AutoVolumeControl.txt \
# Device permissions
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.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
frameworks/base/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.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.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
PRODUCT_COPY_FILES += \
device/lge/thunderc_common/files/etc/media_profiles.xml:system/etc/media_profiles.xml \
device/lge/thunderc_common/files/etc/init.d/mvdalvik.sh:system/etc/init.d/01mvdalvik \
# Let's use our own GPS config file
PRODUCT_COPY_FILES += device/lge/thunderc_common/files/etc/gps.conf:system/etc/gps.conf
# Backlight
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/hw/lights.thunderc.so:system/lib/hw/lights.thunderc.so \
# 2D (using proprietary because of poor performance of open source libs)
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/hw/gralloc.default.so:system/lib/hw/gralloc.default.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/hw/gralloc.thunderc.so:system/lib/hw/gralloc.thunderc.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/hw/copybit.thunderc.so:system/lib/hw/copybit.thunderc.so \
# Sensors
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/hw/sensors.thunderc.so:system/lib/hw/sensors.thunderc.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/bin/ami304d:system/bin/ami304d \
# GPS
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libloc_api.so:system/lib/libloc_api.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libgps.so:system/lib/libgps.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libloc.so:system/lib/libloc.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libloc.so:obj/lib/libloc.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libcommondefs.so:system/lib/libcommondefs.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libloc-rpc.so:system/lib/libloc-rpc.so
# 3D
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/egl/libEGL_adreno200.so:system/lib/egl/libEGL_adreno200.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/egl/libGLESv1_CM_adreno200.so:system/lib/egl/libGLESv1_CM_adreno200.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/egl/libGLESv2_adreno200.so:system/lib/egl/libGLESv2_adreno200.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/egl/libq3dtools_adreno200.so:system/lib/egl/libq3dtools_adreno200.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libgsl.so:system/lib/libgsl.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/etc/firmware/yamato_pfp.fw:system/etc/firmware/yamato_pfp.fw \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/etc/firmware/yamato_pm4.fw:system/etc/firmware/yamato_pm4.fw \
# Camera
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/liboemcamera.so:system/lib/liboemcamera.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libmmipl.so:system/lib/libmmipl.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libmmjpeg.so:system/lib/libmmjpeg.so \
# WiFi
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/etc/wl/nvram.txt:system/etc/wl/nvram.txt \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/etc/wl/rtecdc.bin:system/etc/wl/rtecdc.bin \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/etc/wl/rtecdc-apsta.bin:system/etc/wl/rtecdc-apsta.bin \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/etc/wl/rtecdc-mfgtest.bin:system/etc/wl/rtecdc-mfgtest.bin
# SD Card
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/etc/vold.fstab:system/etc/vold.fstab \
# Audio
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libaudioeq.so:system/lib/libaudioeq.so \
# LGE services
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/bin/qmuxd:system/bin/qmuxd \
# RIL
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libril-qc-1.so:system/lib/libril-qc-1.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/liboncrpc.so:system/lib/liboncrpc.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libdsm.so:system/lib/libdsm.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libqueue.so:system/lib/libqueue.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libdiag.so:system/lib/libdiag.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libauth.so:system/lib/libauth.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libcm.so:system/lib/libcm.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libnv.so:system/lib/libnv.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libpbmlib.so:system/lib/libpbmlib.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libwms.so:system/lib/libwms.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libwmsts.so:system/lib/libwmsts.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libmmgsdilib.so:system/lib/libmmgsdilib.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libgsdi_exp.so:system/lib/libgsdi_exp.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libgstk_exp.so:system/lib/libgstk_exp.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libril-qcril-hook-oem.so:system/lib/libril-qcril-hook-oem.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/liboem_rapi.so:system/lib/liboem_rapi.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libsnd.so:system/lib/libsnd.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libqmi.so:system/lib/libqmi.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libdll.so:system/lib/libdll.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libbcmwl.so:system/lib/libbcmwl.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libdss.so:system/lib/libdss.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libril.so:system/lib/libril.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/bin/rild:system/bin/rild \
# The Vortex doesn't seem to have this library.
ifneq ($(SUB_MODEL),VS660)
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/liblgerft.so:system/lib/liblgerft.so
endif
# OMX
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libmm-adspsvc.so:system/lib/libmm-adspsvc.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxAacDec.so:system/lib/libOmxAacDec.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxAacEnc.so:system/lib/libOmxAacEnc.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxAdpcmDec.so:system/lib/libOmxAdpcmDec.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxAmrDec.so:system/lib/libOmxAmrDec.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxAmrEnc.so:system/lib/libOmxAmrEnc.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxAmrRtpDec.so:system/lib/libOmxAmrRtpDec.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxEvrcDec.so:system/lib/libOmxEvrcDec.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxEvrcEnc.so:system/lib/libOmxEvrcEnc.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxH264Dec.so:system/lib/libOmxH264Dec.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxMp3Dec.so:system/lib/libOmxMp3Dec.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxMpeg4Dec.so:system/lib/libOmxMpeg4Dec.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxQcelp13Enc.so:system/lib/libOmxQcelp13Enc.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxVidEnc.so:system/lib/libOmxVidEnc.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxWmaDec.so:system/lib/libOmxWmaDec.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxWmvDec.so:system/lib/libOmxWmvDec.so
ifeq ($(SUB_MODEL),VS660)
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxCore.so:system/lib/libOmxCore.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxQcelp13Dec.so:system/lib/libOmxQcelp13Dec.so
else
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxAmrwbDec.so:system/lib/libOmxAmrwbDec.so \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/lib/libOmxQcelpDec.so:system/lib/libOmxQcelpDec.so
endif
# Bluetooth
PRODUCT_COPY_FILES += \
vendor/lge/thunderc_$(SUB_MODEL)/proprietary/system/bin/$(BLUETOOTH_FIRMWARE):system/bin/BCM4325.hcd
$(call inherit-product, build/target/product/full.mk)
# We don't need to pull in the languages_full.mk manually because it'll get clobbered anyhow by full.mk
# mdpi goes last so that the janky default locale/region code can pick a sane default
PRODUCT_LOCALES += mdpi
PRODUCT_NAME := full_thunderc_$(SUB_MODEL)
PRODUCT_BRAND := LGE
PRODUCT_DEVICE := thunderc_$(SUB_MODEL)
PRODUCT_MANUFACTURER := LGE
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=$(CDMA_GOOGLE_BASE) \
ro.cdma.home.operator.alpha=$(CDMA_CARRIER_ALPHA) \
ro.cdma.home.operator.numeric=$(CDMA_CARRIER_NUMERIC) \
gsm.sim.operator.alpha=$(CDMA_CARRIER_ALPHA) \
gsm.sim.operator.numeric=$(CDMA_CARRIER_NUMERIC) \
gsm.operator.alpha=$(CDMA_CARRIER_ALPHA) \
gsm.operator.numeric=$(CDMA_CARRIER_NUMERIC)
#ifeq ($(SUB_MODEL),US670)
# # We're on USC (TODO)
# CDMA_GOOGLE_BASE := android-sprint-us
# CDMA_CARRIER_ALPHA := US_Cellular
# CDMA_CARRIER_NUMERIC := 310066
#endif
#ifeq ($(SUB_MODEL),LW690)
# # We're on Cricket (In progress)
# CDMA_GOOGLE_BASE := android-cricket-us
# CDMA_CARRIER_ALPHA := Cricket
# CDMA_CARRIER_NUMERIC := 310016
# BLUETOOTH_FIRMWARE := BCM4325D1_004.002.004.0285.0301.hcd
#endif