common.mk 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. #
  2. # Copyright (C) 2020 The LineageOS Project
  3. #
  4. # SPDX-License-Identifier: Apache-2.0
  5. #
  6. # Inherit from those products. Most specific first.
  7. $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
  8. $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
  9. # Enable project quotas and casefolding for emulated storage without sdcardfs
  10. $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
  11. # Enforce generic ramdisk allow list
  12. $(call inherit-product, $(SRC_TARGET_DIR)/product/generic_ramdisk.mk)
  13. # Enable updating of APEXes
  14. $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
  15. # Enable virtual AB with vendor ramdisk
  16. $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk)
  17. # Setup dalvik vm configs
  18. $(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
  19. # Inherit from the proprietary version
  20. $(call inherit-product, vendor/xiaomi/sm8450-common/sm8450-common-vendor.mk)
  21. # A/B
  22. AB_OTA_POSTINSTALL_CONFIG += \
  23. RUN_POSTINSTALL_system=true \
  24. POSTINSTALL_PATH_system=system/bin/otapreopt_script \
  25. FILESYSTEM_TYPE_system=ext4 \
  26. POSTINSTALL_OPTIONAL_system=true
  27. AB_OTA_POSTINSTALL_CONFIG += \
  28. RUN_POSTINSTALL_vendor=true \
  29. POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
  30. FILESYSTEM_TYPE_vendor=ext4 \
  31. POSTINSTALL_OPTIONAL_vendor=true
  32. PRODUCT_PACKAGES += \
  33. checkpoint_gc \
  34. otapreopt_script
  35. # API
  36. PRODUCT_SHIPPING_API_LEVEL := 31
  37. BOARD_SHIPPING_API_LEVEL := 31
  38. # Audio
  39. PRODUCT_COPY_FILES += \
  40. $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/audio_effects.xml \
  41. $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/audio_policy_configuration.xml \
  42. $(LOCAL_PATH)/audio/mixer_paths_overlay_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/mixer_paths_overlay_dynamic.xml \
  43. $(LOCAL_PATH)/audio/mixer_paths_overlay_static.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/mixer_paths_overlay_static.xml \
  44. $(LOCAL_PATH)/audio/mixer_paths_waipio_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/mixer_paths_waipio_mtp.xml \
  45. $(LOCAL_PATH)/audio/resourcemanager_waipio_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_taro/resourcemanager_waipio_mtp.xml
  46. PRODUCT_COPY_FILES += \
  47. $(LOCAL_PATH)/audio/backend_conf.xml:$(TARGET_COPY_OUT_VENDOR)/etc/backend_conf.xml \
  48. $(LOCAL_PATH)/audio/bluetooth_qti_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_qti_hearing_aid_audio_policy_configuration.xml \
  49. $(LOCAL_PATH)/audio/card-defs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/card-defs.xml \
  50. $(LOCAL_PATH)/audio/media_codecs_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2_audio.xml \
  51. $(LOCAL_PATH)/audio/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
  52. $(LOCAL_PATH)/audio/microphone_characteristics.xml:$(TARGET_COPY_OUT_VENDOR)/etc/microphone_characteristics.xml \
  53. $(LOCAL_PATH)/audio/usecaseKvManager.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usecaseKvManager.xml
  54. PRODUCT_COPY_FILES += \
  55. frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
  56. frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
  57. frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
  58. frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
  59. frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
  60. frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
  61. # Boot control
  62. PRODUCT_PACKAGES += \
  63. [email protected] \
  64. [email protected] \
  65. [email protected]
  66. PRODUCT_PACKAGES_DEBUG += \
  67. bootctl
  68. # Fstab
  69. PRODUCT_COPY_FILES += \
  70. $(LOCAL_PATH)/rootdir/etc/charger_fw_fstab.qti:$(TARGET_COPY_OUT_VENDOR)/etc/charger_fw_fstab.qti
  71. PRODUCT_COPY_FILES += \
  72. $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.qcom \
  73. $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.qcom \
  74. $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
  75. # Media
  76. PRODUCT_PACKAGES += \
  77. init.qti.media.rc \
  78. init.qti.media.sh
  79. # Overlays
  80. PRODUCT_PACKAGES += \
  81. CarrierConfigResCommon_Sys \
  82. FrameworksResCommon_Sys \
  83. SettingsResCommon_Sys \
  84. SystemUIResCommon_Sys \
  85. TelecommResCommon_Sys \
  86. TelephonyResCommon_Sys \
  87. WifiResCommon_Sys
  88. PRODUCT_PACKAGES += \
  89. FrameworksResTarget_Vendor \
  90. FrameworksResXiaomi \
  91. SettingsProviderResXiaomi \
  92. WifiResTarget \
  93. WifiResTarget_spf
  94. # Partitions
  95. PRODUCT_USE_DYNAMIC_PARTITIONS := true
  96. # Power
  97. PRODUCT_PACKAGES += \
  98. android.hardware.power-service-qti
  99. PRODUCT_COPY_FILES += \
  100. vendor/qcom/opensource/power/config/taro/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
  101. # Recovery
  102. PRODUCT_COPY_FILES += \
  103. $(LOCAL_PATH)/rootdir/etc/init.recovery.qcom.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.qcom.rc
  104. # Sensors
  105. PRODUCT_PACKAGES += \
  106. [email protected]
  107. # Soong namespaces
  108. PRODUCT_SOONG_NAMESPACES += \
  109. $(LOCAL_PATH)
  110. # Telephony
  111. PRODUCT_PACKAGES += \
  112. ims-ext-common \
  113. ims_ext_common.xml \
  114. qti-telephony-hidl-wrapper \
  115. qti_telephony_hidl_wrapper.xml \
  116. qti-telephony-utils \
  117. qti_telephony_utils.xml \
  118. telephony-ext
  119. PRODUCT_BOOT_JARS += \
  120. telephony-ext
  121. # Ueventd
  122. PRODUCT_COPY_FILES += \
  123. $(LOCAL_PATH)/rootdir/etc/ueventd.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/ueventd.rc \
  124. $(LOCAL_PATH)/rootdir/etc/ueventd-odm.rc:$(TARGET_COPY_OUT_ODM)/etc/ueventd.rc
  125. # Update engine
  126. PRODUCT_PACKAGES += \
  127. update_engine \
  128. update_engine_sideload \
  129. update_verifier
  130. PRODUCT_PACKAGES_DEBUG += \
  131. update_engine_client
  132. # Vendor init
  133. PRODUCT_COPY_FILES += \
  134. $(LOCAL_PATH)/rootdir/etc/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.qcom.rc \
  135. $(LOCAL_PATH)/rootdir/etc/init.target.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.target.rc \
  136. $(LOCAL_PATH)/rootdir/etc/init.touch_report.rc:$(TARGET_COPY_OUT_RECOVERY)/root/vendor/etc/init/init.touch_report.rc \
  137. $(LOCAL_PATH)/rootdir/etc/init.touch_report.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.touch_report.rc \
  138. $(LOCAL_PATH)/rootdir/etc/init.xiaomi_sm8450.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.xiaomi_sm8450.rc \
  139. PRODUCT_COPY_FILES += \
  140. $(LOCAL_PATH)/rootdir/bin/init.class_main.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.class_main.sh \
  141. $(LOCAL_PATH)/rootdir/bin/init.qcom.class_core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.class_core.sh \
  142. $(LOCAL_PATH)/rootdir/bin/init.qcom.early_boot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.early_boot.sh \
  143. $(LOCAL_PATH)/rootdir/bin/init.qcom.post_boot.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.post_boot.sh \
  144. $(LOCAL_PATH)/rootdir/bin/init.qcom.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.sh