forked from AngelaCooljx/twrp_device_oneplus_ovaltine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice.mk
113 lines (88 loc) · 2.7 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
#
# Copyright (C) 2022 The Android Open Source Project
#
# SPDX-License-Identifier: Apache-2.0
#
LOCAL_PATH := device/oneplus/ovaltine
# Inherit from common AOSP config
$(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)
# Enable project quotas and casefolding for emulated storage without sdcardfs
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
# Installs gsi keys into ramdisk, to boot a GSI with verified boot.
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk)
# Default Android A/B configuration
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk)
# A/B related packages
ENABLE_AB := true
ENABLE_VIRTUAL_AB := true
PRODUCT_PACKAGES += update_engine \
update_engine_client \
update_verifier \
PRODUCT_PACKAGES += \
update_engine_sideload
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_vendor=true \
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
FILESYSTEM_TYPE_vendor=ext4 \
POSTINSTALL_OPTIONAL_vendor=true
# Board
BOARD_SHIPPING_API_LEVEL := 31
BOARD_API_LEVEL := 31
PRODUCT_SHIPPING_API_LEVEL := 31
SHIPPING_API_LEVEL := 31
# Boot/kernel Console enabled
TARGET_CONSOLE_ENABLED := true
# Boot control
PRODUCT_PACKAGES += \
bootctrl.oneplus_sm8475 \
bootctrl.oneplus_sm8475.recovery
PRODUCT_PACKAGES_DEBUG += \
bootctl
# Build
BUILD_BROKEN_DUP_RULES := true
RELAX_USES_LIBRARY_CHECK := true
# Crypto
PRODUCT_PACKAGES += \
qcom_decrypt \
qcom_decrypt_fbe
# Dynamic partition Handling
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Fastbootd
PRODUCT_PACKAGES += \
fastbootd \
resetprop
# f2fs utilities
PRODUCT_PACKAGES += \
sg_write_buffer \
f2fs_io \
check_f2fs
# Health
PRODUCT_PACKAGES += \
# Platform
TARGET_BOARD_PLATFORM := taro
TARGET_BOOTLOADER_BOARD_NAME := taro
QCOM_BOARD_PLATFORMS += taro
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(DEVICE_PATH)
# Suppot to compile recovery without msm headers
TARGET_HAS_GENERIC_KERNEL_HEADERS := true
# Userdata checkpoint
PRODUCT_PACKAGES += \
checkpoint_gc
# Vibrator
TARGET_RECOVERY_DEVICE_MODULES += \
android.hardware.vibrator-V2-ndk_platform.so
RECOVERY_LIBRARY_SOURCE_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/android.hardware.vibrator-V2-ndk_platform.so \