-
Notifications
You must be signed in to change notification settings - Fork 0
/
shield.mk
202 lines (174 loc) · 7.45 KB
/
shield.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
#
# Copyright (C) 2016 The CyanogenMod 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.
#
# Overlay
#ifneq ($(TARGET_TEGRA_DISABLE_OVERLAY),true)
# DEVICE_PACKAGE_OVERLAYS += \
# device/nvidia/shield-common/overlay/common
# else
# DEVICE_PACKAGE_OVERLAYS += \
# device/nvidia/shield-common/overlay/tablet-do
#endif
# System properties
-include $(LOCAL_PATH)/system_prop.mk
# For android_filesystem_config.h
PRODUCT_PACKAGES += fs_config_files \
fs_config_dirs
# Ramdisk
PRODUCT_PACKAGES += \
init.comms.rc \
init.dualwifi.rc \
init.hdcp.rc \
init.nv_dev_board.usb.rc \
init.recovery.nv_dev_board.usb.rc \
init.none.rc \
init.tegra.rc \
init.tegra_emmc.rc \
init.tegra_sata.rc
ifeq ($(TARGET_TEGRA_VERSION),t114)
PRODUCT_PACKAGES += init.tf.rc
else
PRODUCT_PACKAGES += init.tlk.rc
endif
ifeq ($(TARGET_TEGRA_VERSION),t114)
PRODUCT_PACKAGES += init.t114.rc
else ifeq ($(TARGET_TEGRA_VERSION),t124)
PRODUCT_PACKAGES += init.t124.rc
else ifeq ($(TARGET_TEGRA_VERSION),t210)
PRODUCT_PACKAGES += \
init.t210.rc \
init.t210_common.rc
endif
ifeq ($(TARGET_TEGRA_TOUCH),nvtouch)
PRODUCT_PACKAGES += init.nv_touch.rc
else ifeq ($(TARGET_TEGRA_TOUCH),raydium)
PRODUCT_PACKAGES += \
init.ray_touch.rc \
init.recovery.ray_touch.rc
TARGET_RECOVERY_DEVICE_MODULES := rm-wrapper
# Raydium userspace is 32-bit, need to explicitly include the libs for recovery when 64-bit (only t210 atm)
ifeq ($(TARGET_TEGRA_VERSION),t210)
PRODUCT_COPY_FILES += \
$(OUT)/system/bin/linker:recovery/root/system/bin/linker \
$(OUT)/system/lib/libc.so:recovery/root/system/lib/libc.so \
$(OUT)/system/lib/libdl.so:recovery/root/system/lib/libdl.so \
$(OUT)/system/lib/liblog.so:recovery/root/system/lib/liblog.so \
$(OUT)/system/lib/libm.so:recovery/root/system/lib/libm.so \
$(OUT)/system/lib/libc++.so:recovery/root/system/lib/libc++.so \
$(OUT)/system/lib/libstdc++.so:recovery/root/system/lib/libstdc++.so
endif
else ifeq ($(TARGET_TEGRA_TOUCH),sharp)
PRODUCT_PACKAGES += init.sharp_touch.rc
endif
ifeq ($(TARGET_TEGRA_MODEM),icera)
PRODUCT_PACKAGES += init.icera.rc
endif
ifeq ($(AB_OTA_UPDATER),true)
PRODUCT_PACKAGES += init.update_engine.rc
endif
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml
ifneq ($(TARGET_TEGRA_VERSION),t114)
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.xml \
frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:system/etc/permissions/android.hardware.vulkan.level.xml \
frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:system/etc/permissions/android.hardware.vulkan.version.xml
endif
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.usb.default \
audio.r_submix.default \
libaudio-resampler \
libaudiospdif \
libtinyalsa \
libtinycompress \
tinycap \
tinymix \
tinyplay \
xaplay \
libstagefrighthw \
enctune.conf
# HALs
PRODUCT_PACKAGES += power.tegra \
thermal.tegra
# idc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/idc/Vendor_0955_Product_7210.idc:system/usr/idc/Vendor_0955_Product_7210.idc \
$(LOCAL_PATH)/idc/Vendor_0955_Product_7212.idc:system/usr/idc/Vendor_0955_Product_7212.idc \
$(LOCAL_PATH)/idc/Vendor_0955_Product_7213.idc:system/usr/idc/Vendor_0955_Product_7213.idc \
$(LOCAL_PATH)/idc/Vendor_0955_Product_7214.idc:system/usr/idc/Vendor_0955_Product_7214.idc
ifneq ($(TARGET_TEGRA_TOUCH),)
PRODUCT_PACKAGES += \
init.cal.rc \
raydium_ts.idc \
touch.idc \
sensor00fn11.idc
endif
# keylayout
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/tegra-kbc.kl:system/usr/keylayout/tegra-kbc.kl \
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
$(LOCAL_PATH)/keylayout/Vendor_0955_Product_7202.kl:system/usr/keylayout/Vendor_0955_Product_7202.kl \
$(LOCAL_PATH)/keylayout/Vendor_0955_Product_7203.kl:system/usr/keylayout/Vendor_0955_Product_7203.kl \
$(LOCAL_PATH)/keylayout/Vendor_0955_Product_7205.kl:system/usr/keylayout/Vendor_0955_Product_7205.kl \
$(LOCAL_PATH)/keylayout/Vendor_0955_Product_7210.kl:system/usr/keylayout/Vendor_0955_Product_7210.kl \
$(LOCAL_PATH)/keylayout/Vendor_0955_Product_7212.kl:system/usr/keylayout/Vendor_0955_Product_7212.kl \
$(LOCAL_PATH)/keylayout/Vendor_0955_Product_7213.kl:system/usr/keylayout/Vendor_0955_Product_7213.kl \
$(LOCAL_PATH)/keylayout/Vendor_0955_Product_7214.kl:system/usr/keylayout/Vendor_0955_Product_7214.kl
# Steam controller keylayouts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/Vendor_28de_Product_1102.kl:system/usr/keylayout/Vendor_28de_Product_1102.kl \
$(LOCAL_PATH)/keylayout/Vendor_28de_Product_1142.kl:system/usr/keylayout/Vendor_28de_Product_1142.kl
# Leanback apps
ifeq ($(PRODUCT_IS_ATV),true)
$(call inherit-product, vendor/google/atv/atv-common.mk)
endif
# PBC
ifeq ($(TARGET_TEGRA_VERSION),t210)
PRODUCT_PACKAGES += pbc.conf
endif
# Wifi
# All Shield devices currently use broadcom wifi / bluetooth modules
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk)
PRODUCT_PACKAGES += \
hostapd \
wpa_supplicant \
wpa_supplicant.conf
# Unified scaling
ifneq ($(TARGET_TEGRA_VERSION),t114)
PRODUCT_PACKAGES += \
ussr_setup \
init.ussrd.rc \
ussrd.conf
endif
# USB
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# Only set if framework modifications for nvcpl and shieldtech are available.
# Can be overridden per device.
NV_ANDROID_FRAMEWORK_ENHANCEMENTS := TRUE
# Only set if framework modifications for blakepairing are available.
NV_ANDROID_FRAMEWORK_ENHANCEMENTS_BLAKE := FALSE
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.adb.secure=0 \
ro.secure=0 \
ro.debuggable=1