blob: 54f8adc6c604beb9e6d62766260fd1dbf51ea315 [file] [log] [blame]
Rashed Abdel-Tawab05aded82019-05-17 12:03:57 -07001# Platform names
2MSMNILE := msmnile #SM8150
3MSMSTEPPE := sm6150
4TRINKET := trinket #SM6125
5
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -07006B_FAMILY := msm8226 msm8610 msm8974
7B64_FAMILY := msm8992 msm8994
8BR_FAMILY := msm8909 msm8916
9UM_3_18_FAMILY := msm8937 msm8953 msm8996
10UM_4_4_FAMILY := msm8998 sdm660
Isaac Chen60912cf2018-10-03 15:29:15 +053011UM_4_9_FAMILY := sdm845 sdm710
Rashed Abdel-Tawab05aded82019-05-17 12:03:57 -070012UM_4_14_FAMILY := $(MSMNILE) $(MSMSTEPPE) $(TRINKET)
13UM_PLATFORMS := $(UM_3_18_FAMILY) $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070014
15BOARD_USES_ADRENO := true
16
17# UM platforms no longer need this set on O+
Ethan Chen66ce59c2019-06-22 13:30:38 -070018ifneq ($(filter $(B_FAMILY) $(B64_FAMILY) $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070019 TARGET_USES_QCOM_BSP := true
20endif
21
22# Tell HALs that we're compiling an AOSP build with an in-line kernel
23TARGET_COMPILE_WITH_MSM_KERNEL := true
24
25ifneq ($(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
31endif
32
33# Enable media extensions
34TARGET_USES_MEDIA_EXTENSIONS := true
35
36# Allow building audio encoders
37TARGET_USES_QCOM_MM_AUDIO := true
38
39# Enable color metadata for every UM platform
Ethan Chen66ce59c2019-06-22 13:30:38 -070040ifneq ($(filter $(UM_PLATFORMS),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070041 TARGET_USES_COLOR_METADATA := true
42endif
43
44# Enable DRM PP driver on UM platforms that support it
Bruno Martinsd47d0622019-09-19 15:35:25 +020045ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070046 TARGET_USES_DRM_PP := true
47endif
48
Bruno Martins9717ee72018-12-28 21:34:03 +000049# Mark GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bits
50TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0
51TARGET_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 Martinsd47d0622019-09-19 15:35:25 +020054ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Bruno Martins9717ee72018-12-28 21:34:03 +000055 TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 27)
56endif
57
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070058# List of targets that use master side content protection
Rashed Abdel-Tawab05aded82019-05-17 12:03:57 -070059MASTER_SIDE_CP_TARGET_LIST := msm8996 $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070060
Ethan Chen66ce59c2019-06-22 13:30:38 -070061ifneq ($(filter $(B_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070062 MSM_VIDC_TARGET_LIST := $(B_FAMILY)
63 QCOM_HARDWARE_VARIANT := msm8974
Ethan Chen66ce59c2019-06-22 13:30:38 -070064else ifneq ($(filter $(B64_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070065 MSM_VIDC_TARGET_LIST := $(B64_FAMILY)
66 QCOM_HARDWARE_VARIANT := msm8994
Ethan Chen66ce59c2019-06-22 13:30:38 -070067else ifneq ($(filter $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070068 MSM_VIDC_TARGET_LIST := $(BR_FAMILY)
69 QCOM_HARDWARE_VARIANT := msm8916
Ethan Chen66ce59c2019-06-22 13:30:38 -070070else ifneq ($(filter $(UM_3_18_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070071 MSM_VIDC_TARGET_LIST := $(UM_3_18_FAMILY)
72 QCOM_HARDWARE_VARIANT := msm8996
Ethan Chen66ce59c2019-06-22 13:30:38 -070073else ifneq ($(filter $(UM_4_4_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070074 MSM_VIDC_TARGET_LIST := $(UM_4_4_FAMILY)
75 QCOM_HARDWARE_VARIANT := msm8998
Ethan Chen66ce59c2019-06-22 13:30:38 -070076else ifneq ($(filter $(UM_4_9_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070077 MSM_VIDC_TARGET_LIST := $(UM_4_9_FAMILY)
78 QCOM_HARDWARE_VARIANT := sdm845
Rashed Abdel-Tawab05aded82019-05-17 12:03:57 -070079else ifneq ($(filter $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),)
80 MSM_VIDC_TARGET_LIST := $(UM_4_14_FAMILY)
81 QCOM_HARDWARE_VARIANT := sm8150
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070082else
83 MSM_VIDC_TARGET_LIST := $(TARGET_BOARD_PLATFORM)
84 QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM)
85endif
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070086
Rashed Abdel-Tawaba94cf0c2018-08-25 11:17:23 -070087PRODUCT_SOONG_NAMESPACES += \
Rashed Abdel-Tawab84948082019-09-07 23:49:07 -070088 hardware/qcom-caf/$(QCOM_HARDWARE_VARIANT)