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