Rashed Abdel-Tawab | 05aded8 | 2019-05-17 12:03:57 -0700 | [diff] [blame] | 1 | # Platform names |
| 2 | MSMNILE := msmnile #SM8150 |
| 3 | MSMSTEPPE := sm6150 |
| 4 | TRINKET := trinket #SM6125 |
| 5 | |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 6 | B_FAMILY := msm8226 msm8610 msm8974 |
| 7 | B64_FAMILY := msm8992 msm8994 |
| 8 | BR_FAMILY := msm8909 msm8916 |
| 9 | UM_3_18_FAMILY := msm8937 msm8953 msm8996 |
| 10 | UM_4_4_FAMILY := msm8998 sdm660 |
Isaac Chen | 60912cf | 2018-10-03 15:29:15 +0530 | [diff] [blame] | 11 | UM_4_9_FAMILY := sdm845 sdm710 |
Rashed Abdel-Tawab | 05aded8 | 2019-05-17 12:03:57 -0700 | [diff] [blame] | 12 | UM_4_14_FAMILY := $(MSMNILE) $(MSMSTEPPE) $(TRINKET) |
| 13 | UM_PLATFORMS := $(UM_3_18_FAMILY) $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 14 | |
| 15 | BOARD_USES_ADRENO := true |
| 16 | |
| 17 | # UM platforms no longer need this set on O+ |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 18 | ifneq ($(filter $(B_FAMILY) $(B64_FAMILY) $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 19 | TARGET_USES_QCOM_BSP := true |
| 20 | endif |
| 21 | |
| 22 | # Tell HALs that we're compiling an AOSP build with an in-line kernel |
| 23 | TARGET_COMPILE_WITH_MSM_KERNEL := true |
| 24 | |
| 25 | ifneq ($(filter msm7x27a msm7x30 msm8660 msm8960,$(TARGET_BOARD_PLATFORM)),) |
| 26 | TARGET_USES_QCOM_BSP_LEGACY := true |
| 27 | # Enable legacy audio functions |
| 28 | ifeq ($(BOARD_USES_LEGACY_ALSA_AUDIO),true) |
| 29 | USE_CUSTOM_AUDIO_POLICY := 1 |
| 30 | endif |
| 31 | endif |
| 32 | |
| 33 | # Enable media extensions |
| 34 | TARGET_USES_MEDIA_EXTENSIONS := true |
| 35 | |
| 36 | # Allow building audio encoders |
| 37 | TARGET_USES_QCOM_MM_AUDIO := true |
| 38 | |
| 39 | # Enable color metadata for every UM platform |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 40 | ifneq ($(filter $(UM_PLATFORMS),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 41 | TARGET_USES_COLOR_METADATA := true |
| 42 | endif |
| 43 | |
| 44 | # Enable DRM PP driver on UM platforms that support it |
Bruno Martins | d47d062 | 2019-09-19 15:35:25 +0200 | [diff] [blame] | 45 | ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 46 | TARGET_USES_DRM_PP := true |
| 47 | endif |
| 48 | |
Bruno Martins | 9717ee7 | 2018-12-28 21:34:03 +0000 | [diff] [blame] | 49 | # Mark GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bits |
| 50 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0 |
| 51 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 21) |
| 52 | |
| 53 | # Mark GRALLOC_USAGE_PRIVATE_10BIT_TP as valid gralloc bits on UM platforms that support it |
Bruno Martins | d47d062 | 2019-09-19 15:35:25 +0200 | [diff] [blame] | 54 | ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Bruno Martins | 9717ee7 | 2018-12-28 21:34:03 +0000 | [diff] [blame] | 55 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 27) |
| 56 | endif |
| 57 | |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 58 | # List of targets that use master side content protection |
Rashed Abdel-Tawab | 05aded8 | 2019-05-17 12:03:57 -0700 | [diff] [blame] | 59 | MASTER_SIDE_CP_TARGET_LIST := msm8996 $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 60 | |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 61 | ifneq ($(filter $(B_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 62 | MSM_VIDC_TARGET_LIST := $(B_FAMILY) |
| 63 | QCOM_HARDWARE_VARIANT := msm8974 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 64 | else ifneq ($(filter $(B64_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 65 | MSM_VIDC_TARGET_LIST := $(B64_FAMILY) |
| 66 | QCOM_HARDWARE_VARIANT := msm8994 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 67 | else ifneq ($(filter $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 68 | MSM_VIDC_TARGET_LIST := $(BR_FAMILY) |
| 69 | QCOM_HARDWARE_VARIANT := msm8916 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 70 | else ifneq ($(filter $(UM_3_18_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 71 | MSM_VIDC_TARGET_LIST := $(UM_3_18_FAMILY) |
| 72 | QCOM_HARDWARE_VARIANT := msm8996 |
jhenrique09 | 97cb87c | 2019-07-16 15:58:42 -0300 | [diff] [blame] | 73 | TARGET_USES_QCOM_UM_FAMILY := true |
| 74 | TARGET_USES_QCOM_UM_3_18_FAMILY := true |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 75 | else ifneq ($(filter $(UM_4_4_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 76 | MSM_VIDC_TARGET_LIST := $(UM_4_4_FAMILY) |
| 77 | QCOM_HARDWARE_VARIANT := msm8998 |
jhenrique09 | 97cb87c | 2019-07-16 15:58:42 -0300 | [diff] [blame] | 78 | TARGET_USES_QCOM_UM_FAMILY := true |
| 79 | TARGET_USES_QCOM_UM_4_4_FAMILY := true |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 80 | else ifneq ($(filter $(UM_4_9_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 81 | MSM_VIDC_TARGET_LIST := $(UM_4_9_FAMILY) |
| 82 | QCOM_HARDWARE_VARIANT := sdm845 |
jhenrique09 | 97cb87c | 2019-07-16 15:58:42 -0300 | [diff] [blame] | 83 | TARGET_USES_QCOM_UM_FAMILY := true |
| 84 | TARGET_USES_QCOM_UM_4_9_FAMILY := true |
Rashed Abdel-Tawab | 05aded8 | 2019-05-17 12:03:57 -0700 | [diff] [blame] | 85 | else ifneq ($(filter $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
| 86 | MSM_VIDC_TARGET_LIST := $(UM_4_14_FAMILY) |
| 87 | QCOM_HARDWARE_VARIANT := sm8150 |
jhenrique09 | 97cb87c | 2019-07-16 15:58:42 -0300 | [diff] [blame] | 88 | TARGET_USES_QCOM_UM_FAMILY := true |
| 89 | TARGET_USES_QCOM_UM_4_14_FAMILY := true |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 90 | else |
| 91 | MSM_VIDC_TARGET_LIST := $(TARGET_BOARD_PLATFORM) |
| 92 | QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM) |
| 93 | endif |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 94 | |
Rashed Abdel-Tawab | a94cf0c | 2018-08-25 11:17:23 -0700 | [diff] [blame] | 95 | PRODUCT_SOONG_NAMESPACES += \ |
| 96 | hardware/qcom/audio-caf/$(QCOM_HARDWARE_VARIANT) \ |
| 97 | hardware/qcom/display-caf/$(QCOM_HARDWARE_VARIANT) \ |
| 98 | hardware/qcom/media-caf/$(QCOM_HARDWARE_VARIANT) |
| 99 | |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 100 | # QCOM HW crypto |
| 101 | ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) |
| 102 | TARGET_CRYPTFS_HW_PATH ?= vendor/qcom/opensource/cryptfs_hw |
| 103 | endif |