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 |
Rashed Abdel-Tawab | 05aded8 | 2019-05-17 12:03:57 -0700 | [diff] [blame] | 9 | |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 10 | B_FAMILY := msm8226 msm8610 msm8974 |
| 11 | B64_FAMILY := msm8992 msm8994 |
| 12 | BR_FAMILY := msm8909 msm8916 |
| 13 | UM_3_18_FAMILY := msm8937 msm8953 msm8996 |
| 14 | UM_4_4_FAMILY := msm8998 sdm660 |
Isaac Chen | 60912cf | 2018-10-03 15:29:15 +0530 | [diff] [blame] | 15 | UM_4_9_FAMILY := sdm845 sdm710 |
TheHitMan7 | eb18aa6 | 2020-05-08 14:33:44 +0530 | [diff] [blame] | 16 | UM_4_14_FAMILY := $(MSMNILE) $(MSMSTEPPE) $(TRINKET) $(ATOLL) |
TheMalachite | 2652bdc | 2021-01-27 00:03:34 +0100 | [diff] [blame] | 17 | UM_4_19_FAMILY := $(KONA) $(LITO) $(BENGAL) |
LuK1337 | b82776e | 2020-06-25 15:52:52 +0200 | [diff] [blame] | 18 | UM_PLATFORMS := $(UM_3_18_FAMILY) $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY) |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 19 | QSSI_SUPPORTED_PLATFORMS := $(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] | 20 | |
| 21 | BOARD_USES_ADRENO := true |
| 22 | |
| 23 | # UM platforms no longer need this set on O+ |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 24 | ifneq ($(filter $(B_FAMILY) $(B64_FAMILY) $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 25 | TARGET_USES_QCOM_BSP := true |
| 26 | endif |
| 27 | |
| 28 | # Tell HALs that we're compiling an AOSP build with an in-line kernel |
| 29 | TARGET_COMPILE_WITH_MSM_KERNEL := true |
| 30 | |
| 31 | ifneq ($(filter msm7x27a msm7x30 msm8660 msm8960,$(TARGET_BOARD_PLATFORM)),) |
| 32 | TARGET_USES_QCOM_BSP_LEGACY := true |
| 33 | # Enable legacy audio functions |
| 34 | ifeq ($(BOARD_USES_LEGACY_ALSA_AUDIO),true) |
| 35 | USE_CUSTOM_AUDIO_POLICY := 1 |
| 36 | endif |
| 37 | endif |
| 38 | |
| 39 | # Enable media extensions |
| 40 | TARGET_USES_MEDIA_EXTENSIONS := true |
| 41 | |
| 42 | # Allow building audio encoders |
| 43 | TARGET_USES_QCOM_MM_AUDIO := true |
| 44 | |
| 45 | # Enable color metadata for every UM platform |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 46 | ifneq ($(filter $(UM_PLATFORMS),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 47 | TARGET_USES_COLOR_METADATA := true |
| 48 | endif |
| 49 | |
| 50 | # Enable DRM PP driver on UM platforms that support it |
LuK1337 | b82776e | 2020-06-25 15:52:52 +0200 | [diff] [blame] | 51 | ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 52 | TARGET_USES_DRM_PP := true |
| 53 | endif |
| 54 | |
Han Wang | 2838e8a | 2019-09-28 11:23:16 +0200 | [diff] [blame] | 55 | # Mark GRALLOC_USAGE_HW_2D, GRALLOC_USAGE_EXTERNAL_DISP and GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bits |
Bruno Martins | 9717ee7 | 2018-12-28 21:34:03 +0000 | [diff] [blame] | 56 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0 |
Han Wang | 2838e8a | 2019-09-28 11:23:16 +0200 | [diff] [blame] | 57 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 10) |
| 58 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 13) |
Bruno Martins | 9717ee7 | 2018-12-28 21:34:03 +0000 | [diff] [blame] | 59 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 21) |
| 60 | |
Han Wang | 2838e8a | 2019-09-28 11:23:16 +0200 | [diff] [blame] | 61 | # Mark GRALLOC_USAGE_PRIVATE_HEIF_VIDEO as valid gralloc bits on UM platforms that support it |
LuK1337 | b82776e | 2020-06-25 15:52:52 +0200 | [diff] [blame] | 62 | ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Bruno Martins | 9717ee7 | 2018-12-28 21:34:03 +0000 | [diff] [blame] | 63 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 27) |
| 64 | endif |
| 65 | |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 66 | # List of targets that use master side content protection |
LuK1337 | b82776e | 2020-06-25 15:52:52 +0200 | [diff] [blame] | 67 | 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] | 68 | |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 69 | ifneq ($(filter $(B_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 70 | MSM_VIDC_TARGET_LIST := $(B_FAMILY) |
| 71 | QCOM_HARDWARE_VARIANT := msm8974 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 72 | else ifneq ($(filter $(B64_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 73 | MSM_VIDC_TARGET_LIST := $(B64_FAMILY) |
| 74 | QCOM_HARDWARE_VARIANT := msm8994 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 75 | else ifneq ($(filter $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 76 | MSM_VIDC_TARGET_LIST := $(BR_FAMILY) |
| 77 | QCOM_HARDWARE_VARIANT := msm8916 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 78 | else ifneq ($(filter $(UM_3_18_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 79 | MSM_VIDC_TARGET_LIST := $(UM_3_18_FAMILY) |
| 80 | QCOM_HARDWARE_VARIANT := msm8996 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 81 | else ifneq ($(filter $(UM_4_4_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 82 | MSM_VIDC_TARGET_LIST := $(UM_4_4_FAMILY) |
| 83 | QCOM_HARDWARE_VARIANT := msm8998 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 84 | else ifneq ($(filter $(UM_4_9_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 85 | MSM_VIDC_TARGET_LIST := $(UM_4_9_FAMILY) |
| 86 | QCOM_HARDWARE_VARIANT := sdm845 |
Rashed Abdel-Tawab | 05aded8 | 2019-05-17 12:03:57 -0700 | [diff] [blame] | 87 | else ifneq ($(filter $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
| 88 | MSM_VIDC_TARGET_LIST := $(UM_4_14_FAMILY) |
| 89 | QCOM_HARDWARE_VARIANT := sm8150 |
LuK1337 | b82776e | 2020-06-25 15:52:52 +0200 | [diff] [blame] | 90 | else ifneq ($(filter $(UM_4_19_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
| 91 | MSM_VIDC_TARGET_LIST := $(UM_4_19_FAMILY) |
| 92 | QCOM_HARDWARE_VARIANT := sm8250 |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 93 | else |
| 94 | MSM_VIDC_TARGET_LIST := $(TARGET_BOARD_PLATFORM) |
| 95 | QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM) |
| 96 | endif |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 97 | |
Andrew Hexen | 8d08a5f | 2020-05-11 16:13:13 -0700 | [diff] [blame] | 98 | # Allow a device to opt-out hardset of PRODUCT_SOONG_NAMESPACES |
| 99 | QCOM_SOONG_NAMESPACE ?= hardware/qcom-caf/$(QCOM_HARDWARE_VARIANT) |
| 100 | PRODUCT_SOONG_NAMESPACES += $(QCOM_SOONG_NAMESPACE) |
LuK1337 | a1588f4 | 2020-10-30 13:32:49 +0100 | [diff] [blame] | 101 | |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 102 | # Add display-commonsys-intf to PRODUCT_SOONG_NAMESPACES for QSSI supported platforms |
| 103 | ifneq ($(filter $(QSSI_SUPPORTED_PLATFORMS),$(TARGET_BOARD_PLATFORM)),) |
Arian | 84c8b55 | 2021-12-03 18:35:22 +0100 | [diff] [blame] | 104 | PRODUCT_SOONG_NAMESPACES += \ |
| 105 | vendor/qcom/opensource/commonsys-intf/display \ |
| 106 | vendor/qcom/opensource/display |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 107 | endif |
| 108 | |
LuK1337 | a1588f4 | 2020-10-30 13:32:49 +0100 | [diff] [blame] | 109 | # Add data-ipa-cfg-mgr to PRODUCT_SOONG_NAMESPACES if needed |
| 110 | ifneq ($(USE_DEVICE_SPECIFIC_DATA_IPA_CFG_MGR),true) |
| 111 | PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/data-ipa-cfg-mgr |
| 112 | endif |
Pig | 033b440 | 2020-09-19 08:44:33 +0800 | [diff] [blame] | 113 | |
Michael Bestas | 91cbf5f | 2020-12-30 21:58:08 +0200 | [diff] [blame] | 114 | # Add dataservices to PRODUCT_SOONG_NAMESPACES if needed |
| 115 | ifneq ($(USE_DEVICE_SPECIFIC_DATASERVICES),true) |
| 116 | PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/dataservices |
| 117 | endif |
| 118 | |
Pig | 033b440 | 2020-09-19 08:44:33 +0800 | [diff] [blame] | 119 | ifeq ($(TARGET_USE_QTI_BT_STACK),true) |
| 120 | PRODUCT_SOONG_NAMESPACES += \ |
| 121 | vendor/qcom/opensource/commonsys/packages/apps/Bluetooth \ |
| 122 | vendor/qcom/opensource/commonsys/system/bt/conf |
| 123 | endif #TARGET_USE_QTI_BT_STACK |