mirror of
https://github.com/pjgowtham/android_device_realme_ferrarri.git
synced 2026-10-25 21:50:02 +00:00
ferrari: Migrate to the SM8750 common tree and AIDL audio
Reuse the 6.6 common build while retaining WAIPIO kernel selection, Ferrari partition sizes, shipping API and the existing hardware blobs. Keep legacy radio declarations in the leaf manifest and replace the old audio/PAL/AGM declarations with the common AIDL stack. Use the common handset primary module configuration and AIDL effects without Quasar, whose proprietary library is not supplied on Ferrari. Load system_dlkm before the existing vendor loader. Retain the reviewed WAIPIO module lists rather than inheriting Sun peripheral modules. Assisted-by: LLM Change-Id: I1fcf3cbf77e5496682f8242c931b72fd9e349050
This commit is contained in:
1 parent
150daea0e5
commit
2820a4ddd0
14 files changed
+1587
-22
No files matched your search
@@ -9,6 +9,15 @@ PRODUCT_AAPT_CONFIG := normal
|
||||
PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
|
||||
|
||||
# Audio
|
||||
PRODUCT_PACKAGES += \
|
||||
libaudiocorehal.qti \
|
||||
libaudioeffecthal.qti
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/audio/audio_module_config_primary.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_module_config_primary.xml \
|
||||
$(LOCAL_PATH)/configs/audio/audio_effects_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_effects_config.xml \
|
||||
$(LOCAL_PATH)/configs/audio/audio_effects_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/audio_effects_config.xml
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/audio/backend_conf.xml:$(TARGET_COPY_OUT_ODM)/etc/backend_conf.xml \
|
||||
$(LOCAL_PATH)/audio/mixer_paths_waipio_mtp.xml:$(TARGET_COPY_OUT_ODM)/etc/mixer_paths.xml \
|
||||
@@ -58,6 +67,9 @@ PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
|
||||
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml
|
||||
|
||||
# Kernel modules
|
||||
PRODUCT_PACKAGES += init.ferrari.modules.sh
|
||||
|
||||
# Overlays
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
$(LOCAL_PATH)/overlay-lineage
|
||||
@@ -73,8 +85,28 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
$(LOCAL_PATH)
|
||||
|
||||
# Ferrari retains its own hardware blobs and WAIPIO configuration.
|
||||
COMMON_VENDOR_PATH := vendor/oneplus/sm8450-common
|
||||
COMMON_AUDIO_PLATFORM := taro
|
||||
COMMON_POWER_PLATFORM := lahaina
|
||||
COMMON_SYSTEM_DLKM_BLOCKLIST := kernel/oneplus/sm8750/modules.systemdlkm_blocklist.msm.waipio
|
||||
BOARD_SHIPPING_API_LEVEL := 31
|
||||
PRODUCT_SHIPPING_API_LEVEL := 31
|
||||
COMMON_AUDIO_CONFIG_FILES := \
|
||||
hardware/qcom-caf/sm8750/audio/primary-hal/configs/taro/microphone_characteristics.xml:$(TARGET_COPY_OUT_VENDOR)/etc/microphone_characteristics.xml \
|
||||
hardware/qcom-caf/sm8750/audio/primary-hal/configs/taro/card-defs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/card-defs.xml
|
||||
COMMON_DEVICE_MANIFEST_FILES := \
|
||||
$(LOCAL_PATH)/vintf/manifest_common.xml \
|
||||
hardware/qcom-caf/sm8750/audio/primary-hal/hal/core/manifest_audiocoreservices_qti.xml \
|
||||
hardware/qcom-caf/sm8750/audio/primary-hal/configs/sun/manifest_audio_qti_services.xml
|
||||
COMMON_GPS_CONFIG_FILES :=
|
||||
COMMON_PERF_CONFIG_FILES :=
|
||||
COMMON_NETWORK_MANIFEST_FILES :=
|
||||
COMMON_ODM_MANIFEST_FILES := $(LOCAL_PATH)/vintf/manifest_common_odm.xml
|
||||
DEVICE_FRAMEWORK_MANIFEST_FILE += $(LOCAL_PATH)/vintf/framework_manifest.xml
|
||||
|
||||
# Inherit from the common OEM chipset makefile.
|
||||
$(call inherit-product, device/oneplus/sm8450-common/common.mk)
|
||||
$(call inherit-product, device/oneplus/sm8750-common/common.mk)
|
||||
|
||||
# Inherit from the proprietary files makefile.
|
||||
$(call inherit-product, vendor/realme/ferrari/ferrari-vendor.mk)
|
||||
Reference in new issue
Block a user