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