summaryrefslogtreecommitdiff
path: root/device.mk (plain)
blob: 74cf313ba83735111bc026f383d9833e85e6bcdd
1#
2# Copyright (C) 2013 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17ifeq ($(BOARD_BUILD_SYSTEM_ROOT_IMAGE), true)
18PRODUCT_COPY_FILES += \
19 device/amlogic/common/products/mbox/init.amlogic.system.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.rc
20else
21PRODUCT_COPY_FILES += \
22 device/amlogic/common/products/mbox/init.amlogic.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.rc
23endif
24
25PRODUCT_COPY_FILES += \
26 device/amlogic/einstein/init.amlogic.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.usb.rc \
27 device/amlogic/einstein/init.amlogic.board.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.board.rc
28
29ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true)
30PRODUCT_COPY_FILES += device/amlogic/common/products/tv/ueventd.amlogic.rc:root/ueventd.amlogic.rc
31else
32PRODUCT_COPY_FILES += device/amlogic/common/products/tv/ueventd.amlogic.rc:recovery/root/ueventd.amlogic.rc
33endif
34
35PRODUCT_COPY_FILES += \
36 device/amlogic/einstein/files/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \
37 device/amlogic/einstein/files/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
38 device/amlogic/einstein/files/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
39 device/amlogic/einstein/files/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
40 device/amlogic/einstein/files/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
41 device/amlogic/einstein/files/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
42 device/amlogic/einstein/files/mesondisplay.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/mesondisplay.cfg
43
44ifeq ($(TARGET_WITH_MEDIA_EXT), true)
45PRODUCT_COPY_FILES += \
46 device/amlogic/einstein/files/media_codecs_ext.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_ext.xml
47endif
48
49# remote IME config file
50PRODUCT_COPY_FILES += \
51 device/amlogic/einstein/files/remote.conf:$(TARGET_COPY_OUT_VENDOR)/etc/remote.conf \
52 device/amlogic/einstein/files/remote.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/remote.cfg \
53 device/amlogic/einstein/files/remote.tab:$(TARGET_COPY_OUT_VENDOR)/etc/remote.tab \
54 device/amlogic/common/products/tv/Vendor_0001_Product_0001.kl:/$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Vendor_0001_Product_0001.kl \
55 device/amlogic/common/products/tv/Vendor_1915_Product_0001.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Vendor_1915_Product_0001.kl
56ifneq ($(TARGET_BUILD_GOOGLE_ATV), true)
57PRODUCT_COPY_FILES += \
58 device/amlogic/einstein/files/Generic.kl:/$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Generic.kl
59else
60PRODUCT_COPY_FILES += \
61 device/amlogic/common/Generic.kl:/$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Generic.kl
62endif
63
64# recovery
65PRODUCT_COPY_FILES += \
66 device/amlogic/einstein/recovery/init.recovery.amlogic.rc:root/init.recovery.amlogic.rc \
67 device/amlogic/einstein/recovery/recovery.kl:recovery/root/etc/recovery.kl \
68 device/amlogic/einstein/files/mesondisplay.cfg:recovery/root/etc/mesondisplay.cfg \
69 device/amlogic/einstein/recovery/remotecfg:recovery/root/sbin/remotecfg \
70 device/amlogic/einstein/files/remote.cfg:recovery/root/etc/remote.cfg \
71 device/amlogic/einstein/files/remote.tab:recovery/root/etc/remote.tab \
72 device/amlogic/einstein/recovery/sh:recovery/root/sbin/sh
73
74# einstein config file
75PRODUCT_COPY_FILES += \
76 device/amlogic/einstein/files/tv/tvconfig.conf:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig.conf \
77 device/amlogic/einstein/files/tv/tv_default.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/tv_default.cfg \
78 device/amlogic/einstein/files/tv/tv_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tv_default.xml \
79 device/amlogic/einstein/files/tv/tv_setting_config.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/tv_setting_config.cfg \
80 device/amlogic/einstein/files/tv/pq.db:$(TARGET_COPY_OUT_VENDOR)/etc/pq.db \
81 device/amlogic/einstein/files/tv/dec:$(TARGET_COPY_OUT_VENDOR)/bin/dec \
82 device/amlogic/einstein/files/tv/port_14.bin:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig/hdmi/port_14.bin \
83 device/amlogic/einstein/files/tv/port_20.bin:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig/hdmi/port_20.bin \
84 device/amlogic/einstein/files/tv/tv_rrt_define.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tv_rrt_define.xml
85#einstein tuner
86PRODUCT_COPY_FILES += \
87 device/amlogic/einstein/files/tv/mxl661_fe.ko:$(TARGET_COPY_OUT_VENDOR)/lib/mxl661_fe.ko
88
89PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi
90PRODUCT_AAPT_PREF_CONFIG := hdpi
91
92PRODUCT_CHARACTERISTICS := einstein,nosdcard
93
94PRODUCT_TAGS += dalvik.gc.type-precise
95
96
97# setup dalvik vm configs.
98$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
99
100# set default USB configuration
101PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
102 persist.sys.usb.config=mtp
103
104#To remove healthd from the build
105PRODUCT_PACKAGES += android.hardware.health@2.0-service.override
106DEVICE_FRAMEWORK_MANIFEST_FILE += \
107 system/libhidl/vintfdata/manifest_healthd_exclude.xml
108
109#To keep healthd in the build
110PRODUCT_PACKAGES += android.hardware.health@2.0-service
111