-
Notifications
You must be signed in to change notification settings - Fork 8
/
device.mk
185 lines (148 loc) · 6.93 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
#
# Copyright 2012 The Android Open Source 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.
#
DEVICE_PACKAGE_OVERLAYS += device/ingenic/$(TARGET_BOARD_NAME)/overlay
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/ingenic/$(TARGET_BOARD_NAME)/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES := \
$(LOCAL_KERNEL):kernel
PRODUCT_PACKAGES := \
mke2fs \
mke2fs_host \
e2fsck \
e2fsck_host \
setup_fs
PRODUCT_PACKAGES += \
hwcomposer.xb4780 \
camera.xb4780 \
audio.primary.xb4780 \
audio_policy.xb4780 \
sensors.xb4780 \
lights.xb4780 \
libdmmu \
audio.a2dp.default \
libjzipu
#
# Build libxbomx packages/modules from source:
#
PRODUCT_PACKAGES += \
libstagefrighthw \
libstagefright_hard_alume \
libstagefright_hard_vlume \
libstagefright_hard_x264hwenc \
libOMX_Core
$(call inherit-product, frameworks/native/build/tablet-dalvik-heap.mk)
$(call inherit-product, hardware/ingenic/xb4780/libGPU/gpu.mk)
# inherit from the non-open-source side, if present
$(call inherit-product-if-exists, vendor/ingenic/$(TARGET_BOARD_NAME)/$(TARGET_BOARD_NAME)-vendor.mk)
$(call inherit-product-if-exists, vendor/google/products/gms.mk)
# Wifi
#BOARD_WLAN_DEVICE_REV :=
#WIFI_BAND := 802_11_ABG
#$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk)
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
$(LOCAL_PATH)/config/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
$(LOCAL_PATH)/config/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf \
$(LOCAL_PATH)/config/init.board.rc:root/init.$(TARGET_BOARD_NAME).rc \
$(LOCAL_PATH)/config/init.board.usb.rc:root/init.$(TARGET_BOARD_NAME).usb.rc \
$(LOCAL_PATH)/config/fstab.board:root/fstab.$(TARGET_BOARD_NAME) \
$(LOCAL_PATH)/config/ueventd.board.rc:root/ueventd.$(TARGET_BOARD_NAME).rc \
$(LOCAL_PATH)/config/bt_addr:system/etc/firmware/bcm4330/bt_addr
#PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/disk_preparing.sh:system/etc/disk_preparing.sh
# Media Codecs List
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/config/media_codecs.xml:system/etc/media_codecs.xml
# Media Codecs Firmware
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/codecs_firmware/mpeg4_p1.bin:system/etc/mpeg4_p1.bin
# modem configration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/modems-conf.xml:system/etc/modems-conf.xml
# apn configration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/apns-conf.xml:system/etc/apns-conf.xml
# Bluetooth configuration files
PRODUCT_COPY_FILES += \
system/bluetooth/data/main.le.conf:system/etc/bluetooth/main.conf \
system/bluetooth/data/input.conf:system/etc/bluetooth/input.conf \
system/bluetooth/data/audio.conf:system/etc/bluetooth/audio.conf
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/IW/bcm4330/fw_bcm4330b2.bin:system/lib/wifi/firmware/iw8101/fw_bcmdhd.bin \
$(LOCAL_PATH)/wifi/IW/bcm4330/nv_4330b2.txt:system/lib/wifi/firmware/iw8101/nvram_iw8101.txt \
$(LOCAL_PATH)/wifi/IW/bcm4330/TestRelease_BCM4330_0243.0000_Alltek_AW70_37p4M.hcd:system/etc/firmware/bcm4330/BCM4330.hcd
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/excluded-input-devices.xml:system/etc/excluded-input-devices.xml
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/audio_policy.conf:system/etc/audio_policy.conf
# logo
#PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/logo.rle:root/logo.rle \
$(LOCAL_PATH)/bootanimation.zip:system/media/bootanimation.zip
# Key layout file
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/gpio-keys.kl:/system/usr/keylayout/gpio-keys.kl
#############################################################################################
PRODUCT_AAPT_CONFIG := normal ldpi mdpi
PRODUCT_AAPT_PREF_CONFIG := ldpi
PRODUCT_LOCALES := en_US zh_CN zh_TW en_GB fr_FR it_IT de_DE es_ES cs_CZ ru_RU ko_KR ar_EG ja_JP
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=160 \
persist.sys.timezone=Asia/Shanghai \
testing.mediascanner.skiplist=/storage/host-udisk/,/storage/udisk/
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
PRODUCT_PROPERTY_OVERRIDES += \
ro.debuggable=1 \
service.adb.root=1
endif
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=15
PRODUCT_PROPERTY_OVERRIDES += \
rild.libpath=/system/lib/libreference-ril.so \
rild.libargs=-d /dev/ttyM1 \
ro.telephony.call_ring.multiple=0 \
mobiled.libpath=/system/lib/libmobiled.so
# PRODUCT_PROPERTY_OVERRIDES += \
# ro.board.hdmi.support=true \
# ro.board.hdmi.device=HDMI,LCD,SYNC \
# ro.board.hdmi.hotplug.support=true \
# PRODUCT_PROPERTY_OVERRIDES += \
# ro.board.tvout.support=false \
# ro.board.hasethernet=ethernet \
# ro.board.haspppoe=pppoe
# H/W composition disabled
#PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.hw=1
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=131072
#PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp
#PRODUCT_PROPERTY_OVERRIDES += \
net.dns1=8.8.8.8 \
net.dns2=8.8.4.4