forked from jungleji/android_device_rockchip_radxarock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice_radxarock.mk
128 lines (106 loc) · 4.35 KB
/
device_radxarock.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
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
$(call inherit-product-if-exists, vendor/rockchip/radxarock/radxarock-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += device/rockchip/radxarock/overlay
LOCAL_PATH := device/rockchip/radxarock
KERNEL_PATH := kernel
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := $(KERNEL_PATH)/arch/arm/boot/Image
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
# Kernel
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
# Recovery
PRODUCT_PACKAGES += \
librecovery_ui_radxarock \
PRODUCT_COPY_FILES += \
device/rockchip/radxarock/init.rk30board.rc:root/init.rk30board.rc \
device/rockchip/radxarock/init.rk30board.usb.rc:root/init.rk30board.usb.rc \
device/rockchip/radxarock/init.rk30board.bootmode.emmc.rc:root/init.rk30board.bootmode.emmc.rc \
device/rockchip/radxarock/init.rk30board.bootmode.unknown.rc:root/init.rk30board.bootmode.unknown.rc \
device/rockchip/radxarock/init.connectivity.rc:root/init.connectivity.rc \
device/rockchip/radxarock/ueventd.rk30board.rc:root/ueventd.rk30board.rc \
device/rockchip/radxarock/fstab.rk30board.bootmode.emmc:root/fstab.rk30board.bootmode.emmc \
device/rockchip/radxarock/fstab.rk30board.bootmode.unknown:root/fstab.rk30board.bootmode.unknown \
# Filesystem management tools
PRODUCT_PACKAGES += \
mke2fs \
e2fsck \
tune2fs \
resize2fs \
mkdosfs \
genext2fs \
mkyaffs2image \
PRODUCT_COPY_FILES += \
device/rockchip/radxarock/install-recovery.sh:system/bin/install-recovery.sh \
device/rockchip/radxarock/audio_policy.conf:system/etc/audio_policy.conf \
device/rockchip/radxarock/rkxx-remotectl.kl:system/usr/keylayout/rkxx-remotectl.kl \
device/rockchip/radxarock/rk29-keypad.kl:system/usr/keylayout/rk29-keypad.kl \
# HAL
PRODUCT_PACKAGES += \
hwcomposer.rk30board \
power.rk3188 \
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.r_submix.default \
audio.usb.default \
alsa.default \
acoustics.default \
# Media proprietary libraries
PRODUCT_PACKAGES += \
libvpu \
librk_on2 \
libjesancache \
librkwmapro \
libapedec \
libffmpegvpu \
libRKBluray \
libffmpeg_on2 \
libffmpeg \
libhevcdec \
libOMX_Core \
libomxvpu_dec \
libomxvpu_enc \
libRkOMX_Resourcemanager \
libstagefright_hdcp \
libstagefrighthw \
libstagefright \
libjpeghwenc \
libjpeghwdec \
librkswscale \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/asound_itv.conf:system/etc/asound.conf
$(call inherit-product-if-exists, $(LOCAL_PATH)/system/alsa-lib/copy.mk)
$(call inherit-product-if-exists, $(LOCAL_PATH)/system/alsa-utils/copy.mk)
# Charger
PRODUCT_PACKAGES += \
charger \
charger_res_images \
# Display
PRODUCT_PACKAGES += \
displayd \
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.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/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
PRODUCT_COPY_FILES += \
device/rockchip/radxarock/media_profiles_default.xml:system/etc/media_profiles_default.xml \
device/rockchip/radxarock/media_codecs.xml:system/etc/media_codecs.xml \
device/rockchip/radxarock/performance_info.xml:system/etc/performance_info.xml \
device/rockchip/radxarock/packages-compat.xml:system/etc/packages-compat.xml \
device/rockchip/radxarock/packages-composer.xml:system/etc/packages-composer.xml \
PRODUCT_COPY_FILES += \
device/rockchip/radxarock/bluetooth/realtek/bt/firmware/rtl8723au/rtk8723a:system/etc/firmware/rtk8723a \
device/rockchip/radxarock/bluetooth/realtek/bt/firmware/rtl8723au/rtk8723_bt_config:system/etc/firmware/rtk8723_bt_config \
$(call inherit-product, build/target/product/full_base.mk)
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := full_radxarock
PRODUCT_DEVICE := radxarock
PRODUCT_CHARACTERISTICS := tablet