summaryrefslogtreecommitdiff
path: root/device.mk (plain)
blob: 39f51598ca0b5a85a1010174dcab317eed967b5b
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/darwin/init.amlogic.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.usb.rc \
27 device/amlogic/darwin/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:vendor/ueventd.rc
31else
32PRODUCT_COPY_FILES += device/amlogic/common/products/tv/ueventd.amlogic.rc:recovery/root/ueventd.amlogic.rc
33endif
34
35
36PRODUCT_COPY_FILES += \
37 device/amlogic/darwin/files/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \
38 device/amlogic/darwin/files/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
39 device/amlogic/darwin/files/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \
40 device/amlogic/darwin/files/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
41 device/amlogic/darwin/files/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
42 device/amlogic/darwin/files/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
43 device/amlogic/darwin/files/mesondisplay.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/mesondisplay.cfg
44
45# remote IME config file
46PRODUCT_COPY_FILES += \
47 device/amlogic/darwin/files/remote.conf:$(TARGET_COPY_OUT_VENDOR)/etc/remote.conf \
48 device/amlogic/darwin/files/remote.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/remote.cfg \
49 device/amlogic/darwin/files/remote.tab:$(TARGET_COPY_OUT_VENDOR)/etc/remote.tab \
50 device/amlogic/common/products/tv/Vendor_0001_Product_0001.kl:/$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Vendor_0001_Product_0001.kl \
51 device/amlogic/common/products/tv/Vendor_1915_Product_0001.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Vendor_1915_Product_0001.kl
52ifneq ($(TARGET_BUILD_GOOGLE_ATV), true)
53PRODUCT_COPY_FILES += \
54 device/amlogic/darwin/files/Generic.kl:/$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Generic.kl
55else
56PRODUCT_COPY_FILES += \
57 device/amlogic/common/Generic.kl:/$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Generic.kl
58endif
59
60# recovery
61PRODUCT_COPY_FILES += \
62 device/amlogic/darwin/recovery/init.recovery.amlogic.rc:root/init.recovery.amlogic.rc \
63 device/amlogic/darwin/recovery/recovery.kl:recovery/root/etc/recovery.kl \
64 device/amlogic/darwin/files/mesondisplay.cfg:recovery/root/etc/mesondisplay.cfg \
65 device/amlogic/darwin/recovery/remotecfg:recovery/root/sbin/remotecfg \
66 device/amlogic/darwin/files/remote.cfg:recovery/root/etc/remote.cfg \
67 device/amlogic/darwin/files/remote.tab:recovery/root/etc/remote.tab \
68 device/amlogic/darwin/recovery/sh:recovery/root/sbin/sh
69
70# darwin config file
71PRODUCT_COPY_FILES += \
72 device/amlogic/darwin/files/tv/tvconfig.conf:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig/tvconfig.conf \
73 device/amlogic/darwin/files/tv/tv_default.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig/tv_default.cfg \
74 device/amlogic/darwin/files/tv/tv_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig/tv_default.xml \
75 device/amlogic/darwin/files/tv/tv_setting_config.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig/tv_setting_config.cfg \
76 device/amlogic/darwin/files/tv/pq.db:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig/pq.db \
77 device/amlogic/darwin/files/tv/dec:$(TARGET_COPY_OUT_VENDOR)/bin/dec \
78 device/amlogic/darwin/files/tv/port_14.bin:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig/hdmi/port_14.bin \
79 device/amlogic/darwin/files/tv/port_20.bin:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig/hdmi/port_20.bin \
80 device/amlogic/darwin/files/tv/tv_rrt_define.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig/tv_rrt_define.xml
81#darwin tuner
82PRODUCT_COPY_FILES += \
83 device/amlogic/darwin/files/tv/si2151_fe.ko:$(TARGET_COPY_OUT_VENDOR)/lib/si2151_fe.ko
84
85PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi
86PRODUCT_AAPT_PREF_CONFIG := hdpi
87
88# PRODUCT_CHARACTERISTICS := darwin,nosdcard
89
90PRODUCT_TAGS += dalvik.gc.type-precise
91
92
93# setup dalvik vm configs.
94$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
95
96# set default USB configuration
97PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
98 persist.sys.usb.config=mtp
99
100#To remove healthd from the build
101PRODUCT_PACKAGES += android.hardware.health@2.0-service.override
102DEVICE_FRAMEWORK_MANIFEST_FILE += \
103 system/libhidl/vintfdata/manifest_healthd_exclude.xml
104
105#To keep healthd in the build
106PRODUCT_PACKAGES += android.hardware.health@2.0-service
107