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) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 18 | |
| 19 | BOARD_USES_ADRENO := true |
| 20 | |
| 21 | # UM platforms no longer need this set on O+ |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 22 | ifneq ($(filter $(B_FAMILY) $(B64_FAMILY) $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 23 | TARGET_USES_QCOM_BSP := true |
| 24 | endif |
| 25 | |
| 26 | # Tell HALs that we're compiling an AOSP build with an in-line kernel |
| 27 | TARGET_COMPILE_WITH_MSM_KERNEL := true |
| 28 | |
| 29 | ifneq ($(filter msm7x27a msm7x30 msm8660 msm8960,$(TARGET_BOARD_PLATFORM)),) |
| 30 | TARGET_USES_QCOM_BSP_LEGACY := true |
| 31 | # Enable legacy audio functions |
| 32 | ifeq ($(BOARD_USES_LEGACY_ALSA_AUDIO),true) |
| 33 | USE_CUSTOM_AUDIO_POLICY := 1 |
| 34 | endif |
| 35 | endif |
| 36 | |
| 37 | # Enable media extensions |
| 38 | TARGET_USES_MEDIA_EXTENSIONS := true |
| 39 | |
| 40 | # Allow building audio encoders |
| 41 | TARGET_USES_QCOM_MM_AUDIO := true |
| 42 | |
| 43 | # Enable color metadata for every UM platform |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 44 | ifneq ($(filter $(UM_PLATFORMS),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 45 | TARGET_USES_COLOR_METADATA := true |
| 46 | endif |
| 47 | |
| 48 | # Enable DRM PP driver on UM platforms that support it |
LuK1337 | b82776e | 2020-06-25 15:52:52 +0200 | [diff] [blame] | 49 | 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] | 50 | TARGET_USES_DRM_PP := true |
| 51 | endif |
| 52 | |
Han Wang | 2838e8a | 2019-09-28 11:23:16 +0200 | [diff] [blame] | 53 | # 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] | 54 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0 |
Han Wang | 2838e8a | 2019-09-28 11:23:16 +0200 | [diff] [blame] | 55 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 10) |
| 56 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 13) |
Bruno Martins | 9717ee7 | 2018-12-28 21:34:03 +0000 | [diff] [blame] | 57 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 21) |
| 58 | |
Han Wang | 2838e8a | 2019-09-28 11:23:16 +0200 | [diff] [blame] | 59 | # 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] | 60 | 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] | 61 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 27) |
| 62 | endif |
| 63 | |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 64 | # List of targets that use master side content protection |
LuK1337 | b82776e | 2020-06-25 15:52:52 +0200 | [diff] [blame] | 65 | 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] | 66 | |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 67 | ifneq ($(filter $(B_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 68 | MSM_VIDC_TARGET_LIST := $(B_FAMILY) |
| 69 | QCOM_HARDWARE_VARIANT := msm8974 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 70 | else ifneq ($(filter $(B64_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 71 | MSM_VIDC_TARGET_LIST := $(B64_FAMILY) |
| 72 | QCOM_HARDWARE_VARIANT := msm8994 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 73 | else ifneq ($(filter $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 74 | MSM_VIDC_TARGET_LIST := $(BR_FAMILY) |
| 75 | QCOM_HARDWARE_VARIANT := msm8916 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 76 | else ifneq ($(filter $(UM_3_18_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 77 | MSM_VIDC_TARGET_LIST := $(UM_3_18_FAMILY) |
| 78 | QCOM_HARDWARE_VARIANT := msm8996 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 79 | else ifneq ($(filter $(UM_4_4_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 80 | MSM_VIDC_TARGET_LIST := $(UM_4_4_FAMILY) |
| 81 | QCOM_HARDWARE_VARIANT := msm8998 |
Ethan Chen | 66ce59c | 2019-06-22 13:30:38 -0700 | [diff] [blame] | 82 | else ifneq ($(filter $(UM_4_9_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 83 | MSM_VIDC_TARGET_LIST := $(UM_4_9_FAMILY) |
| 84 | QCOM_HARDWARE_VARIANT := sdm845 |
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 |
LuK1337 | b82776e | 2020-06-25 15:52:52 +0200 | [diff] [blame] | 88 | else ifneq ($(filter $(UM_4_19_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
| 89 | MSM_VIDC_TARGET_LIST := $(UM_4_19_FAMILY) |
| 90 | QCOM_HARDWARE_VARIANT := sm8250 |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 91 | else |
| 92 | MSM_VIDC_TARGET_LIST := $(TARGET_BOARD_PLATFORM) |
| 93 | QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM) |
| 94 | endif |
Rashed Abdel-Tawab | b8ac142 | 2018-08-25 11:10:25 -0700 | [diff] [blame] | 95 | |
Andrew Hexen | 8d08a5f | 2020-05-11 16:13:13 -0700 | [diff] [blame] | 96 | # Allow a device to opt-out hardset of PRODUCT_SOONG_NAMESPACES |
| 97 | QCOM_SOONG_NAMESPACE ?= hardware/qcom-caf/$(QCOM_HARDWARE_VARIANT) |
| 98 | PRODUCT_SOONG_NAMESPACES += $(QCOM_SOONG_NAMESPACE) |