-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
126 lines (102 loc) · 3.49 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
#
# Copyright (C) 2023 The LineageOS 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.
#
TARGET_TEGRA_VARIANT := common
TARGET_TEGRA_AUDIO := tinyhal
TARGET_TEGRA_BT := bcm
TARGET_TEGRA_CEC :=
TARGET_TEGRA_KERNEL := 4.9
TARGET_TEGRA_KEYSTORE := software
TARGET_TEGRA_LIGHT ?= lineage
TARGET_TEGRA_THERMAL ?= lineage
TARGET_TEGRA_WIDEVINE := rel-shield-r
TARGET_TEGRA_WIFI := bcm
TARGET_TEGRA_WIREGUARD := compat
include device/nvidia/t210-common/t210.mk
# Properties
include device/google/sphynx/properties.mk
PRODUCT_CHARACTERISTICS := tablet
PRODUCT_AAPT_CONFIG := normal large xlarge hdpi xhdpi xxhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
include device/google/sphynx/vendor/sphynx-vendor.mk
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
device/google/sphynx/overlay
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += device/google/sphynx
# Init related
PRODUCT_PACKAGES += \
fstab.dragon \
init.dragon.rc \
init.loki_foster_e_common.rc \
init.recovery.dragon.rc \
power.dragon.rc
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/tablet_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/tablet_core_hardware.xml
# Audio
PRODUCT_PACKAGES += \
audio_effects.xml \
audio_policy_configuration.xml \
audio.sphynx.xml
# Boot Animation
TARGET_BOOTANIMATION_HALF_RES := true
TARGET_SCREEN_HEIGHT := 1800
TARGET_SCREEN_WIDTH := 2560
# GMS
WITH_GMS_COMMS_SUITE := false
# Keylayouts
PRODUCT_PACKAGES += \
gpio-keys.kl
# Loadable kernel modules
PRODUCT_PACKAGES += \
init.lkm.rc \
lkm_loader \
lkm_loader_target
# Media config
ifneq ($(filter rel-shield-r, $(TARGET_TEGRA_OMX)),)
PRODUCT_PACKAGES += \
media_codecs.xml \
media_codecs_performance.xml \
media_profiles_V1_0.xml \
enctune.conf
endif
# Partitions
$(call inherit-product, $(SRC_TARGET_DIR)/product/non_ab_device.mk)
# PHS
ifneq ($(TARGET_TEGRA_PHS),)
PRODUCT_PACKAGES += \
nvphsd.conf
endif
# Power
PRODUCT_COPY_FILES += \
system/core/libprocessgroup/profiles/cgroups_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/cgroups.json \
system/core/libprocessgroup/profiles/task_profiles_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
# Shipping API
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_m.mk)
# Thermal
ifneq ($(TARGET_TEGRA_THERMAL),)
PRODUCT_PACKAGES += \
thermalhal.dragon.xml
endif
# VBoot
$(call inherit-product, build/target/product/vboot.mk)
# WiFi
PRODUCT_PACKAGES += \
WifiOverlay