162 lines
4.1 KiB
Makefile
162 lines
4.1 KiB
Makefile
#
|
|
# Copyright (C) 2025 The LineageOS Project
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# Enable project quotas and casefolding for emulated storage without sdcardfs
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
|
|
|
|
# Enforce generic ramdisk allow list
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk)
|
|
|
|
# Enable updating of APEXes
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
|
|
|
|
# Enable virtual AB with vendor ramdisk
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk)
|
|
|
|
# Setup dalvik vm configs
|
|
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
|
|
|
|
# A/B
|
|
AB_OTA_POSTINSTALL_CONFIG += \
|
|
RUN_POSTINSTALL_system=true \
|
|
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
|
|
FILESYSTEM_TYPE_system=ext4 \
|
|
POSTINSTALL_OPTIONAL_system=true
|
|
|
|
AB_OTA_POSTINSTALL_CONFIG += \
|
|
RUN_POSTINSTALL_vendor=true \
|
|
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
|
|
FILESYSTEM_TYPE_vendor=ext4 \
|
|
POSTINSTALL_OPTIONAL_vendor=true
|
|
|
|
PRODUCT_PACKAGES += \
|
|
checkpoint_gc \
|
|
otapreopt_script
|
|
|
|
# API levels
|
|
PRODUCT_SHIPPING_API_LEVEL := 31
|
|
BOARD_SHIPPING_API_LEVEL := 31
|
|
|
|
# Audio
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.audio@7.0 \
|
|
android.hardware.audio@7.0-impl \
|
|
android.hardware.audio.effect@7.0-impl \
|
|
android.hardware.audio.service \
|
|
android.hardware.soundtrigger@2.3-impl \
|
|
|
|
PRODUCT_PACKAGES += \
|
|
audio.bluetooth.default \
|
|
audio.primary.taro \
|
|
audio.r_submix.default \
|
|
audio.usb.default \
|
|
sound_trigger.primary.taro
|
|
|
|
PRODUCT_PACKAGES += \
|
|
audioadsprpcd
|
|
|
|
PRODUCT_PACKAGES += \
|
|
lib_bt_aptx \
|
|
lib_bt_ble \
|
|
lib_bt_bundle \
|
|
libagm_compress_plugin \
|
|
libagm_mixer_plugin \
|
|
libagm_pcm_plugin \
|
|
libbatterylistener \
|
|
libfmpal \
|
|
libpalclient \
|
|
libqcompostprocbundle \
|
|
libqcomvisualizer \
|
|
libqcomvoiceprocessing \
|
|
libvolumelistener \
|
|
libhapticgenerator
|
|
|
|
# Boot control
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.boot-service.qti \
|
|
android.hardware.boot-service.qti.recovery
|
|
|
|
# Fstab
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/rootdir/etc/charger_fw_fstab.qti:$(TARGET_COPY_OUT_VENDOR)/etc/charger_fw_fstab.qti
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.qcom \
|
|
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
|
|
|
|
# Fwk-detect
|
|
PRODUCT_PACKAGES += \
|
|
libqti_vndfwk_detect \
|
|
libqti_vndfwk_detect.vendor \
|
|
libvndfwk_detect_jni.qti \
|
|
libvndfwk_detect_jni.qti.vendor
|
|
|
|
# Media - Dolby vision
|
|
PRODUCT_PACKAGES += \
|
|
libcodec2_hidl_shim.vendor
|
|
|
|
# Partitions
|
|
PRODUCT_PACKAGES += \
|
|
vendor_bt_firmware_mountpoint \
|
|
vendor_dsp_mountpoint \
|
|
vendor_firmware_mnt_mountpoint
|
|
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
|
|
|
# Rootdir
|
|
PRODUCT_PACKAGES += \
|
|
fstab.qcom
|
|
|
|
PRODUCT_PACKAGES += \
|
|
init.class_main.sh \
|
|
init.qcom.class_core.sh \
|
|
init.qcom.early_boot.sh \
|
|
init.qcom.post_boot.sh \
|
|
init.qcom.sh
|
|
|
|
PRODUCT_PACKAGES += \
|
|
init.qcom.rc \
|
|
init.recovery.qcom.rc \
|
|
init.target.rc \
|
|
ueventd.qcom.rc
|
|
|
|
# Soong namespaces
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
$(LOCAL_PATH) \
|
|
hardware/xiaomi
|
|
|
|
# Ueventd
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/rootdir/etc/ueventd-odm.rc:$(TARGET_COPY_OUT_ODM)/etc/ueventd.rc
|
|
|
|
# Update engine
|
|
PRODUCT_PACKAGES += \
|
|
update_engine \
|
|
update_engine_sideload \
|
|
update_verifier
|
|
|
|
PRODUCT_PACKAGES_DEBUG += \
|
|
update_engine_client
|
|
|
|
# VINTF
|
|
DEVICE_MATRIX_FILE := hardware/qcom-caf/common/compatibility_matrix.xml
|
|
|
|
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \
|
|
hardware/qcom-caf/common/vendor_framework_compatibility_matrix.xml \
|
|
hardware/xiaomi/vintf/xiaomi_framework_compatibility_matrix.xml \
|
|
vendor/lineage/config/device_framework_matrix.xml
|
|
|
|
# WiFi Display
|
|
PRODUCT_PACKAGES += \
|
|
libavservices_minijail \
|
|
libgui_shim \
|
|
libinput_shim \
|
|
libnl \
|
|
libpng.vendor \
|
|
libwfdaac_vendor \
|
|
|
|
# Get non-open-source specific aspects
|
|
$(call inherit-product, vendor/xiaomi/marble/marble-vendor.mk) |