blob: 19c1da9f587a96f42be08b86a89ef2c1a8d3062f [file] [log] [blame]
Vivekbalachandar Mb6e5dbf2020-02-17 12:15:26 +05301# Copyright 2020 Fairphone B.V.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16#Platform names
17TARGET_BOARD_PLATFORM := msm8974
18
19B_FAMILY := msm8226 msm8610 msm8974
20BOARD_USES_ADRENO := true
21
22# UM platforms no longer need this set on O+
23ifneq ($(filter $(B_FAMILY),$(TARGET_BOARD_PLATFORM)),)
24 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
30# Enable media extensions
31TARGET_USES_MEDIA_EXTENSIONS := true
32
33# Allow building audio encoders
34TARGET_USES_QCOM_MM_AUDIO := true
35
36# Mark GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bits
37TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0
38TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 21)
39
40ifneq ($(filter $(B_FAMILY),$(TARGET_BOARD_PLATFORM)),)
41 MSM_VIDC_TARGET_LIST := $(B_FAMILY)
42 QCOM_HARDWARE_VARIANT := msm8974
43else
44 MSM_VIDC_TARGET_LIST := $(TARGET_BOARD_PLATFORM)
45QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM)
46endif
47
48PRODUCT_SOONG_NAMESPACES += \
49 hardware/qcom/audio \
50 hardware/qcom/display\
51 hardware/qcom/media
52
53# QCOM HW crypto
54ifeq ($(TARGET_HW_DISK_ENCRYPTION),true)
55 TARGET_CRYPTFS_HW_PATH ?= vendor/qcom/opensource/cryptfs_hw
56endif