84948089b6
All CAF forked HALs now reside in hardware/qcom-caf/ Change-Id: I9f84cebf021418c0b402bc3186f37643e63afb24
101 lines
3.6 KiB
Makefile
101 lines
3.6 KiB
Makefile
# Platform names
|
|
MSMNILE := msmnile #SM8150
|
|
MSMSTEPPE := sm6150
|
|
TRINKET := trinket #SM6125
|
|
|
|
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
|
|
UM_4_9_FAMILY := sdm845 sdm710
|
|
UM_4_14_FAMILY := $(MSMNILE) $(MSMSTEPPE) $(TRINKET)
|
|
UM_PLATFORMS := $(UM_3_18_FAMILY) $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY)
|
|
|
|
BOARD_USES_ADRENO := true
|
|
|
|
# UM platforms no longer need this set on O+
|
|
ifneq ($(filter $(B_FAMILY) $(B64_FAMILY) $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
|
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
|
|
ifneq ($(filter $(UM_PLATFORMS),$(TARGET_BOARD_PLATFORM)),)
|
|
TARGET_USES_COLOR_METADATA := true
|
|
endif
|
|
|
|
# Enable DRM PP driver on UM platforms that support it
|
|
ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
|
TARGET_USES_DRM_PP := true
|
|
endif
|
|
|
|
# Mark GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bits
|
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0
|
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 21)
|
|
|
|
# Mark GRALLOC_USAGE_PRIVATE_10BIT_TP as valid gralloc bits on UM platforms that support it
|
|
ifneq ($(filter $(UM_4_9_FAMILY) $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
|
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 27)
|
|
endif
|
|
|
|
# List of targets that use master side content protection
|
|
MASTER_SIDE_CP_TARGET_LIST := msm8996 $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY)
|
|
|
|
ifneq ($(filter $(B_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
|
MSM_VIDC_TARGET_LIST := $(B_FAMILY)
|
|
QCOM_HARDWARE_VARIANT := msm8974
|
|
else ifneq ($(filter $(B64_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
|
MSM_VIDC_TARGET_LIST := $(B64_FAMILY)
|
|
QCOM_HARDWARE_VARIANT := msm8994
|
|
else ifneq ($(filter $(BR_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
|
MSM_VIDC_TARGET_LIST := $(BR_FAMILY)
|
|
QCOM_HARDWARE_VARIANT := msm8916
|
|
else ifneq ($(filter $(UM_3_18_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
|
MSM_VIDC_TARGET_LIST := $(UM_3_18_FAMILY)
|
|
QCOM_HARDWARE_VARIANT := msm8996
|
|
TARGET_USES_QCOM_UM_FAMILY := true
|
|
TARGET_USES_QCOM_UM_3_18_FAMILY := true
|
|
else ifneq ($(filter $(UM_4_4_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
|
MSM_VIDC_TARGET_LIST := $(UM_4_4_FAMILY)
|
|
QCOM_HARDWARE_VARIANT := msm8998
|
|
TARGET_USES_QCOM_UM_FAMILY := true
|
|
TARGET_USES_QCOM_UM_4_4_FAMILY := true
|
|
else ifneq ($(filter $(UM_4_9_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
|
MSM_VIDC_TARGET_LIST := $(UM_4_9_FAMILY)
|
|
QCOM_HARDWARE_VARIANT := sdm845
|
|
TARGET_USES_QCOM_UM_FAMILY := true
|
|
TARGET_USES_QCOM_UM_4_9_FAMILY := true
|
|
else ifneq ($(filter $(UM_4_14_FAMILY),$(TARGET_BOARD_PLATFORM)),)
|
|
MSM_VIDC_TARGET_LIST := $(UM_4_14_FAMILY)
|
|
QCOM_HARDWARE_VARIANT := sm8150
|
|
TARGET_USES_QCOM_UM_FAMILY := true
|
|
TARGET_USES_QCOM_UM_4_14_FAMILY := true
|
|
else
|
|
MSM_VIDC_TARGET_LIST := $(TARGET_BOARD_PLATFORM)
|
|
QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM)
|
|
endif
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
hardware/qcom-caf/$(QCOM_HARDWARE_VARIANT)
|
|
|
|
# QCOM HW crypto
|
|
ifeq ($(TARGET_HW_DISK_ENCRYPTION),true)
|
|
TARGET_CRYPTFS_HW_PATH ?= vendor/qcom/opensource/cryptfs_hw
|
|
endif
|