-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
153 lines (133 loc) · 7.54 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
#
# Copyright (C) 2013 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.
#
#initrc files
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/init.rc/init.odroidn2.board.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.odroid.board.rc \
device/hardkernel/odroidn2/init.rc/init.odroidn2.media.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.odroid.media.rc \
device/hardkernel/odroidn2/init.rc/init.odroidn2.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.odroid.usb.rc
ifneq ($(TARGET_BUILD_GOOGLE_ATV), true)
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/init.rc/init.odroidn2.system_root.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.odroidn2.rc
else
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/init.rc/init.odroidn2.system.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.odroidn2.rc
endif
ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true)
PRODUCT_COPY_FILES += \
device/hardkernel/common/products/mbox/ueventd.odroid.rc:root/ueventd.odroidn2.rc
else
PRODUCT_COPY_FILES += \
device/hardkernel/common/products/mbox/ueventd.odroid.rc:recovery/root/ueventd.odroidn2.rc
endif
# DRM HAL
PRODUCT_PACKAGES += \
[email protected]:32 \
move_widevine_data.sh
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/files/audio_effects.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.conf \
device/hardkernel/odroidn2/files/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
device/hardkernel/odroidn2/files/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \
device/hardkernel/odroidn2/files/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles.xml \
device/hardkernel/odroidn2/files/media_profiles_V1_0_hevc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0_hevc.xml \
device/hardkernel/odroidn2/files/media_profiles_V1_0_h264.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0_h264.xml \
device/hardkernel/odroidn2/files/media_profiles_V1_0_hevc_cctv.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0_hevc_cctv.xml \
device/hardkernel/odroidn2/files/media_profiles_V1_0_h264_cctv.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0_h264_cctv.xml \
device/hardkernel/odroidn2/files/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/files/mesondisplay.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/mesondisplay.cfg \
device/hardkernel/odroidn2/files/remote.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/remote.cfg \
device/hardkernel/odroidn2/files/remote.tab1:$(TARGET_COPY_OUT_VENDOR)/etc/remote.tab1 \
device/hardkernel/odroidn2/files/remote.tab2:$(TARGET_COPY_OUT_VENDOR)/etc/remote.tab2 \
device/hardkernel/odroidn2/files/remote.tab3:$(TARGET_COPY_OUT_VENDOR)/etc/remote.tab3 \
device/hardkernel/odroidn2/files/PQ/pq.db:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig/pq/pq.db \
device/hardkernel/odroidn2/files/PQ/pq_default.ini:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig/pq/pq_default.ini
ifeq ($(BOARD_COMPILE_ATV),true)
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/files/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml
else
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/aosp/files/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml
endif
ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/files/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
device/hardkernel/odroidn2/files/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml
else
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/files/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf
endif
ifeq ($(TARGET_WITH_MEDIA_EXT), true)
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/files/media_codecs_ext.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_ext.xml
endif
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/recovery/init.recovery.odroidn2.rc:root/init.recovery.odroidn2.rc \
device/hardkernel/odroidn2/recovery/recovery.kl:recovery/root/etc/recovery.kl \
device/hardkernel/odroidn2/files/mesondisplay.cfg:recovery/root/etc/mesondisplay.cfg \
device/hardkernel/odroidn2/recovery/remotecfg:recovery/root/sbin/remotecfg \
device/hardkernel/odroidn2/files/remote.cfg:recovery/root/etc/remote.cfg \
device/hardkernel/odroidn2/files/remote.tab1:recovery/root/etc/remote.tab1 \
device/hardkernel/odroidn2/files/remote.tab2:recovery/root/etc/remote.tab2 \
device/hardkernel/odroidn2/files/remote.tab3:recovery/root/etc/remote.tab3 \
device/hardkernel/odroidn2/recovery/sh:recovery/root/sbin/sh
# remote IME config file
PRODUCT_COPY_FILES += \
device/hardkernel/common/products/mbox/Vendor_0001_Product_0001.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Vendor_0001_Product_0001.kl \
device/hardkernel/common/products/mbox/Vendor_1915_Product_0001.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Vendor_1915_Product_0001.kl
ifneq ($(TARGET_BUILD_GOOGLE_ATV), true)
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/files/Generic.kl:/$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Generic.kl
else
PRODUCT_COPY_FILES += \
device/hardkernel/common/Generic.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Generic.kl
endif
ifeq ($(TARGET_BUILD_GOOGLE_ATV),true)
PRODUCT_AAPT_CONFIG := normal large xlarge tvdpi hdpi xhdpi xxhdpi
PRODUCT_AAPT_PREF_CONFIG := tvdpi
PRODUCT_CHARACTERISTICS := tv
else
PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
PRODUCT_CHARACTERISTICS := tablet
endif
ifneq ($(TARGET_BUILD_GOOGLE_ATV), true)
DEVICE_PACKAGE_OVERLAYS := \
device/hardkernel/odroidn2/overlay
endif
PRODUCT_TAGS += dalvik.gc.type-precise
# setup dalvik vm configs.
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
#To remove healthd from the build
PRODUCT_PACKAGES += [email protected]
DEVICE_FRAMEWORK_MANIFEST_FILE += \
system/libhidl/vintfdata/manifest_healthd_exclude.xml
#To keep healthd in the build
PRODUCT_PACKAGES += [email protected]
PRODUCT_COPY_FILES += \
device/hardkernel/odroidn2/files/boot.ini.template:vendor/etc/boot.ini.template \
device/hardkernel/odroidn2/files/boblight:vendor/bin/boblight \
device/hardkernel/odroidn2/files/hardkernel-720.bmp.gz:vendor/etc/hardkernel-720.bmp.gz \
device/hardkernel/odroidn2/files/makebootini:vendor/bin/makebootini \
device/hardkernel/odroidn2/files/default.prop.template:vendor/etc/default.prop.template \
device/hardkernel/odroidn2/files/makedefaultprop:vendor/bin/makedefaultprop \
device/hardkernel/odroidn2/files/env.ini.template:vendor/etc/env.ini.template \
device/hardkernel/odroidn2/recovery/apply_ini.sh:vendor/bin/apply_ini.sh \
device/hardkernel/odroidn2/files/usb_modeswitch.conf.template:vendor/etc/usb_modeswitch.conf.template
# Inherit from my custom product configuration
$(call inherit-product, vendor/secuflag/common.mk)