-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBoardConfigTegra.mk
112 lines (97 loc) · 3.57 KB
/
BoardConfigTegra.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
#
# Copyright (C) 2019 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.
#
# Baseline Manifest, must be declared before any module manifests
DEVICE_MANIFEST_FILE ?= device/nvidia/tegra-common/manifests/manifest.$(TARGET_TEGRA_MAN_LVL).xml
# Audio
ifneq ($(TARGET_TEGRA_AUDIO),)
ifeq ($(filter audio, $(TARGET_TEGRA_DOLBY)),)
DEVICE_MANIFEST_FILE += device/nvidia/tegra-common/manifests/audio.xml
endif
ifeq ($(TARGET_TEGRA_AUDIO),tinyhal)
BOARD_USES_TINYHAL_AUDIO := true
endif
endif
# Bluetooth
ifneq ($(TARGET_TEGRA_BT),)
BOARD_HAVE_BLUETOOTH := true
DEVICE_MANIFEST_FILE += device/nvidia/tegra-common/manifests/bluetooth.xml
ifneq ($(filter bcm, $(TARGET_TEGRA_BT)),)
BOARD_HAVE_BLUETOOTH_BCM := true
endif
endif
# Boot Control
ifneq ($(TARGET_TEGRA_BOOTCTRL),)
DEVICE_MANIFEST_FILE += device/nvidia/tegra-common/manifests/boot.xml
endif
# CEC
ifneq ($(filter-out lineage,$(TARGET_TEGRA_CEC)),)
DEVICE_MANIFEST_FILE += device/nvidia/tegra-common/manifests/cec.xml
endif
# Graphics
ifeq ($(TARGET_TEGRA_GPU),drm)
BOARD_GPU_DRIVERS ?= nouveau tegra
BOARD_USES_DRM_HWCOMPOSER := true
DEVICE_MANIFEST_FILE += device/nvidia/tegra-common/manifests/drm.xml
TARGET_USES_HWC2 := true
else ifeq ($(TARGET_TEGRA_GPU),swiftshader)
DEVICE_MANIFEST_FILE += device/nvidia/tegra-common/manifests/drm.xml
TARGET_USES_HWC2 := true
endif
# HIDL
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \
device/nvidia/tegra-common/manifests/device_framework_matrix.xml
ifneq ($(LMODROID_BUILD),)
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += \
vendor/lmodroid/config/device_framework_matrix.xml
endif
# Keystore
ifneq ($(filter rel-shield-r, $(TARGET_TEGRA_TOS)),)
DEVICE_MANIFEST_FILE += device/nvidia/tegra-common/manifests/keystore.xml
ifeq ($(TARGET_SUPPORTS_64_BIT_APPS),true)
TARGET_LD_SHIM_LIBS += \
/vendor/bin/hw/android.hardware.keymaster@3.0-service.tegra|/vendor/lib64/libkeymaster_shim.so
else
TARGET_LD_SHIM_LIBS += \
/vendor/bin/hw/android.hardware.keymaster@3.0-service.tegra|/vendor/lib/libkeymaster_shim.so
endif
else ifeq ($(TARGET_TEGRA_TOS),software)
DEVICE_MANIFEST_FILE += device/nvidia/tegra-common/manifests/keystore.xml
endif
# Odm permissions
TARGET_FS_CONFIG_GEN += device/nvidia/tegra-common/config.fs
# Omx
ifeq ($(TARGET_TEGRA_OMX),software)
DEVICE_MANIFEST_FILE += device/nvidia/tegra-common/manifests/omx.xml
endif
# Sensors
ifneq ($(TARGET_TEGRA_SENSORS),)
DEVICE_MANIFEST_FILE += device/nvidia/tegra-common/manifests/sensors.xml
endif
# Wifi
ifneq ($(TARGET_TEGRA_WIFI),)
# rtl8822ce driver works with bcm userspace
ifneq ($(filter $(TARGET_TEGRA_WIFI), bcm rtl8822ce),)
BOARD_WLAN_DEVICE := bcmdhd
WIFI_DRIVER_FW_PATH_PARAM := "/data/vendor/wifi/fw_path"
endif
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
BOARD_HOSTAPD_DRIVER := NL80211
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true
endif
include device/nvidia/sepolicy/sepolicy.mk