-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevice.mk
64 lines (53 loc) · 1.42 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
#
# Copyright (C) 2022-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from xiaomi sm8450-common
$(call inherit-product, device/xiaomi/sm8450-common/common.mk)
# Inherit from the proprietary version
$(call inherit-product, vendor/xiaomi/mondrian/mondrian-vendor.mk)
# Camera
$(call inherit-product-if-exists, vendor/xiaomi/camera/miuicamera.mk)
# Overlay
PRODUCT_PACKAGES += \
ApertureResMondrian \
FrameworksResMondrian \
FrameworksResMondrianGlobal \
SettingsProviderResMondrian \
SettingsResMondrian \
SystemUIResMondrian \
WifiResMondrian
# Shim for miui camera
PRODUCT_PACKAGES += \
libgui_shim_miuicamera
# Sensors
PRODUCT_PACKAGES += \
sensors.xiaomi
# Logging
SPAMMY_LOG_TAGS := \
MiStcImpl \
SDM \
SDM-histogram \
SRE \
WifiHAL \
cnss-daemon \
libsensor-displayalgo \
libsensor-parseRGB \
libsensor-ssccalapi \
sensors \
vendor.qti.hardware.display.composer-service \
ifneq ($(TARGET_BUILD_VARIANT),eng)
PRODUCT_VENDOR_PROPERTIES += \
$(foreach tag,$(SPAMMY_LOG_TAGS),log.tag.$(tag)=E)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
# Remove unwanted packages
PRODUCT_PACKAGES += \
RemovePackages
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)