179 lines
4.2 KiB
Makefile
179 lines
4.2 KiB
Makefile
# Copyright 2021 Paranoid Android
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
QCOM_COMMON_PATH := device/qcom/common
|
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM),)
|
|
$(error "TARGET_BOARD_PLATFORM is not defined yet, please define in your device makefile so it's accessible to QCOM common.")
|
|
endif
|
|
|
|
# List of QCOM targets.
|
|
MSMSTEPPE := sm6150
|
|
TRINKET := trinket
|
|
|
|
QCOM_BOARD_PLATFORMS += \
|
|
$(MSMSTEPPE) \
|
|
$(TRINKET) \
|
|
apq8084 \
|
|
apq8098_latv \
|
|
atoll \
|
|
bengal \
|
|
holi \
|
|
kona \
|
|
lahaina \
|
|
lito \
|
|
mpq8092 \
|
|
msm8226 \
|
|
msm8610 \
|
|
msm8909 \
|
|
msm8909_512 \
|
|
msm8916 \
|
|
msm8916_32 \
|
|
msm8916_32_512 \
|
|
msm8916_64 \
|
|
msm8937 \
|
|
msm8952 \
|
|
msm8953 \
|
|
msm8974 \
|
|
msm8992 \
|
|
msm8994 \
|
|
msm8996 \
|
|
msm8998 \
|
|
msmnile \
|
|
msmnile_au \
|
|
msm_bronze \
|
|
qcs605 \
|
|
sdm660 \
|
|
sdm710 \
|
|
sdm845
|
|
|
|
# List of targets that use video hardware.
|
|
MSM_VIDC_TARGET_LIST := \
|
|
$(MSMSTEPPE) \
|
|
$(TRINKET) \
|
|
apq8084 \
|
|
apq8098_latv \
|
|
atoll \
|
|
kona \
|
|
lito \
|
|
msm8226 \
|
|
msm8610 \
|
|
msm8909 \
|
|
msm8916 \
|
|
msm8937 \
|
|
msm8952 \
|
|
msm8953 \
|
|
msm8974 \
|
|
msm8992 \
|
|
msm8994 \
|
|
msm8996 \
|
|
msm8998 \
|
|
msmnile \
|
|
qcs605 \
|
|
sdm660 \
|
|
sdm710 \
|
|
sdm845
|
|
|
|
# List of targets that use master side content protection.
|
|
MASTER_SIDE_CP_TARGET_LIST := \
|
|
$(MSMSTEPPE) \
|
|
$(TRINKET) \
|
|
apq8098_latv \
|
|
atoll \
|
|
bengal \
|
|
kona \
|
|
lito \
|
|
msm8996 \
|
|
msm8998 \
|
|
msmnile \
|
|
qcs605 \
|
|
sdm660 \
|
|
sdm710 \
|
|
sdm845
|
|
|
|
# Include QCOM board utilities.
|
|
include $(QCOM_COMMON_PATH)/utils.mk
|
|
|
|
# Kernel Families
|
|
5_4_FAMILY := \
|
|
holi \
|
|
lahaina
|
|
|
|
4_19_FAMILY := \
|
|
bengal \
|
|
kona \
|
|
lito
|
|
|
|
4_14_FAMILY := \
|
|
$(MSMSTEPPE) \
|
|
$(TRINKET) \
|
|
atoll \
|
|
msmnile \
|
|
msmnile_au
|
|
|
|
4_9_FAMILY := \
|
|
msm8953 \
|
|
qcs605 \
|
|
sdm710 \
|
|
sdm845
|
|
|
|
4_4_FAMILY := \
|
|
msm8998 \
|
|
sdm660
|
|
|
|
3_18_FAMILY := \
|
|
msm8937 \
|
|
msm8996
|
|
|
|
ifeq ($(call is-board-platform-in-list,$(5_4_FAMILY)),true)
|
|
TARGET_KERNEL_VERSION ?= 5.4
|
|
else ifeq ($(call is-board-platform-in-list,$(4_19_FAMILY)),true)
|
|
TARGET_KERNEL_VERSION ?= 4.19
|
|
else ifeq ($(call is-board-platform-in-list,$(4_14_FAMILY)),true)
|
|
TARGET_KERNEL_VERSION ?= 4.14
|
|
else ifeq ($(call is-board-platform-in-list,$(4_9_FAMILY)),true)
|
|
TARGET_KERNEL_VERSION ?= 4.9
|
|
else ifeq ($(call is-board-platform-in-list,$(4_4_FAMILY)),true)
|
|
TARGET_KERNEL_VERSION ?= 4.4
|
|
else ifeq ($(call is-board-platform-in-list,$(3_18_FAMILY)),true)
|
|
TARGET_KERNEL_VERSION ?= 3.18
|
|
endif
|
|
|
|
ifeq ($(call is-board-platform-in-list,$(QCOM_BOARD_PLATFORMS)),true)
|
|
ifeq ($(TARGET_FWK_SUPPORTS_FULL_VALUEADDS),true)
|
|
# Compatibility matrix
|
|
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += \
|
|
vendor/qcom/opensource/core-utils/vendor_framework_compatibility_matrix.xml
|
|
endif
|
|
|
|
# Components
|
|
include $(QCOM_COMMON_PATH)/components.mk
|
|
|
|
# Power
|
|
ifneq ($(TARGET_PROVIDES_POWERHAL),true)
|
|
$(call inherit-product-if-exists, vendor/qcom/opensource/power/power-vendor-product.mk)
|
|
endif
|
|
|
|
# Public Libraries
|
|
PRODUCT_COPY_FILES += \
|
|
$(QCOM_COMMON_PATH)/public.libraries.system_ext-qti.txt:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/public.libraries-qti.txt
|
|
|
|
# SECCOMP Extensions
|
|
PRODUCT_COPY_FILES += \
|
|
$(QCOM_COMMON_PATH)/seccomp/codec2.software.ext.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/codec2.software.ext.policy \
|
|
$(QCOM_COMMON_PATH)/seccomp/codec2.vendor.ext.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/codec2.vendor.ext.policy \
|
|
$(QCOM_COMMON_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
|
|
$(QCOM_COMMON_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
|
|
endif
|