2019-05-17 21:03:57 +02:00
|
|
|
# Platform names
|
2020-06-25 15:52:52 +02:00
|
|
|
KONA := kona #SM8250
|
|
|
|
LITO := lito #SM7250
|
2021-01-27 00:03:34 +01:00
|
|
|
BENGAL := bengal #SM6115
|
2019-05-17 21:03:57 +02:00
|
|
|
MSMNILE := msmnile #SM8150
|
|
|
|
MSMSTEPPE := sm6150
|
|
|
|
TRINKET := trinket #SM6125
|
2020-05-08 11:03:44 +02:00
|
|
|
ATOLL := atoll #SM6250
|
2019-05-17 21:03:57 +02:00
|
|
|
|
2018-08-25 20:10:25 +02:00
|
|
|
B_FAMILY := msm8226 msm8610 msm8974
|
|
|
|
B64_FAMILY := msm8992 msm8994
|
|
|
|
BR_FAMILY := msm8909 msm8916
|
|
|
|
UM_3_18_FAMILY := msm8937 msm8953 msm8996
|
|
|
|
UM_4_4_FAMILY := msm8998 sdm660
|
2018-10-03 11:59:15 +02:00
|
|
|
UM_4_9_FAMILY := sdm845 sdm710
|
2020-05-08 11:03:44 +02:00
|
|
|
UM_4_14_FAMILY := $(MSMNILE) $(MSMSTEPPE) $(TRINKET) $(ATOLL)
|
2021-01-27 00:03:34 +01:00
|
|
|
UM_4_19_FAMILY := $(KONA) $(LITO) $(BENGAL)
|
2020-06-25 15:52:52 +02:00
|
|
|
UM_PLATFORMS := $(UM_3_18_FAMILY) $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY)
|
2021-01-05 18:04:14 +01:00
|
|
|
QSSI_SUPPORTED_PLATFORMS := $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY)
|
2018-08-25 20:10:25 +02:00
|
|
|
|
|
|
|
BOARD_USES_ADRENO := true
|
|
|
|
|
|
|
|
# UM platforms no longer need this set on O+
|
2019-06-22 22:30:38 +02:00
|
|
|
ifneq ($(filter $(B_FAMILY) $(B64_FAMILY) $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
2018-08-25 20:10:25 +02:00
|
|
|
TARGET_USES_QCOM_BSP := true
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Tell HALs that we're compiling an AOSP build with an in-line kernel
|
|
|
|
TARGET_COMPILE_WITH_MSM_KERNEL := true
|
|
|
|
|
|
|
|
ifneq ($(filter msm7x27a msm7x30 msm8660 msm8960,$(TARGET_BOARD_PLATFORM)),)
|
|
|
|
TARGET_USES_QCOM_BSP_LEGACY := true
|
|
|
|
# Enable legacy audio functions
|
|
|
|
ifeq ($(BOARD_USES_LEGACY_ALSA_AUDIO),true)
|
|
|
|
USE_CUSTOM_AUDIO_POLICY := 1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Enable media extensions
|
|
|
|
TARGET_USES_MEDIA_EXTENSIONS := true
|
|
|
|
|
|
|
|
# Allow building audio encoders
|
|
|
|
TARGET_USES_QCOM_MM_AUDIO := true
|
|
|
|
|
|
|
|
# Enable color metadata for every UM platform
|
2019-06-22 22:30:38 +02:00
|
|
|
ifneq ($(filter $(UM_PLATFORMS),$(TARGET_BOARD_PLATFORM)),)
|
2018-08-25 20:10:25 +02:00
|
|
|
TARGET_USES_COLOR_METADATA := true
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Enable DRM PP driver on UM platforms that support it
|
2020-06-25 15:52:52 +02:00
|
|
|
ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
2018-08-25 20:10:25 +02:00
|
|
|
TARGET_USES_DRM_PP := true
|
|
|
|
endif
|
|
|
|
|
2019-09-28 11:23:16 +02:00
|
|
|
# Mark GRALLOC_USAGE_HW_2D, GRALLOC_USAGE_EXTERNAL_DISP and GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bits
|
2018-12-28 22:34:03 +01:00
|
|
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0
|
2019-09-28 11:23:16 +02:00
|
|
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 10)
|
|
|
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 13)
|
2018-12-28 22:34:03 +01:00
|
|
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 21)
|
|
|
|
|
2019-09-28 11:23:16 +02:00
|
|
|
# Mark GRALLOC_USAGE_PRIVATE_HEIF_VIDEO as valid gralloc bits on UM platforms that support it
|
2020-06-25 15:52:52 +02:00
|
|
|
ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
2018-12-28 22:34:03 +01:00
|
|
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 27)
|
|
|
|
endif
|
|
|
|
|
2018-08-25 20:10:25 +02:00
|
|
|
# List of targets that use master side content protection
|
2020-06-25 15:52:52 +02:00
|
|
|
MASTER_SIDE_CP_TARGET_LIST := msm8996 $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY)
|
2018-08-25 20:10:25 +02:00
|
|
|
|
2019-06-22 22:30:38 +02:00
|
|
|
ifneq ($(filter $(B_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
2018-08-25 20:10:25 +02:00
|
|
|
MSM_VIDC_TARGET_LIST := $(B_FAMILY)
|
|
|
|
QCOM_HARDWARE_VARIANT := msm8974
|
2019-06-22 22:30:38 +02:00
|
|
|
else ifneq ($(filter $(B64_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
2018-08-25 20:10:25 +02:00
|
|
|
MSM_VIDC_TARGET_LIST := $(B64_FAMILY)
|
|
|
|
QCOM_HARDWARE_VARIANT := msm8994
|
2019-06-22 22:30:38 +02:00
|
|
|
else ifneq ($(filter $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
2018-08-25 20:10:25 +02:00
|
|
|
MSM_VIDC_TARGET_LIST := $(BR_FAMILY)
|
|
|
|
QCOM_HARDWARE_VARIANT := msm8916
|
2019-06-22 22:30:38 +02:00
|
|
|
else ifneq ($(filter $(UM_3_18_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
2018-08-25 20:10:25 +02:00
|
|
|
MSM_VIDC_TARGET_LIST := $(UM_3_18_FAMILY)
|
|
|
|
QCOM_HARDWARE_VARIANT := msm8996
|
2019-06-22 22:30:38 +02:00
|
|
|
else ifneq ($(filter $(UM_4_4_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
2018-08-25 20:10:25 +02:00
|
|
|
MSM_VIDC_TARGET_LIST := $(UM_4_4_FAMILY)
|
|
|
|
QCOM_HARDWARE_VARIANT := msm8998
|
2019-06-22 22:30:38 +02:00
|
|
|
else ifneq ($(filter $(UM_4_9_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
2018-08-25 20:10:25 +02:00
|
|
|
MSM_VIDC_TARGET_LIST := $(UM_4_9_FAMILY)
|
|
|
|
QCOM_HARDWARE_VARIANT := sdm845
|
2019-05-17 21:03:57 +02:00
|
|
|
else ifneq ($(filter $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
|
|
|
MSM_VIDC_TARGET_LIST := $(UM_4_14_FAMILY)
|
|
|
|
QCOM_HARDWARE_VARIANT := sm8150
|
2020-06-25 15:52:52 +02:00
|
|
|
else ifneq ($(filter $(UM_4_19_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
|
|
|
MSM_VIDC_TARGET_LIST := $(UM_4_19_FAMILY)
|
|
|
|
QCOM_HARDWARE_VARIANT := sm8250
|
2018-08-25 20:10:25 +02:00
|
|
|
else
|
|
|
|
MSM_VIDC_TARGET_LIST := $(TARGET_BOARD_PLATFORM)
|
|
|
|
QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM)
|
|
|
|
endif
|
|
|
|
|
2020-05-12 01:13:13 +02:00
|
|
|
# Allow a device to opt-out hardset of PRODUCT_SOONG_NAMESPACES
|
|
|
|
QCOM_SOONG_NAMESPACE ?= hardware/qcom-caf/$(QCOM_HARDWARE_VARIANT)
|
|
|
|
PRODUCT_SOONG_NAMESPACES += $(QCOM_SOONG_NAMESPACE)
|
2020-10-30 13:32:49 +01:00
|
|
|
|
2021-01-05 18:04:14 +01:00
|
|
|
# Add display-commonsys-intf to PRODUCT_SOONG_NAMESPACES for QSSI supported platforms
|
|
|
|
ifneq ($(filter $(QSSI_SUPPORTED_PLATFORMS),$(TARGET_BOARD_PLATFORM)),)
|
|
|
|
PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys-intf/display
|
|
|
|
endif
|
|
|
|
|
2020-10-30 13:32:49 +01:00
|
|
|
# Add data-ipa-cfg-mgr to PRODUCT_SOONG_NAMESPACES if needed
|
|
|
|
ifneq ($(USE_DEVICE_SPECIFIC_DATA_IPA_CFG_MGR),true)
|
|
|
|
PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/data-ipa-cfg-mgr
|
|
|
|
endif
|
2020-09-19 02:44:33 +02:00
|
|
|
|
2020-12-30 20:58:08 +01:00
|
|
|
# Add dataservices to PRODUCT_SOONG_NAMESPACES if needed
|
|
|
|
ifneq ($(USE_DEVICE_SPECIFIC_DATASERVICES),true)
|
|
|
|
PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/dataservices
|
|
|
|
endif
|
|
|
|
|
2020-09-19 02:44:33 +02:00
|
|
|
ifeq ($(TARGET_USE_QTI_BT_STACK),true)
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
|
|
vendor/qcom/opensource/commonsys/packages/apps/Bluetooth \
|
|
|
|
vendor/qcom/opensource/commonsys/system/bt/conf
|
|
|
|
endif #TARGET_USE_QTI_BT_STACK
|