2023-07-03 05:10:54 +00:00
|
|
|
# Copyright 2023 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.
|
|
|
|
|
2023-03-14 07:51:22 +00:00
|
|
|
ifneq (,$(filter all, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2020-12-02 19:19:46 +00:00
|
|
|
TARGET_COMMON_QTI_COMPONENTS := \
|
2022-11-29 06:02:13 +00:00
|
|
|
adreno \
|
2023-05-18 03:09:00 +00:00
|
|
|
alarm \
|
2020-12-02 19:19:46 +00:00
|
|
|
audio \
|
|
|
|
av \
|
|
|
|
bt \
|
|
|
|
display \
|
|
|
|
gps \
|
|
|
|
init \
|
2022-11-29 06:02:13 +00:00
|
|
|
media \
|
2022-10-04 03:50:37 +00:00
|
|
|
nfc \
|
2020-12-02 19:19:46 +00:00
|
|
|
overlay \
|
|
|
|
perf \
|
|
|
|
telephony \
|
|
|
|
usb \
|
|
|
|
vibrator \
|
2022-11-29 06:02:13 +00:00
|
|
|
wfd \
|
2023-03-14 07:51:22 +00:00
|
|
|
wlan \
|
|
|
|
$(filter-out all,$(TARGET_COMMON_QTI_COMPONENTS))
|
2021-02-12 07:57:02 +00:00
|
|
|
endif
|
2021-03-31 21:05:13 +00:00
|
|
|
|
2022-11-29 06:02:13 +00:00
|
|
|
# QTI Common Components
|
2022-04-19 04:39:52 +00:00
|
|
|
|
2022-11-29 06:02:13 +00:00
|
|
|
ifneq (,$(filter adreno, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2023-12-21 08:09:22 +00:00
|
|
|
ifeq ($(call is-board-platform-in-list,$(6_1_FAMILY)),true)
|
|
|
|
TARGET_ADRENO_COMPONENT_VARIANT ?= adreno-u
|
|
|
|
else ifeq ($(call is-board-platform-in-list,$(5_15_FAMILY)),true)
|
2023-10-24 16:31:53 +00:00
|
|
|
TARGET_ADRENO_COMPONENT_VARIANT ?= adreno-t
|
|
|
|
else ifeq ($(call is-board-platform-in-list,$(5_10_FAMILY)),true)
|
2023-10-24 15:45:21 +00:00
|
|
|
TARGET_ADRENO_COMPONENT_VARIANT ?= adreno-s
|
|
|
|
else ifeq ($(call is-board-platform-in-list,$(4_14_FAMILY) $(4_19_FAMILY) $(5_4_FAMILY)),true)
|
|
|
|
TARGET_ADRENO_COMPONENT_VARIANT ?= adreno-r
|
2022-11-30 22:46:15 +00:00
|
|
|
else ifeq ($(call is-board-platform-in-list,$(3_18_FAMILY) $(4_4_FAMILY) msm8953),true)
|
2023-07-03 05:10:54 +00:00
|
|
|
TARGET_ADRENO_COMPONENT_VARIANT ?= adreno-5xx
|
2022-11-30 22:46:15 +00:00
|
|
|
else
|
2023-10-24 15:45:21 +00:00
|
|
|
$(error "Adreno component is enabled, but there is not a variant available for your platform.")
|
2022-11-29 06:02:13 +00:00
|
|
|
endif
|
2023-07-03 05:10:54 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/vendor/$(TARGET_ADRENO_COMPONENT_VARIANT)/qti-$(TARGET_ADRENO_COMPONENT_VARIANT).mk
|
2022-04-19 04:39:52 +00:00
|
|
|
endif
|
2022-11-29 06:02:13 +00:00
|
|
|
|
2023-05-18 03:09:00 +00:00
|
|
|
ifneq (,$(filter alarm, $(TARGET_COMMON_QTI_COMPONENTS)))
|
|
|
|
include $(QCOM_COMMON_PATH)/system/alarm/qti-alarm.mk
|
|
|
|
include $(QCOM_COMMON_PATH)/vendor/alarm/qti-alarm.mk
|
|
|
|
endif
|
|
|
|
|
2022-11-29 06:02:13 +00:00
|
|
|
ifneq (,$(filter audio, $(TARGET_COMMON_QTI_COMPONENTS)))
|
|
|
|
include $(QCOM_COMMON_PATH)/system/audio/qti-audio.mk
|
|
|
|
include $(QCOM_COMMON_PATH)/vendor/audio/qti-audio.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter av, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2022-11-29 06:02:13 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/system/av/qti-av.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter bt, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2022-11-29 06:02:13 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/system/bt/qti-bt.mk
|
|
|
|
include $(QCOM_COMMON_PATH)/vendor/bt/qti-bt.mk
|
|
|
|
endif
|
|
|
|
|
2023-02-23 00:49:20 +00:00
|
|
|
ifneq (,$(filter charging, $(TARGET_COMMON_QTI_COMPONENTS)))
|
|
|
|
include $(QCOM_COMMON_PATH)/vendor/charging/qti-charging.mk
|
|
|
|
endif
|
|
|
|
|
2022-11-29 06:02:13 +00:00
|
|
|
ifneq (,$(filter display, $(TARGET_COMMON_QTI_COMPONENTS)))
|
|
|
|
include $(QCOM_COMMON_PATH)/system/display/qti-display.mk
|
|
|
|
include $(QCOM_COMMON_PATH)/vendor/display/qti-display.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
2023-02-23 00:53:49 +00:00
|
|
|
ifneq (,$(filter dsprpcd, $(TARGET_COMMON_QTI_COMPONENTS)))
|
|
|
|
include $(QCOM_COMMON_PATH)/vendor/dsprpcd/qti-dsprpcd.mk
|
|
|
|
endif
|
|
|
|
|
2023-08-22 17:20:18 +00:00
|
|
|
ifneq (,$(filter 5.10 5.15, $(TARGET_KERNEL_VERSION)))
|
2022-09-21 21:41:15 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/dlkm/qti-dlkm.mk
|
|
|
|
endif
|
|
|
|
|
2020-12-02 19:19:46 +00:00
|
|
|
ifneq (,$(filter gps, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2022-11-29 06:02:13 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/system/gps/qti-gps.mk
|
2023-05-19 17:44:15 +00:00
|
|
|
ifeq ($(call is-board-platform-in-list,$(5_10_FAMILY) $(5_15_FAMILY)),true)
|
2023-07-03 05:10:54 +00:00
|
|
|
TARGET_GPS_COMPONENT_VARIANT ?= gps
|
2023-05-19 17:44:15 +00:00
|
|
|
else
|
2023-07-03 05:10:54 +00:00
|
|
|
TARGET_GPS_COMPONENT_VARIANT ?= gps-legacy
|
2023-05-19 17:44:15 +00:00
|
|
|
endif
|
2023-07-03 05:10:54 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/vendor/$(TARGET_GPS_COMPONENT_VARIANT)/qti-$(TARGET_GPS_COMPONENT_VARIANT).mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter init, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2022-11-29 06:02:13 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/vendor/init/qti-init.mk
|
2023-02-23 01:17:44 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter keymaster, $(TARGET_COMMON_QTI_COMPONENTS)))
|
|
|
|
include $(QCOM_COMMON_PATH)/vendor/keymaster/qti-keymaster.mk
|
2022-11-29 06:02:13 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter media, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2023-04-20 17:25:12 +00:00
|
|
|
ifeq ($(call is-board-platform-in-list,$(5_10_FAMILY) $(5_15_FAMILY)),true)
|
2023-07-03 05:10:54 +00:00
|
|
|
TARGET_MEDIA_COMPONENT_VARIANT ?= media
|
2022-09-21 23:03:26 +00:00
|
|
|
else ifeq ($(call is-board-platform-in-list,$(5_4_FAMILY)),true)
|
2023-07-03 05:10:54 +00:00
|
|
|
TARGET_MEDIA_COMPONENT_VARIANT ?= media-5.4
|
2022-11-29 06:02:13 +00:00
|
|
|
else
|
2023-07-03 05:10:54 +00:00
|
|
|
TARGET_MEDIA_COMPONENT_VARIANT ?= media-legacy
|
2022-11-29 06:02:13 +00:00
|
|
|
endif
|
2023-07-03 05:10:54 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/vendor/$(TARGET_MEDIA_COMPONENT_VARIANT)/qti-$(TARGET_MEDIA_COMPONENT_VARIANT).mk
|
2022-11-29 06:02:13 +00:00
|
|
|
endif
|
|
|
|
|
2022-10-04 03:50:37 +00:00
|
|
|
ifneq (,$(filter nfc, $(TARGET_COMMON_QTI_COMPONENTS)))
|
|
|
|
include $(QCOM_COMMON_PATH)/vendor/nfc/qti-nfc.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter overlay, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2022-11-29 06:02:13 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/system/overlay/qti-overlay.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter perf, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2022-11-29 06:02:13 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/system/perf/qti-perf.mk
|
2023-10-24 17:48:53 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/vendor/perf/qti-perf.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
2023-02-23 01:25:25 +00:00
|
|
|
ifneq (,$(filter qseecomd, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2023-06-17 03:05:44 +00:00
|
|
|
ifeq ($(call is-board-platform-in-list,$(5_4_FAMILY) $(5_10_FAMILY) $(5_15_FAMILY)),true)
|
2023-07-03 05:10:54 +00:00
|
|
|
TARGET_QSEECOMD_COMPONENT_VARIANT ?= qseecomd
|
2023-02-23 01:25:25 +00:00
|
|
|
else
|
2023-07-03 05:10:54 +00:00
|
|
|
TARGET_QSEECOMD_COMPONENT_VARIANT ?= qseecomd-legacy
|
2023-02-23 01:25:25 +00:00
|
|
|
endif
|
2023-07-03 05:10:54 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/vendor/$(TARGET_QSEECOMD_COMPONENT_VARIANT)/qti-$(TARGET_QSEECOMD_COMPONENT_VARIANT).mk
|
2023-02-23 01:25:25 +00:00
|
|
|
endif
|
|
|
|
|
2020-12-02 19:19:46 +00:00
|
|
|
ifneq (,$(filter telephony, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2022-11-29 06:02:13 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/system/telephony/qti-telephony.mk
|
|
|
|
include $(QCOM_COMMON_PATH)/vendor/telephony/qti-telephony.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter usb, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2022-11-29 06:02:13 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/vendor/usb/qti-usb.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter vibrator, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2022-11-29 06:02:13 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/vendor/vibrator/qti-vibrator.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wfd, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2023-04-06 13:11:58 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/system/wfd/qti-wfd.mk
|
2020-12-02 19:19:46 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wlan, $(TARGET_COMMON_QTI_COMPONENTS)))
|
2023-02-25 14:26:03 +00:00
|
|
|
ifeq ($(call is-board-platform-in-list,$(5_10_FAMILY) $(5_15_FAMILY)),true)
|
2023-07-03 05:10:54 +00:00
|
|
|
TARGET_WLAN_COMPONENT_VARIANT ?= wlan
|
2023-02-23 17:26:49 +00:00
|
|
|
else
|
2023-07-03 05:10:54 +00:00
|
|
|
TARGET_WLAN_COMPONENT_VARIANT ?= wlan-legacy
|
2023-02-23 17:26:49 +00:00
|
|
|
endif
|
2023-07-03 05:10:54 +00:00
|
|
|
include $(QCOM_COMMON_PATH)/vendor/$(TARGET_WLAN_COMPONENT_VARIANT)/qti-$(TARGET_WLAN_COMPONENT_VARIANT).mk
|
2021-03-31 21:05:13 +00:00
|
|
|
endif
|