blob: e7ea0c076838d4d3cbc0beca125aaac27bcdbd88 [file] [log] [blame]
Rashed Abdel-Tawab05aded82019-05-17 12:03:57 -07001# Platform names
LuK1337b82776e2020-06-25 15:52:52 +02002KONA := kona #SM8250
3LITO := lito #SM7250
Rashed Abdel-Tawab05aded82019-05-17 12:03:57 -07004MSMNILE := msmnile #SM8150
5MSMSTEPPE := sm6150
6TRINKET := trinket #SM6125
TheHitMan7eb18aa62020-05-08 14:33:44 +05307ATOLL := atoll #SM6250
Rashed Abdel-Tawab05aded82019-05-17 12:03:57 -07008
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -07009B_FAMILY := msm8226 msm8610 msm8974
10B64_FAMILY := msm8992 msm8994
11BR_FAMILY := msm8909 msm8916
12UM_3_18_FAMILY := msm8937 msm8953 msm8996
13UM_4_4_FAMILY := msm8998 sdm660
Isaac Chen60912cf2018-10-03 15:29:15 +053014UM_4_9_FAMILY := sdm845 sdm710
TheHitMan7eb18aa62020-05-08 14:33:44 +053015UM_4_14_FAMILY := $(MSMNILE) $(MSMSTEPPE) $(TRINKET) $(ATOLL)
LuK1337b82776e2020-06-25 15:52:52 +020016UM_4_19_FAMILY := $(KONA) $(LITO)
17UM_PLATFORMS := $(UM_3_18_FAMILY) $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY)
Alessandro Astone3fc779e2021-01-05 18:04:14 +010018QSSI_SUPPORTED_PLATFORMS := $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070019
20BOARD_USES_ADRENO := true
21
22# UM platforms no longer need this set on O+
Ethan Chen66ce59c2019-06-22 13:30:38 -070023ifneq ($(filter $(B_FAMILY) $(B64_FAMILY) $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070024 TARGET_USES_QCOM_BSP := true
25endif
26
27# Tell HALs that we're compiling an AOSP build with an in-line kernel
28TARGET_COMPILE_WITH_MSM_KERNEL := true
29
30ifneq ($(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
36endif
37
38# Enable media extensions
39TARGET_USES_MEDIA_EXTENSIONS := true
40
41# Allow building audio encoders
42TARGET_USES_QCOM_MM_AUDIO := true
43
44# Enable color metadata for every UM platform
Ethan Chen66ce59c2019-06-22 13:30:38 -070045ifneq ($(filter $(UM_PLATFORMS),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070046 TARGET_USES_COLOR_METADATA := true
47endif
48
49# Enable DRM PP driver on UM platforms that support it
LuK1337b82776e2020-06-25 15:52:52 +020050ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070051 TARGET_USES_DRM_PP := true
52endif
53
Han Wang2838e8a2019-09-28 11:23:16 +020054# Mark GRALLOC_USAGE_HW_2D, GRALLOC_USAGE_EXTERNAL_DISP and GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bits
Bruno Martins9717ee72018-12-28 21:34:03 +000055TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0
Han Wang2838e8a2019-09-28 11:23:16 +020056TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 10)
57TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 13)
Bruno Martins9717ee72018-12-28 21:34:03 +000058TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 21)
59
Han Wang2838e8a2019-09-28 11:23:16 +020060# Mark GRALLOC_USAGE_PRIVATE_HEIF_VIDEO as valid gralloc bits on UM platforms that support it
LuK1337b82776e2020-06-25 15:52:52 +020061ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Bruno Martins9717ee72018-12-28 21:34:03 +000062 TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 27)
63endif
64
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070065# List of targets that use master side content protection
LuK1337b82776e2020-06-25 15:52:52 +020066MASTER_SIDE_CP_TARGET_LIST := msm8996 $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070067
Ethan Chen66ce59c2019-06-22 13:30:38 -070068ifneq ($(filter $(B_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070069 MSM_VIDC_TARGET_LIST := $(B_FAMILY)
70 QCOM_HARDWARE_VARIANT := msm8974
Ethan Chen66ce59c2019-06-22 13:30:38 -070071else ifneq ($(filter $(B64_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070072 MSM_VIDC_TARGET_LIST := $(B64_FAMILY)
73 QCOM_HARDWARE_VARIANT := msm8994
Ethan Chen66ce59c2019-06-22 13:30:38 -070074else ifneq ($(filter $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070075 MSM_VIDC_TARGET_LIST := $(BR_FAMILY)
76 QCOM_HARDWARE_VARIANT := msm8916
Ethan Chen66ce59c2019-06-22 13:30:38 -070077else ifneq ($(filter $(UM_3_18_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070078 MSM_VIDC_TARGET_LIST := $(UM_3_18_FAMILY)
79 QCOM_HARDWARE_VARIANT := msm8996
Ethan Chen66ce59c2019-06-22 13:30:38 -070080else ifneq ($(filter $(UM_4_4_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070081 MSM_VIDC_TARGET_LIST := $(UM_4_4_FAMILY)
82 QCOM_HARDWARE_VARIANT := msm8998
Ethan Chen66ce59c2019-06-22 13:30:38 -070083else ifneq ($(filter $(UM_4_9_FAMILY),$(TARGET_BOARD_PLATFORM)),)
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070084 MSM_VIDC_TARGET_LIST := $(UM_4_9_FAMILY)
85 QCOM_HARDWARE_VARIANT := sdm845
Rashed Abdel-Tawab05aded82019-05-17 12:03:57 -070086else ifneq ($(filter $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),)
87 MSM_VIDC_TARGET_LIST := $(UM_4_14_FAMILY)
88 QCOM_HARDWARE_VARIANT := sm8150
LuK1337b82776e2020-06-25 15:52:52 +020089else 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-Tawabb8ac1422018-08-25 11:10:25 -070092else
93 MSM_VIDC_TARGET_LIST := $(TARGET_BOARD_PLATFORM)
94 QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM)
95endif
Rashed Abdel-Tawabb8ac1422018-08-25 11:10:25 -070096
Andrew Hexen8d08a5f2020-05-11 16:13:13 -070097# Allow a device to opt-out hardset of PRODUCT_SOONG_NAMESPACES
98QCOM_SOONG_NAMESPACE ?= hardware/qcom-caf/$(QCOM_HARDWARE_VARIANT)
99PRODUCT_SOONG_NAMESPACES += $(QCOM_SOONG_NAMESPACE)
LuK1337a1588f42020-10-30 13:32:49 +0100100
Alessandro Astone3fc779e2021-01-05 18:04:14 +0100101# Add display-commonsys-intf to PRODUCT_SOONG_NAMESPACES for QSSI supported platforms
102ifneq ($(filter $(QSSI_SUPPORTED_PLATFORMS),$(TARGET_BOARD_PLATFORM)),)
103 PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys-intf/display
104endif
105
LuK1337a1588f42020-10-30 13:32:49 +0100106# Add data-ipa-cfg-mgr to PRODUCT_SOONG_NAMESPACES if needed
107ifneq ($(USE_DEVICE_SPECIFIC_DATA_IPA_CFG_MGR),true)
108 PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/data-ipa-cfg-mgr
109endif
Pig033b4402020-09-19 08:44:33 +0800110
Michael Bestas91cbf5f2020-12-30 21:58:08 +0200111# Add dataservices to PRODUCT_SOONG_NAMESPACES if needed
112ifneq ($(USE_DEVICE_SPECIFIC_DATASERVICES),true)
113 PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/dataservices
114endif
115
Pig033b4402020-09-19 08:44:33 +0800116ifeq ($(TARGET_USE_QTI_BT_STACK),true)
117PRODUCT_SOONG_NAMESPACES += \
118 vendor/qcom/opensource/commonsys/packages/apps/Bluetooth \
119 vendor/qcom/opensource/commonsys/system/bt/conf
120endif #TARGET_USE_QTI_BT_STACK