-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
71 lines (60 loc) · 2.74 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
#
# Copyright (C) 2011 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.
#
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/amlogic/orion/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
# Inherit generic amlogic device
$(call inherit-product, device/amlogic/common/aml-common.mk)
# Modules
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel \
device/amlogic/orion/prebuilt/modules/mali.ko:system/lib/modules/mali.ko \
device/amlogic/orion/prebuilt/modules/ump.ko:system/lib/modules/ump.ko \
device/amlogic/orion/prebuilt/modules/dhd.ko:system/lib/modules/dhd.ko
# Sensors
PRODUCT_COPY_FILES += \
device/amlogic/orion/prebuilt/sensors/sensors.amlogic.so:system/lib/hw/sensors.amlogic.so \
device/amlogic/orion/prebuilt/sensors/memsicd:system/bin/memsicd
# Wifi firmware
PRODUCT_COPY_FILES += \
device/amlogic/orion/prebuilt/firmware/sdio-g-cdc-roml-reclaim-wme-apsta-idsup-idauth.bin:/system/etc/sdio-g-cdc-roml-reclaim-wme-apsta-idsup-idauth.bin \
device/amlogic/orion/prebuilt/firmware/sdio-g-cdc-full11n-reclaim-roml-wme-idsup.bin:/system/etc/sdio-g-cdc-full11n-reclaim-roml-wme-idsup.bin \
device/amlogic/orion/prebuilt/firmware/nvram.txt:/system/etc/nvram.txt \
# Input device calibration files
PRODUCT_COPY_FILES += \
device/amlogic/orion/prebuilt/Goodix_TouchScreen_of_Guitar.idc:system/usr/idc/Goodix_TouchScreen_of_Guitar.idc
# Display modes
PRODUCT_COPY_FILES += \
device/amlogic/orion/prebuilt/set_display_mode.sh:system/bin/set_display_mode.sh \
# Gsensor
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.gsensorposition=2 \
sys.fb.bits=32 \
ro.setupwizard.mode=OPTIONAL
# Bluetooth
PRODUCT_PACKAGES += \
l2ping \
hcitool \
bttest
PRODUCT_COPY_FILES += \
device/amlogic/orion/bluetooth/input.conf:/system/etc/bluetooth/input.conf \
device/amlogic/orion/bluetooth/main.conf:/system/etc/bluetooth/main.conf \
device/amlogic/orion/bluetooth/auto_pairing.conf:/system/etc/bluetooth/auto_pairing.conf \
device/amlogic/orion/bluetooth/network.conf:/system/etc/bluetooth/network.conf \
device/amlogic/orion/bluetooth/audio.conf:/system/etc/bluetooth/audio.conf \
device/amlogic/orion/bluetooth/blacklist.conf:/system/etc/bluetooth/blacklist.conf