forked from NookieDevs/android_device_bn_encore
-
Notifications
You must be signed in to change notification settings - Fork 20
/
encore.mk
261 lines (223 loc) · 10.1 KB
/
encore.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
#
# Copyright (C) 2009 The Android Open Source Project
# Copyright (C) 2012 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.
#
# These is the hardware-specific overlay, which points to the location
# of hardware-specific resource overrides, typically the frameworks and
# application settings that are stored in resourced.
DEVICE_PACKAGE_OVERLAYS += device/bn/encore/overlay
$(call inherit-product, frameworks/native/build/tablet-dalvik-heap.mk)
# make cm build happy
PRODUCT_COPY_FILES += \
device/bn/encore/prebuilt/boot/dummy.img:boot.img
# Init files
PRODUCT_COPY_FILES += \
device/bn/encore/init.encore.rc:root/init.encore.rc \
device/bn/encore/init.encore.usb.rc:root/init.encore.usb.rc \
device/bn/encore/ueventd.encore.rc:root/ueventd.encore.rc \
device/bn/encore/fstab.encore:root/fstab.encore
PRODUCT_PACKAGES += \
fsfinder \
configure_vold.sh
# CM Platform Library
PRODUCT_PACKAGES += \
org.cyanogenmod.platform-res \
org.cyanogenmod.platform \
org.cyanogenmod.platform.xml
# key mapping and touchscreen files
PRODUCT_COPY_FILES += \
device/bn/encore/prebuilt/usr/idc/cyttsp-i2c.idc:/system/usr/idc/cyttsp-i2c.idc \
device/bn/encore/prebuilt/usr/idc/ft5x06-i2c.idc:/system/usr/idc/ft5x06-i2c.idc \
device/bn/encore/prebuilt/usr/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl
# PowerVR graphics driver configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/etc/powervr.ini:system/etc/powervr.ini
# Wifi firmware (modules are built from source)
#PRODUCT_COPY_FILES += \
# device/bn/encore/firmware/ti-connectivity/LICENSE:system/etc/firmware/ti-connectivity/LICENSE \
# device/bn/encore/firmware/ti-connectivity/wl127x-fw-4-mr.bin:system/etc/firmware/ti-connectivity/wl127x-fw-4-mr.bin \
# device/bn/encore/firmware/ti-connectivity/wl127x-fw-4-plt.bin:system/etc/firmware/ti-connectivity/wl127x-fw-4-plt.bin \
# device/bn/encore/firmware/ti-connectivity/wl127x-fw-4-sr.bin:system/etc/firmware/ti-connectivity/wl127x-fw-4-sr.bin \
# device/bn/encore/firmware/ti-connectivity/wl1271-nvs_127x.bin:system/etc/firmware/ti-connectivity/wl1271-nvs_127x.bin
PRODUCT_COPY_FILES += \
hardware/ti/wlan/mac80211/firmware/127x/LICENCE:system/etc/firmware/ti-connectivity/LICENCE
PRODUCT_PACKAGES += \
wl127x-fw-4-sr.bin \
wl127x-fw-4-mr.bin \
wl127x-fw-4-plt.bin \
wl1271-nvs_127x.bin
# Script to edit the shipped nvs file to insert the device's assigned MAC
# address
PRODUCT_PACKAGES += store-mac-addr.sh
# Bluetooth
PRODUCT_COPY_FILES += \
device/bn/encore/firmware/TIInit_7.2.31.bts:/system/etc/firmware/TIInit_7.2.31.bts
# Hardware capabilities
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/etc/permissions/core_hardware.xml:system/etc/permissions/core_hardware.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.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.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.wifi.xml:system/etc/permissions/android.hardware.wifi.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 \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
# Media Profile
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/etc/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/etc/media_codecs.xml:system/etc/media_codecs.xml
# Clears the boot counter
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/bin/clear_bootcnt.sh:/system/bin/clear_bootcnt.sh
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/alsa/libasound.so:obj/lib/libasound.so \
$(LOCAL_PATH)/prebuilt/alsa/libasound.so:system/lib/libasound.so \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/alsa/conf/alsa.conf:system/usr/share/alsa/alsa.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/dsnoop.conf:system/usr/share/alsa/pcm/dsnoop.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/modem.conf:system/usr/share/alsa/pcm/modem.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/dpl.conf:system/usr/share/alsa/pcm/dpl.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/default.conf:system/usr/share/alsa/pcm/default.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/surround51.conf:system/usr/share/alsa/pcm/surround51.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/surround41.conf:system/usr/share/alsa/pcm/surround41.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/surround50.conf:system/usr/share/alsa/pcm/surround50.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/dmix.conf:system/usr/share/alsa/pcm/dmix.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/center_lfe.conf:system/usr/share/alsa/pcm/center_lfe.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/surround40.conf:system/usr/share/alsa/pcm/surround40.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/side.conf:system/usr/share/alsa/pcm/side.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/iec958.conf:system/usr/share/alsa/pcm/iec958.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/rear.conf:system/usr/share/alsa/pcm/rear.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/surround71.conf:system/usr/share/alsa/pcm/surround71.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/pcm/front.conf:system/usr/share/alsa/pcm/front.conf \
$(LOCAL_PATH)/prebuilt/alsa/conf/cards/aliases.conf:system/usr/share/alsa/cards/aliases.conf
# If you'd like to build the audio components from source instead of using
# the prebuilts, comment out the PRODUCT_COPY_FILES lines for audio above
# and uncomment the lines below, then see BoardConfig.mk for further
# instructions.
#$(call inherit-product-if-exists, external/alsa-lib/alsa-lib-products.mk)
#PRODUCT_PACKAGES += \
# libaudio \
# alsa.omap3
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/etc/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/etc/mixer_paths.xml:system/etc/mixer_paths.xml
# Art
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/poetry/poem.txt:root/sbin/poem.txt
# update the battery log info
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/bin/log_battery_data.sh:/system/bin/log_battery_data.sh
ifeq ($(TARGET_PREBUILT_BOOTLOADER),)
LOCAL_BOOTLOADER := device/bn/encore/prebuilt/boot/MLO
else
LOCAL_BOOTLOADER := $(TARGET_PREBUILT_BOOTLOADER)
endif
ifeq ($(TARGET_PREBUILT_2NDBOOTLOADER),)
LOCAL_2NDBOOTLOADER := device/bn/encore/prebuilt/boot/u-boot.bin
else
LOCAL_2NDBOOTLOADER := $(TARGET_PREBUILT_2NDBOOTLOADER)
endif
# Boot files
PRODUCT_COPY_FILES += \
$(LOCAL_BOOTLOADER):bootloader \
$(LOCAL_2NDBOOTLOADER):2ndbootloader
# ramdisk_tools.sh -- use on-demand for various ramdisk operations, such as
# repacking the ramdisk for use on an SD card or alternate emmc partitions
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/ramdisk_tools.sh:ramdisk_tools.sh
# additions to recovery
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/recovery/postrecoveryboot.sh:recovery/root/sbin/postrecoveryboot.sh
# XXX MAGIC: build process will delete any existing init.*.rc files from the
# recovery image, then copy this file from the main initramfs to the recovery
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/recovery/init.recovery.encore.rc:root/init.recovery.encore.rc
# Product specfic packages
PRODUCT_PACKAGES += \
hwcomposer.omap3 \
lights.encore \
sensors.encore \
power.encore \
uim-sysfs \
libbt-vendor \
libaudioutils \
audio.a2dp.default \
libaudiohw_legacy \
audio.primary.encore \
acoustics.default \
com.android.future.usb.accessory \
dhcpcd.conf \
dspexec \
libCustomWifi \
libbridge \
libomap_mm_library_jni \
librs_jni \
libtiOsLib \
make_ext4fs
# OMX components
# Addition of LOCAL_MODULE_TAGS requires us to specify
# libraries needed for a particular device
PRODUCT_PACKAGES += \
libI420colorconvert \
libLCML \
libOMX_Core \
libOMX.TI.AAC.decode \
libOMX.TI.AAC.encode \
libOMX.TI.AMR.decode \
libOMX.TI.AMR.encode \
libOMX.TI.G711.decode \
libOMX.TI.G711.encode \
libOMX.TI.G722.decode \
libOMX.TI.G722.encode \
libOMX.TI.G726.decode \
libOMX.TI.G726.encode \
libOMX.TI.G729.decode \
libOMX.TI.G729.encode \
libOMX.TI.ILBC.decode \
libOMX.TI.ILBC.encode \
libOMX.TI.JPEG.decoder \
libOMX.TI.JPEG.encoder \
libOMX.TI.MP3.decode \
libOMX.TI.Video.Decoder \
libOMX.TI.Video.encoder \
libOMX.TI.VPP \
libOMX.TI.WBAMR.decode \
libOMX.TI.WBAMR.encode \
libOMX.TI.WMA.decode \
libVendor_ti_omx
PRODUCT_PACKAGES += \
libskiahw
# from omap3.mk.
PRODUCT_PACKAGES += \
libdomx \
libstagefrighthw \
libion \
smc_pa_ctrl \
tf_daemon
PRODUCT_PACKAGES += \
cexec.out
PRODUCT_CHARACTERISTICS := tablet
# Screen size is "large", density is "mdpi", need "hdpi" for extra drawables in 10.1
PRODUCT_AAPT_CONFIG := large mdpi hdpi
PRODUCT_AAPT_PREF_CONFIG := mdpi
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
# Set property overrides
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapsize=128m
$(call inherit-product-if-exists, vendor/bn/encore/encore-vendor.mk)
#$(call inherit-product-if-exists, hardware/ti/wpan/ti-wpan-products.mk)
#$(call inherit-product-if-exists, device/ti/proprietary-open/wl12xx/wlan/wl12xx-wlan-fw-products.mk)