85 lines
3.3 KiB
Makefile
85 lines
3.3 KiB
Makefile
#
|
|
# SPDX-FileCopyrightText: The LineageOS Project
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# Inherit from sm6225-common
|
|
$(call inherit-product, device/motorola/sm6225-common/common.mk)
|
|
|
|
# A/B
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk)
|
|
|
|
AB_OTA_PARTITIONS += \
|
|
vbmeta_system \
|
|
vendor_boot
|
|
|
|
# Audio - Configs
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
|
|
$(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
|
|
$(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
|
|
$(LOCAL_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml
|
|
|
|
# Boot animation
|
|
TARGET_SCREEN_HEIGHT := 2400
|
|
TARGET_SCREEN_WIDTH := 1080
|
|
|
|
# Init
|
|
PRODUCT_PACKAGES += \
|
|
fstab.qcom \
|
|
init.oem.fingerprint2.sh \
|
|
init.mmi.overlay.rc
|
|
|
|
# LiveDisplay
|
|
$(call soong_config_set,livedisplay_sysfs,enable_ab,true)
|
|
|
|
# Moto Camera 4
|
|
TARGET_MOTCAMERA4 := devon
|
|
TARGET_USES_MOTCAMERA4 := true
|
|
|
|
$(call inherit-product, vendor/motorola/MotCamera4-bengal/motcamera4.mk)
|
|
|
|
# NFC
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.nfc@1.2-service.st
|
|
|
|
# Overlay
|
|
PRODUCT_PACKAGES += \
|
|
FrameworksResDevice \
|
|
SettingsResDevice \
|
|
SystemUIResDevice \
|
|
WifiResDevice
|
|
|
|
# Permissions
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
|
|
frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
|
|
frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
|
|
frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
|
|
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml
|
|
|
|
DEVICE_SKUS := b d f
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(foreach DEVICE_SKU, $(DEVICE_SKUS), \
|
|
$(LOCAL_PATH)/permissions/unavail.android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_$(DEVICE_SKU)/unavail.android.hardware.nfc.hce.xml \
|
|
$(LOCAL_PATH)/permissions/unavail.android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_$(DEVICE_SKU)/unavail.android.hardware.nfc.hcef.xml \
|
|
$(LOCAL_PATH)/permissions/unavail.android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_$(DEVICE_SKU)/unavail.android.hardware.nfc.uicc.xml \
|
|
$(LOCAL_PATH)/permissions/unavail.android.hardware.nfc.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_$(DEVICE_SKU)/unavail.android.hardware.nfc.xml \
|
|
$(LOCAL_PATH)/permissions/unavail.com.nxp.mifare.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_$(DEVICE_SKU)/com.nxp.mifare.xml)
|
|
|
|
# Shipping API level
|
|
BOARD_SHIPPING_API_LEVEL := 30
|
|
PRODUCT_SHIPPING_API_LEVEL := 31
|
|
|
|
# Soong namespaces
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
$(LOCAL_PATH)
|
|
|
|
# Vendor ramdisk
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/init/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
|
|
|
|
# Get non-open-source specific aspects
|
|
$(call inherit-product, vendor/motorola/devon/devon-vendor.mk)
|