2023-11-08 16:21:03 +00:00
|
|
|
# Copyright (C) 2023 Paranoid Android
|
2020-03-18 21:05:44 +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.
|
|
|
|
|
2021-02-15 20:34:20 +00:00
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
2021-11-16 08:57:56 +00:00
|
|
|
device/qcom/common/vendor/perf
|
2020-03-18 21:05:44 +00:00
|
|
|
|
2022-11-29 06:39:40 +00:00
|
|
|
TARGET_PERF_COMPONENT_VARIANT := perf
|
|
|
|
|
2021-02-19 07:12:26 +00:00
|
|
|
# Configs
|
2023-11-08 16:35:44 +00:00
|
|
|
# Use the configs for TARGET_BOARD_PLATFORM unless otherwise specified
|
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM)$(TARGET_BOARD_SUFFIX),bengal_515)
|
|
|
|
TARGET_PERF_DIR := bengal_515
|
|
|
|
else
|
|
|
|
TARGET_PERF_DIR := $(TARGET_BOARD_PLATFORM)
|
|
|
|
endif
|
|
|
|
|
2021-02-19 07:12:26 +00:00
|
|
|
PRODUCT_COPY_FILES += \
|
2021-11-16 08:57:56 +00:00
|
|
|
$(call find-copy-subdir-files,*,$(QCOM_COMMON_PATH)/vendor/perf/configs/common,$(TARGET_COPY_OUT_VENDOR)/etc) \
|
2023-11-08 16:35:44 +00:00
|
|
|
$(call find-copy-subdir-files,*,$(QCOM_COMMON_PATH)/vendor/perf/configs/$(TARGET_PERF_DIR),$(TARGET_COPY_OUT_VENDOR)/etc)
|
2021-02-19 07:12:26 +00:00
|
|
|
|
2022-08-16 21:46:05 +00:00
|
|
|
# Disable the poweropt service for <5.4 platforms.
|
2023-02-25 14:26:03 +00:00
|
|
|
ifeq (,$(filter 5.4 5.10 5.15, $(TARGET_KERNEL_VERSION)))
|
2021-05-04 15:56:07 +00:00
|
|
|
PRODUCT_COPY_FILES += \
|
2021-11-16 08:57:56 +00:00
|
|
|
$(QCOM_COMMON_PATH)/vendor/perf/poweropt-service-disable.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/poweropt-service-disable.rc
|
2021-05-04 15:56:07 +00:00
|
|
|
endif
|
|
|
|
|
2020-09-16 19:24:46 +00:00
|
|
|
# Packages
|
|
|
|
PRODUCT_PACKAGES += \
|
2021-12-26 17:53:11 +00:00
|
|
|
android.hardware.thermal@2.0.vendor \
|
2023-11-01 07:24:08 +00:00
|
|
|
android.hardware.thermal-V1-ndk.vendor \
|
2021-12-26 17:53:11 +00:00
|
|
|
libavservices_minijail.vendor \
|
2021-02-19 16:01:22 +00:00
|
|
|
libpsi.vendor \
|
2020-11-30 05:30:43 +00:00
|
|
|
libtflite \
|
2024-05-30 02:55:18 +00:00
|
|
|
vendor.qti.hardware.servicetracker@1.1.vendor \
|
|
|
|
vendor.qti.hardware.servicetrackeraidl-V1-ndk.vendor
|
2020-09-16 19:24:46 +00:00
|
|
|
|
2022-08-16 21:46:05 +00:00
|
|
|
# Only copy task_profiles.json for 5.4 targets.
|
2021-04-22 13:04:36 +00:00
|
|
|
ifeq ($(TARGET_KERNEL_VERSION),5.4)
|
2022-07-22 09:32:04 +00:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
system/core/libprocessgroup/profiles/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
|
2021-04-22 13:04:36 +00:00
|
|
|
endif
|
|
|
|
|
2020-09-16 19:24:46 +00:00
|
|
|
# Properties
|
2022-06-14 11:49:48 +00:00
|
|
|
PRODUCT_VENDOR_PROPERTIES += \
|
2023-11-01 07:24:08 +00:00
|
|
|
ro.vendor.perf-hal.ver=3.0 \
|
2021-02-11 16:47:16 +00:00
|
|
|
ro.vendor.extension_library=libqti-perfd-client.so \
|
2022-10-15 03:16:49 +00:00
|
|
|
ro.vendor.perf.scroll_opt=true \
|
|
|
|
ro.vendor.qspm.enable=true \
|
2023-02-25 14:26:03 +00:00
|
|
|
vendor.perf.framepacing.enable=1
|
|
|
|
|
2023-11-08 16:21:03 +00:00
|
|
|
ifneq (,$(filter 4.19 5.4 5.10 5.15, $(TARGET_KERNEL_VERSION)))
|
2022-06-14 11:49:48 +00:00
|
|
|
PRODUCT_VENDOR_PROPERTIES += \
|
2021-04-21 15:29:48 +00:00
|
|
|
ro.vendor.beluga.p=0x3 \
|
|
|
|
ro.vendor.beluga.c=0x4800 \
|
|
|
|
ro.vendor.beluga.s=0x900 \
|
|
|
|
ro.vendor.beluga.t=0x240
|
|
|
|
endif
|
|
|
|
|
2020-03-18 21:05:44 +00:00
|
|
|
# Get non-open-source specific aspects
|
2021-11-16 08:57:56 +00:00
|
|
|
$(call inherit-product-if-exists, vendor/qcom/common/vendor/perf/perf-vendor.mk)
|