Rashed Abdel-Tawab | 05aded8 | 2019-05-17 12:03:57 -0700 | [diff] [blame] | 1 | # Platform names |
LuK1337 | b82776e | 2020-06-25 15:52:52 +0200 | [diff] [blame] | 2 | KONA := kona #SM8250 |
| 3 | LITO := lito #SM7250 |
TheMalachite | 2652bdc | 2021-01-27 00:03:34 +0100 | [diff] [blame] | 4 | BENGAL := bengal #SM6115 |
Rashed Abdel-Tawab | 05aded8 | 2019-05-17 12:03:57 -0700 | [diff] [blame] | 5 | MSMNILE := msmnile #SM8150 |
| 6 | MSMSTEPPE := sm6150 |
| 7 | TRINKET := trinket #SM6125 |
TheHitMan7 | eb18aa6 | 2020-05-08 14:33:44 +0530 | [diff] [blame] | 8 | ATOLL := atoll #SM6250 |
JamieHoSzeYui | b4264ef | 2021-03-17 14:44:44 +0800 | [diff] [blame] | 9 | LAHAINA ?= lahaina #SM8350 |
SahilSonar | 7816932 | 2022-02-09 11:44:09 +0100 | [diff] [blame] | 10 | HOLI ?= holi #SM4350 |
Rashed Abdel-Tawab | 05aded8 | 2019-05-17 12:03:57 -0700 | [diff] [blame] | 11 | |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 12 | B_FAMILY := msm8226 msm8610 msm8974 |
| 13 | B64_FAMILY := msm8992 msm8994 |
| 14 | BR_FAMILY := msm8909 msm8916 |
| 15 | UM_3_18_FAMILY := msm8937 msm8953 msm8996 |
| 16 | UM_4_4_FAMILY := msm8998 sdm660 |
Isaac Chen | 60912cf | 2018-10-03 15:29:15 +0530 | [diff] [blame] | 17 | UM_4_9_FAMILY := sdm845 sdm710 |
TheHitMan7 | eb18aa6 | 2020-05-08 14:33:44 +0530 | [diff] [blame] | 18 | UM_4_14_FAMILY := $(MSMNILE) $(MSMSTEPPE) $(TRINKET) $(ATOLL) |
TheMalachite | 2652bdc | 2021-01-27 00:03:34 +0100 | [diff] [blame] | 19 | UM_4_19_FAMILY := $(KONA) $(LITO) $(BENGAL) |
SahilSonar | 7816932 | 2022-02-09 11:44:09 +0100 | [diff] [blame] | 20 | UM_5_4_FAMILY := $(LAHAINA) $(HOLI) |
JamieHoSzeYui | b4264ef | 2021-03-17 14:44:44 +0800 | [diff] [blame] | 21 | UM_PLATFORMS := $(UM_3_18_FAMILY) $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY) $(UM_5_4_FAMILY) |
| 22 | QSSI_SUPPORTED_PLATFORMS := $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY) $(UM_5_4_FAMILY) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 23 | |
Albert I | a8fb6da | 2021-03-12 22:57:51 +0530 | [diff] [blame] | 24 | ifeq ($(TARGET_USES_UM_4_19),true) |
| 25 | QSSI_SUPPORTED_PLATFORMS += $(TARGET_BOARD_PLATFORM) |
| 26 | endif |
| 27 | |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 28 | BOARD_USES_ADRENO := true |
| 29 | |
JamieHoSzeYui | b4264ef | 2021-03-17 14:44:44 +0800 | [diff] [blame] | 30 | # Add qtidisplay to soong config namespaces |
| 31 | SOONG_CONFIG_NAMESPACES += qtidisplay |
| 32 | |
| 33 | # Add supported variables to qtidisplay config |
| 34 | SOONG_CONFIG_qtidisplay += \ |
| 35 | drmpp \ |
| 36 | headless \ |
| 37 | llvmsa \ |
| 38 | gralloc4 \ |
Alexander Koskovich | 00ddf84 | 2022-03-14 08:49:58 -0700 | [diff] [blame] | 39 | udfps \ |
JamieHoSzeYui | b4264ef | 2021-03-17 14:44:44 +0800 | [diff] [blame] | 40 | default |
| 41 | |
| 42 | # Set default values for qtidisplay config |
| 43 | SOONG_CONFIG_qtidisplay_drmpp ?= false |
| 44 | SOONG_CONFIG_qtidisplay_headless ?= false |
| 45 | SOONG_CONFIG_qtidisplay_llvmsa ?= false |
| 46 | SOONG_CONFIG_qtidisplay_gralloc4 ?= false |
Alexander Koskovich | 00ddf84 | 2022-03-14 08:49:58 -0700 | [diff] [blame] | 47 | SOONG_CONFIG_qtidisplay_udfps ?= false |
JamieHoSzeYui | b4264ef | 2021-03-17 14:44:44 +0800 | [diff] [blame] | 48 | SOONG_CONFIG_qtidisplay_default ?= true |
| 49 | |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 50 | # UM platforms no longer need this set on O+ |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 51 | ifneq ($(filter $(B_FAMILY) $(B64_FAMILY) $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 52 | TARGET_USES_QCOM_BSP := true |
| 53 | endif |
| 54 | |
| 55 | # Tell HALs that we're compiling an AOSP build with an in-line kernel |
| 56 | TARGET_COMPILE_WITH_MSM_KERNEL := true |
| 57 | |
| 58 | ifneq ($(filter msm7x27a msm7x30 msm8660 msm8960,$(TARGET_BOARD_PLATFORM)),) |
| 59 | TARGET_USES_QCOM_BSP_LEGACY := true |
| 60 | # Enable legacy audio functions |
| 61 | ifeq ($(BOARD_USES_LEGACY_ALSA_AUDIO),true) |
| 62 | USE_CUSTOM_AUDIO_POLICY := 1 |
| 63 | endif |
| 64 | endif |
| 65 | |
| 66 | # Enable media extensions |
| 67 | TARGET_USES_MEDIA_EXTENSIONS := true |
| 68 | |
| 69 | # Allow building audio encoders |
| 70 | TARGET_USES_QCOM_MM_AUDIO := true |
| 71 | |
| 72 | # Enable color metadata for every UM platform |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 73 | ifneq ($(filter $(UM_PLATFORMS),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 74 | TARGET_USES_COLOR_METADATA := true |
| 75 | endif |
| 76 | |
| 77 | # Enable DRM PP driver on UM platforms that support it |
JamieHoSzeYui | b4264ef | 2021-03-17 14:44:44 +0800 | [diff] [blame] | 78 | ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY) $(UM_5_4_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
| 79 | SOONG_CONFIG_qtidisplay_drmpp := true |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 80 | TARGET_USES_DRM_PP := true |
| 81 | endif |
| 82 | |
JamieHoSzeYui | b4264ef | 2021-03-17 14:44:44 +0800 | [diff] [blame] | 83 | # Enable Gralloc4 on UM platforms that support it |
| 84 | ifneq ($(filter $(UM_5_4_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
| 85 | SOONG_CONFIG_qtidisplay_gralloc4 := true |
| 86 | endif |
| 87 | |
Bruno Martins | 9717ee7 | 2018-12-28 21:34:03 +0000 | [diff] [blame] | 88 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0 |
Michael Bestas | aed187c | 2021-01-13 23:08:35 +0200 | [diff] [blame] | 89 | |
| 90 | # Mark GRALLOC_USAGE_HW_2D as valid gralloc bit on legacy platforms that support it |
| 91 | ifneq ($(filter msm8960 msm8952 $(B_FAMILY) $(B64_FAMILY) $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
| 92 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 10) |
| 93 | endif |
| 94 | |
| 95 | # Mark GRALLOC_USAGE_EXTERNAL_DISP as valid gralloc bit |
Han Wang | 2838e8a | 2019-09-28 11:23:16 +0200 | [diff] [blame] | 96 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 13) |
Michael Bestas | aed187c | 2021-01-13 23:08:35 +0200 | [diff] [blame] | 97 | |
| 98 | # Mark GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bit |
Bruno Martins | 9717ee7 | 2018-12-28 21:34:03 +0000 | [diff] [blame] | 99 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 21) |
| 100 | |
Michael Bestas | aed187c | 2021-01-13 23:08:35 +0200 | [diff] [blame] | 101 | # Mark GRALLOC_USAGE_PRIVATE_HEIF_VIDEO as valid gralloc bit on UM platforms that support it |
JamieHoSzeYui | b4264ef | 2021-03-17 14:44:44 +0800 | [diff] [blame] | 102 | ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY) $(UM_5_4_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Bruno Martins | 9717ee7 | 2018-12-28 21:34:03 +0000 | [diff] [blame] | 103 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 27) |
| 104 | endif |
| 105 | |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 106 | # List of targets that use master side content protection |
Arian | 8d6f596 | 2022-04-04 14:32:31 +0200 | [diff] [blame] | 107 | MASTER_SIDE_CP_TARGET_LIST := msm8996 $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 108 | |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 109 | ifneq ($(filter $(B_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 110 | MSM_VIDC_TARGET_LIST := $(B_FAMILY) |
| 111 | QCOM_HARDWARE_VARIANT := msm8974 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 112 | else ifneq ($(filter $(B64_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 113 | MSM_VIDC_TARGET_LIST := $(B64_FAMILY) |
| 114 | QCOM_HARDWARE_VARIANT := msm8994 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 115 | else ifneq ($(filter $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 116 | MSM_VIDC_TARGET_LIST := $(BR_FAMILY) |
| 117 | QCOM_HARDWARE_VARIANT := msm8916 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 118 | else ifneq ($(filter $(UM_3_18_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 119 | MSM_VIDC_TARGET_LIST := $(UM_3_18_FAMILY) |
| 120 | QCOM_HARDWARE_VARIANT := msm8996 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 121 | else ifneq ($(filter $(UM_4_4_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 122 | MSM_VIDC_TARGET_LIST := $(UM_4_4_FAMILY) |
| 123 | QCOM_HARDWARE_VARIANT := msm8998 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 124 | else ifneq ($(filter $(UM_4_9_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 125 | MSM_VIDC_TARGET_LIST := $(UM_4_9_FAMILY) |
| 126 | QCOM_HARDWARE_VARIANT := sdm845 |
Rashed Abdel-Tawab | 05aded8 | 2019-05-17 12:03:57 -0700 | [diff] [blame] | 127 | else ifneq ($(filter $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
| 128 | MSM_VIDC_TARGET_LIST := $(UM_4_14_FAMILY) |
| 129 | QCOM_HARDWARE_VARIANT := sm8150 |
LuK1337 | b82776e | 2020-06-25 15:52:52 +0200 | [diff] [blame] | 130 | else ifneq ($(filter $(UM_4_19_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
| 131 | MSM_VIDC_TARGET_LIST := $(UM_4_19_FAMILY) |
| 132 | QCOM_HARDWARE_VARIANT := sm8250 |
JamieHoSzeYui | b4264ef | 2021-03-17 14:44:44 +0800 | [diff] [blame] | 133 | else ifneq ($(filter $(UM_5_4_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
JamieHoSzeYui | b4264ef | 2021-03-17 14:44:44 +0800 | [diff] [blame] | 134 | QCOM_HARDWARE_VARIANT := sm8350 |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 135 | else |
| 136 | MSM_VIDC_TARGET_LIST := $(TARGET_BOARD_PLATFORM) |
| 137 | QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM) |
| 138 | endif |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 139 | |
Andrew Hexen | 8d08a5f | 2020-05-11 16:13:13 -0700 | [diff] [blame] | 140 | # Allow a device to opt-out hardset of PRODUCT_SOONG_NAMESPACES |
| 141 | QCOM_SOONG_NAMESPACE ?= hardware/qcom-caf/$(QCOM_HARDWARE_VARIANT) |
| 142 | PRODUCT_SOONG_NAMESPACES += $(QCOM_SOONG_NAMESPACE) |
LuK1337 | a1588f4 | 2020-10-30 13:32:49 +0100 | [diff] [blame] | 143 | |
LuK1337 | 743ecee | 2022-01-26 21:27:34 +0100 | [diff] [blame] | 144 | # Add display-commonsys to PRODUCT_SOONG_NAMESPACES for QSSI supported platforms |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 145 | ifneq ($(filter $(QSSI_SUPPORTED_PLATFORMS),$(TARGET_BOARD_PLATFORM)),) |
Arian | 84c8b55 | 2021-12-03 18:35:22 +0100 | [diff] [blame] | 146 | PRODUCT_SOONG_NAMESPACES += \ |
LuK1337 | 743ecee | 2022-01-26 21:27:34 +0100 | [diff] [blame] | 147 | vendor/qcom/opensource/commonsys/display \ |
Arian | 84c8b55 | 2021-12-03 18:35:22 +0100 | [diff] [blame] | 148 | vendor/qcom/opensource/commonsys-intf/display \ |
| 149 | vendor/qcom/opensource/display |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 150 | endif |
| 151 | |
LuK1337 | a1588f4 | 2020-10-30 13:32:49 +0100 | [diff] [blame] | 152 | # Add data-ipa-cfg-mgr to PRODUCT_SOONG_NAMESPACES if needed |
| 153 | ifneq ($(USE_DEVICE_SPECIFIC_DATA_IPA_CFG_MGR),true) |
| 154 | PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/data-ipa-cfg-mgr |
| 155 | endif |
Pig | 033b440 | 2020-09-19 08:44:33 +0800 | [diff] [blame] | 156 | |
Michael Bestas | 91cbf5f | 2020-12-30 21:58:08 +0200 | [diff] [blame] | 157 | # Add dataservices to PRODUCT_SOONG_NAMESPACES if needed |
| 158 | ifneq ($(USE_DEVICE_SPECIFIC_DATASERVICES),true) |
| 159 | PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/dataservices |
| 160 | endif |