116 lines
4.1 KiB
Makefile
116 lines
4.1 KiB
Makefile
#
|
|
# Copyright (C) 2021 The LineageOS Project
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
|
|
|
|
# Inherit proprietary targets
|
|
$(call inherit-product-if-exists, vendor/realme/sm7125-common/sm7125-common-vendor.mk)
|
|
|
|
# Enable updating of APEXes
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
|
|
|
|
# Setup dalvik vm configs
|
|
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
|
|
|
|
# Partitions
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
|
|
|
# AID/fs configs
|
|
PRODUCT_PACKAGES += \
|
|
fs_config_files
|
|
|
|
# API
|
|
PRODUCT_SHIPPING_API_LEVEL := 29
|
|
|
|
# Audio
|
|
PRODUCT_PACKAGES += \
|
|
libvolumelistener
|
|
|
|
PRODUCT_PACKAGES += \
|
|
audio.a2dp.default \
|
|
audio.usb.default \
|
|
audio.r_submix.default \
|
|
libaudio-resampler
|
|
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.audio@6.0-impl \
|
|
android.hardware.audio.effect@6.0-impl \
|
|
android.hardware.soundtrigger@2.2-impl \
|
|
android.hardware.audio@2.0-service
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
|
|
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
|
|
frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:/$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
|
|
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:/$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
|
|
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:/$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
|
|
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:/$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
|
|
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:/$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/audio/odm/,$(TARGET_COPY_OUT_ODM)/etc) \
|
|
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/audio/vendor/,$(TARGET_COPY_OUT_VENDOR)/etc)
|
|
|
|
# Boot animation
|
|
TARGET_SCREEN_HEIGHT := 2400
|
|
TARGET_SCREEN_WIDTH := 1080
|
|
|
|
# Component override
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml \
|
|
$(LOCAL_PATH)/configs/component-overrides_qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/component-overrides.xml
|
|
|
|
# HIDL
|
|
PRODUCT_PACKAGES += \
|
|
android.hidl.base@1.0 \
|
|
android.hidl.base@1.0.vendor \
|
|
android.hidl.manager@1.0 \
|
|
android.hidl.manager@1.0.vendor
|
|
|
|
# Keylayout
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl
|
|
|
|
# Lights
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.light@2.0-service.realme_sm7125
|
|
|
|
# Media
|
|
PRODUCT_PACKAGES += \
|
|
libmm-omxcore \
|
|
libOmxAacEnc \
|
|
libOmxAmrEnc \
|
|
libOmxCore \
|
|
libOmxEvrcEnc \
|
|
libOmxG711Enc \
|
|
libOmxQcelp13Enc \
|
|
libOmxVdec \
|
|
libOmxVenc \
|
|
libOmxSwVdec \
|
|
libstagefrighthw
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/media/vendor,$(TARGET_COPY_OUT_VENDOR)/etc) \
|
|
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/media/odm/,$(TARGET_COPY_OUT_ODM)/etc)
|
|
|
|
# Soong namespaces
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
$(LOCAL_PATH) \
|
|
kernel/realme/sm7125
|
|
|
|
# VNDK
|
|
PRODUCT_PACKAGES += \
|
|
vndk_package
|