-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
71 lines (54 loc) · 1.77 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
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from sm8350-common
$(call inherit-product, device/xiaomi/sm8350-common/common.mk)
# Inherit from miuicamera-venus
$(call inherit-product-if-exists, device/xiaomi/miuicamera-venus/device.mk)
# Display Device Config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/display_id_4630946736638489730.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/displayconfig/display_id_4630946736638489730.xml
# Fingerprint
PRODUCT_PACKAGES += \
libudfpshandler \
# Init scripts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/init.venus.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.venus.rc
# Kernel
TARGET_KERNEL_DIR ?= device/xiaomi/venus-kernel
LOCAL_KERNEL := $(TARGET_KERNEL_DIR)/Image
PRODUCT_COPY_FILES += $(LOCAL_KERNEL):kernel
# Kernel Headers
PRODUCT_VENDOR_KERNEL_HEADERS += device/xiaomi/venus-kernel/kernel-headers
# Overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-statix
PRODUCT_PACKAGES += \
ApertureResVenus \
FrameworksResVenus \
NfcResVenus \
SettingsOverlayM2011K2C \
SettingsOverlayM2011K2G \
SettingsProviderOverlayVenus \
SettingsResVenus \
SystemUIResVenus
# Powershare
$(call inherit-product, vendor/hardware/xiaomi/aidl/powershare/product.mk)
# Sensors
PRODUCT_PACKAGES += \
sensors.xiaomi
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Touch
PRODUCT_PACKAGES += \
[email protected]_sm8350
# WiFi
PRODUCT_PACKAGES += \
TargetWifiOverlay
# Call the proprietary setup
$(call inherit-product, vendor/xiaomi/venus/venus-vendor.mk)