-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdevice.mk
218 lines (191 loc) · 9.05 KB
/
device.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
# Copyright (C) 2013 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This is the product configuration for a full solana
#
DEVICE_FOLDER := device/motorola/solana
ifeq ($(TARGET_DEVICE),solana)
BOARD_USES_KEXEC := true
endif
# Device overlay
DEVICE_PACKAGE_OVERLAYS += $(DEVICE_FOLDER)/overlay
# high-density artwork where available
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
PRODUCT_PACKAGES += \
charger \
charger_res_images
# Hardware HALs
PRODUCT_PACKAGES += \
hwcomposer.solana \
sensors.solana \
lights.solana \
audio.usb.default \
audio.a2dp.default
PRODUCT_PACKAGES += \
audio_policy.omap4 \
libasound \
libaudioutils \
libaudiohw_legacy
# BlueZ test tools
PRODUCT_PACKAGES += \
hciconfig \
hcitool
# Modem
PRODUCT_PACKAGES += \
libreference-cdma-sms \
libaudiomodemgeneric \
rild \
radiooptions
# Wifi
PRODUCT_PACKAGES += \
lib_driver_cmd_wl12xx \
dhcpcd.conf \
hostapd.conf \
wifical.sh \
wpa_supplicant.conf \
TQS_D_1.7.ini \
TQS_D_1.7_127x.ini \
crda \
regulatory.bin \
calibrator \
busybox
# Wifi Direct and WPAN
PRODUCT_PACKAGES += \
ti_wfd_libs \
ti-wpan-fw
# Bluetooth
PRODUCT_PACKAGES += \
uim-sysfs \
libbt-vendor
# Misc
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# Motorola Binaries
PRODUCT_PACKAGES += \
aplogd \
charge_only_mode \
modemlog \
mot_boot_mode \
motobox \
usbd
# OMAP4
PRODUCT_PACKAGES += \
libdomx \
libOMX_Core \
libOMX.TI.DUCATI1.VIDEO.H264E \
libOMX.TI.DUCATI1.VIDEO.MPEG4E \
libOMX.TI.DUCATI1.VIDEO.DECODER \
libOMX.TI.DUCATI1.VIDEO.DECODER.secure \
libOMX.TI.DUCATI1.VIDEO.CAMERA \
libOMX.TI.DUCATI1.MISC.SAMPLE \
libstagefrighthw \
libI420colorconvert \
libtiutils \
libion_ti \
smc_pa_ctrl \
tf_daemon \
libtf_crypto_sst \
libmm_osal
PRODUCT_PACKAGES += \
evtest \
DockAudio \
libjni_filtershow_filters \
libjni_mosaic \
Torch
# Permissions files
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml
# WLAN firmware
PRODUCT_COPY_FILES += \
$(DEVICE_FOLDER)/firmware/ti-connectivity/wl128x-fw-4-mr.bin:system/etc/firmware/ti-connectivity/wl128x-fw-4-mr.bin \
$(DEVICE_FOLDER)/firmware/ti-connectivity/wl128x-fw-4-plt.bin:system/etc/firmware/ti-connectivity/wl128x-fw-4-plt.bin \
$(DEVICE_FOLDER)/firmware/ti-connectivity/wl128x-fw-4-sr.bin:system/etc/firmware/ti-connectivity/wl128x-fw-4-sr.bin \
$(DEVICE_FOLDER)/firmware/ti-connectivity/wl1271-nvs.bin:system/etc/firmware/ti-connectivity/wl1271-nvs.bin
# Rootfs files
PRODUCT_COPY_FILES += \
$(DEVICE_FOLDER)/root/default.prop:/root/default.prop \
$(DEVICE_FOLDER)/root/init.mapphone_cdma.rc:/root/init.mapphone_cdma.rc \
$(DEVICE_FOLDER)/root/init.mapphone_umts.rc:/root/init.mapphone_umts.rc \
$(DEVICE_FOLDER)/root/init.usb.rc:/root/init.usb.rc \
$(DEVICE_FOLDER)/root/ueventd.mapphone.rc:/root/ueventd.mapphone_cdma.rc \
$(DEVICE_FOLDER)/root/ueventd.mapphone.rc:/root/ueventd.mapphone_umts.rc
# Kexec files
PRODUCT_COPY_FILES += \
$(DEVICE_FOLDER)/kexec/arm_kexec.ko:system/etc/kexec/arm_kexec.ko \
$(DEVICE_FOLDER)/kexec/devtree:system/etc/kexec/devtree \
$(DEVICE_FOLDER)/kexec/kexec.ko:system/etc/kexec/kexec.ko \
$(DEVICE_FOLDER)/kexec/uart.ko:system/etc/kexec/uart.ko \
$(DEVICE_FOLDER)/kexec/atags:system/etc/kexec/atags \
$(DEVICE_FOLDER)/kexec/kexec:system/etc/kexec/kexec \
$(OUT)/ramdisk.img:system/etc/kexec/ramdisk.img \
$(OUT)/kernel:system/etc/kexec/kernel
# Bin files for kexec load
PRODUCT_COPY_FILES += \
$(DEVICE_FOLDER)/prebuilt/bin/bbx:/root/sbin/bbx \
$(DEVICE_FOLDER)/prebuilt/bin/fixboot.sh:/root/sbin/fixboot.sh
# Prebuilts
PRODUCT_COPY_FILES += \
$(DEVICE_FOLDER)/prebuilt/etc/firmware/ducati-m3.512MB.bin:system/etc/firmware/ducati-m3.512MB.bin \
$(DEVICE_FOLDER)/prebuilt/etc/apns-conf.xml:system/etc/apns-conf.xml \
$(DEVICE_FOLDER)/prebuilt/etc/audio_policy.conf:system/etc/audio_policy.conf \
$(DEVICE_FOLDER)/prebuilt/etc/gps.conf:system/etc/gps.conf \
$(DEVICE_FOLDER)/prebuilt/etc/media_codecs.xml:system/etc/media_codecs.xml \
$(DEVICE_FOLDER)/prebuilt/etc/media_profiles.xml:system/etc/media_profiles.xml \
$(DEVICE_FOLDER)/prebuilt/etc/vold.fstab:system/etc/vold.fstab \
$(DEVICE_FOLDER)/prebuilt/usr/idc/cpcap-key.idc:system/usr/idc/cpcap-key.idc \
$(DEVICE_FOLDER)/prebuilt/usr/idc/light-prox.idc:system/usr/idc/light-prox.idc \
$(DEVICE_FOLDER)/prebuilt/usr/idc/mapphone-switch.idc:system/usr/idc/mapphone-switch.idc \
$(DEVICE_FOLDER)/prebuilt/usr/idc/omap4-keypad.idc:system/usr/idc/omap4-keypad.idc \
$(DEVICE_FOLDER)/prebuilt/usr/idc/qtouch-touchscreen.idc:system/usr/idc/qtouch-touchscreen.idc \
$(DEVICE_FOLDER)/prebuilt/usr/keychars/cpcap-key.kcm:system/usr/keychars/cpcap-key.kcm \
$(DEVICE_FOLDER)/prebuilt/usr/keychars/light-prox.kcm:system/usr/keychars/light-prox.kcm \
$(DEVICE_FOLDER)/prebuilt/usr/keychars/mapphone-switch.kcm:system/usr/keychars/mapphone-switch.kcm \
$(DEVICE_FOLDER)/prebuilt/usr/keychars/omap4-keypad.kcm:system/usr/keychars/omap4-keypad.kcm \
$(DEVICE_FOLDER)/prebuilt/usr/keychars/qtouch-touchscreen.kcm:system/usr/keychars/qtouch-touchscreen.kcm \
$(DEVICE_FOLDER)/prebuilt/usr/keylayout/cpcap-key.kl:system/usr/keylayout/cpcap-key.kl \
$(DEVICE_FOLDER)/prebuilt/usr/keylayout/light-prox.kl:system/usr/keylayout/light-prox.kl \
$(DEVICE_FOLDER)/prebuilt/usr/keylayout/mapphone-switch.kl:system/usr/keylayout/mapphone-switch.kl \
$(DEVICE_FOLDER)/prebuilt/usr/keylayout/omap4-keypad.kl:system/usr/keylayout/omap4-keypad.kl \
$(DEVICE_FOLDER)/prebuilt/usr/keylayout/qtouch-touchscreen.kl:system/usr/keylayout/qtouch-touchscreen.kl
# sw vsync setting
PRODUCT_PROPERTY_OVERRIDES += \
persist.hwc.sw_vsync=1
# 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
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
# stuff specific to ti OMAP4 hardware
#$(call inherit-product, hardware/ti/omap4xxx/omap4.mk)
$(call inherit-product, hardware/ti/omap4xxx/security/Android.mk)
$(call inherit-product, $(DEVICE_FOLDER)/imgtec/sgx-imgtec-bins.mk)
$(call inherit-product, vendor/motorola/solana/solana-vendor.mk)