Vivekbalachandar M | b6e5dbf | 2020-02-17 12:15:26 +0530 | [diff] [blame] | 1 | # 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 |
| 17 | TARGET_BOARD_PLATFORM := msm8974 |
| 18 | |
| 19 | B_FAMILY := msm8226 msm8610 msm8974 |
| 20 | BOARD_USES_ADRENO := true |
| 21 | |
| 22 | # UM platforms no longer need this set on O+ |
| 23 | ifneq ($(filter $(B_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
| 24 | TARGET_USES_QCOM_BSP := true |
| 25 | endif |
| 26 | |
| 27 | # Tell HALs that we're compiling an AOSP build with an in-line kernel |
| 28 | TARGET_COMPILE_WITH_MSM_KERNEL := true |
| 29 | |
| 30 | # Enable media extensions |
| 31 | TARGET_USES_MEDIA_EXTENSIONS := true |
| 32 | |
| 33 | # Allow building audio encoders |
| 34 | TARGET_USES_QCOM_MM_AUDIO := true |
| 35 | |
| 36 | # Mark GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bits |
| 37 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0 |
| 38 | TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 21) |
| 39 | |
| 40 | ifneq ($(filter $(B_FAMILY),$(TARGET_BOARD_PLATFORM)),) |
| 41 | MSM_VIDC_TARGET_LIST := $(B_FAMILY) |
| 42 | QCOM_HARDWARE_VARIANT := msm8974 |
| 43 | else |
| 44 | MSM_VIDC_TARGET_LIST := $(TARGET_BOARD_PLATFORM) |
| 45 | QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM) |
| 46 | endif |
| 47 | |
| 48 | PRODUCT_SOONG_NAMESPACES += \ |
| 49 | hardware/qcom/audio \ |
| 50 | hardware/qcom/display\ |
| 51 | hardware/qcom/media |
| 52 | |
| 53 | # QCOM HW crypto |
| 54 | ifeq ($(TARGET_HW_DISK_ENCRYPTION),true) |
| 55 | TARGET_CRYPTFS_HW_PATH ?= vendor/qcom/opensource/cryptfs_hw |
| 56 | endif |