66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2024 The Android Open Source Project
|
|
# Copyright (C) 2024 SebaUbuntu's TWRP device tree generator
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
LOCAL_PATH := device/xiaomi/missi
|
|
# 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
|
|
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.health@2.1-impl \
|
|
android.hardware.health@2.1-service \
|
|
libhealthd.$(PRODUCT_PLATFORM)
|
|
#TW_LOAD_VENDOR_MODULES := "goodix_fp.ko modules.load modules.load.recovery msm_drm.ko sprd_audcp_boot.ko fpsensor_fp.ko sprd_sensor.ko aw32257_charger.ko charger-manager.ko tran_charger.ko musb_hdrc.ko musb_sprd.ko"
|
|
TW_LOAD_VENDOR_MODULES := $(shell echo \"$(shell ls $(DEVICE_PATH)/recovery/root/lib/modules)\")
|
|
|
|
# Boot control HAL
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.boot@1.0-impl-1.2
|
|
|
|
PRODUCT_PACKAGES += \
|
|
bootctrl \
|
|
bootctrl.recovery \
|
|
unisoc.bootctrl
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
bootctrl.ums9230
|
|
|
|
ENABLE_VIRTUAL_AB := true
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk)
|
|
|
|
|
|
PRODUCT_PACKAGES_DEBUG += \
|
|
update_engine_client
|
|
PRODUCT_PACKAGES_DEBUG += \
|
|
bootctrl.ums9230
|
|
PRODUCT_PACKAGES += \
|
|
otapreopt_script \
|
|
cppreopts.sh \
|
|
update_engine \
|
|
update_verifier \
|
|
update_engine_sideload
|
|
|
|
|
|
# Dynamic partitions
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
|
|
|
# A/B support
|
|
AB_OTA_UPDATER := true
|
|
|
|
# VNDK
|
|
PRODUCT_TARGET_VNDK_VERSION := 33
|
|
PRODUCT_SHIPPING_API_LEVEL := 32
|
|
# A/B
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.fastboot@1.0-impl-mock \
|
|
fastbootd
|