2021-02-11 18:06:14 +00:00
|
|
|
# Copyright 2021 Paranoid Android
|
2020-12-02 19:19:46 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
ifeq ($(TARGET_COMMON_QTI_COMPONENTS), all)
|
|
|
|
TARGET_COMMON_QTI_COMPONENTS := \
|
|
|
|
audio \
|
|
|
|
av \
|
|
|
|
bt \
|
|
|
|
display \
|
|
|
|
gps \
|
|
|
|
init \
|
|
|
|
nq-nfc \
|
|
|
|
overlay \
|
|
|
|
perf \
|
|
|
|
telephony \
|
|
|
|
usb \
|
|
|
|
vibrator \
|
|
|
|
wfd \
|
|
|
|
wlan
|
2021-02-12 07:57:02 +00:00
|
|
|
|
|
|
|
ifeq ($(call is-board-platform-in-list,$(5_4_FAMILY)),true)
|
|
|
|
TARGET_COMMON_QTI_COMPONENTS += media
|
|
|
|
else
|
|
|
|
TARGET_COMMON_QTI_COMPONENTS += media-legacy
|
|
|
|
endif
|
2021-03-31 21:05:13 +00:00
|
|
|
|
|
|
|
ifneq (,$(filter true, $(call is-board-platform-in-list,$(3_18_FAMILY) $(4_4_FAMILY))))
|
|
|
|
TARGET_COMMON_QTI_COMPONENTS += adreno-legacy
|
|
|
|
else
|
|
|
|
TARGET_COMMON_QTI_COMPONENTS += adreno
|
|
|
|
endif
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# QTI Common Components
|
|
|
|
ifneq (,$(filter av, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/av/qti-av.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter bt, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/bt/qti-bt.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter gps, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/gps/qti-gps.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter init, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/init/qti-init.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter overlay, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/overlay/qti-overlay.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter perf, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/perf/qti-perf.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter telephony, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/telephony/qti-telephony.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter usb, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/usb/qti-usb.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter vibrator, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/vibrator/qti-vibrator.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
2021-02-18 14:39:21 +00:00
|
|
|
# >= SM8350
|
2021-02-12 07:57:02 +00:00
|
|
|
ifneq (,$(filter media, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/media/qti-media.mk
|
2021-02-12 07:57:02 +00:00
|
|
|
endif
|
|
|
|
|
2021-02-18 14:39:21 +00:00
|
|
|
# <= SM8250
|
2021-02-12 07:57:02 +00:00
|
|
|
ifneq (,$(filter media-legacy, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/media-legacy/qti-media-legacy.mk
|
2021-02-12 07:57:02 +00:00
|
|
|
endif
|
|
|
|
|
2021-02-18 14:39:21 +00:00
|
|
|
# >= SDM845
|
2021-02-11 18:06:14 +00:00
|
|
|
ifneq (,$(filter adreno, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/adreno/qti-adreno.mk
|
2021-02-11 18:06:14 +00:00
|
|
|
endif
|
|
|
|
|
2020-12-02 19:19:46 +00:00
|
|
|
ifneq (,$(filter audio, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/audio/qti-audio.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter display, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/display/qti-display.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter nq-nfc, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/nq-nfc/qti-nq-nfc.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wfd, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/wfd/qti-wfd.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wlan, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/wlan/qti-wlan.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# <= MSM8998
|
|
|
|
ifneq (,$(filter wfd-legacy, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/wfd-legacy/qti-wfd-legacy.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
2021-03-31 21:05:13 +00:00
|
|
|
|
|
|
|
ifneq (,$(filter adreno-legacy, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2021-07-08 19:12:14 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/adreno-legacy/qti-adreno-legacy.mk
|
2021-03-31 21:05:13 +00:00
|
|
|
endif
|