blob: 43fffa61aa7b87d1161c5322a8cefa2f4f05519c [file] [log] [blame]
Nahhk0b0b2e92025-03-19 06:23:56 -05001#
2# Copyright (C) 2025 The LineageOS Project
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7# Inherit from those products. Most specific first.
8$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
9$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
10
Bruno Martinsf28d22d2024-06-23 12:29:15 +010011# Add common definitions for Qualcomm
12$(call inherit-product, hardware/qcom-caf/common/common.mk)
13
Nahhk0b0b2e92025-03-19 06:23:56 -050014# Enable project quotas and casefolding for emulated storage without sdcardfs
15$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
16
17# Setup dalvik vm configs
18$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
19
20# Inherit the proprietary files
21$(call inherit-product, vendor/xiaomi/sm6225-common/sm6225-common-vendor.mk)
Nahhkf6a7fea2025-01-20 12:23:44 -050022
Nahhkbdc8b122024-12-19 15:20:28 -050023# A/B
24$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk)
25$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/vabc_features.mk)
26
27PRODUCT_VIRTUAL_AB_COMPRESSION_METHOD := lz4
28
29AB_OTA_POSTINSTALL_CONFIG += \
30 RUN_POSTINSTALL_system=true \
31 POSTINSTALL_PATH_system=system/bin/otapreopt_script \
32 FILESYSTEM_TYPE_system=ext4 \
33 POSTINSTALL_OPTIONAL_system=true
34
35AB_OTA_POSTINSTALL_CONFIG += \
36 RUN_POSTINSTALL_vendor=true \
37 POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
38 FILESYSTEM_TYPE_vendor=ext4 \
39 POSTINSTALL_OPTIONAL_vendor=true
40
41PRODUCT_PACKAGES += \
42 checkpoint_gc \
43 otapreopt_script
44
Cosmin Tanislav1a762912025-02-19 02:44:05 +020045# Boot control
46PRODUCT_PACKAGES += \
47 android.hardware.boot-service.qti \
48 android.hardware.boot-service.qti.recovery
49
Nahhkc20cc062025-03-19 08:42:03 -050050# Fastbootd
51PRODUCT_PACKAGES += \
52 fastbootd
53
Nahhke28898b2025-03-26 17:41:25 -050054# Overlays
55PRODUCT_PACKAGES += \
56 CarrierConfigResCommon \
Danny Baumann2681bab2018-07-18 17:25:32 +020057 DialerResCommon \
Nahhke28898b2025-03-26 17:41:25 -050058 FrameworksResCommon \
59 FrameworksResTarget \
60 SettingsResCommon \
61 SystemUIResCommon \
62 TelephonyResCommon \
63 WifiResCommon \
64 WifiResTarget
65
Michael Bestasd0a68f82025-01-13 11:03:38 +020066# Partitions
67PRODUCT_PACKAGES += \
68 vendor_bt_firmware_mountpoint \
69 vendor_dsp_mountpoint \
70 vendor_firmware_mnt_mountpoint
71
Nahhk74c51492024-12-19 15:08:45 -050072PRODUCT_USE_DYNAMIC_PARTITIONS := true
73
Nahhkc20cc062025-03-19 08:42:03 -050074# Rootdir
75PRODUCT_PACKAGES += \
76 fstab.qcom \
77 fstab.qcom.vendor_ramdisk \
78 init.recovery.qcom.rc
79
Nahhkf6a7fea2025-01-20 12:23:44 -050080# Shipping API Level
81PRODUCT_SHIPPING_API_LEVEL := 33
Alessandro Astone7042dfb2020-10-29 08:40:54 +010082
83# Soong namespaces
84PRODUCT_SOONG_NAMESPACES += \
Nahhkf6676642024-08-25 21:45:04 -050085 $(LOCAL_PATH) \
86 hardware/xiaomi
Nahhkbdc8b122024-12-19 15:20:28 -050087
88# Update engine
89PRODUCT_PACKAGES += \
90 update_engine \
91 update_engine_sideload \
92 update_verifier
93
94PRODUCT_PACKAGES_DEBUG += \
95 update_engine_client