81 lines
2.9 KiB
Makefile
81 lines
2.9 KiB
Makefile
# Copyright (C) 2022 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.
|
|
|
|
# Current tag - LA.VENDOR.1.0.r1-16000-WAIPIO.QSSI13.0
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
device/qcom/common/vendor/perf
|
|
|
|
TARGET_PERF_COMPONENT_VARIANT := perf
|
|
|
|
# Configs
|
|
PRODUCT_COPY_FILES += \
|
|
$(call find-copy-subdir-files,*,$(QCOM_COMMON_PATH)/vendor/perf/configs/common,$(TARGET_COPY_OUT_VENDOR)/etc) \
|
|
$(call find-copy-subdir-files,*,$(QCOM_COMMON_PATH)/vendor/perf/configs/$(TARGET_BOARD_PLATFORM),$(TARGET_COPY_OUT_VENDOR)/etc) \
|
|
$(call find-copy-subdir-files,*,$(QCOM_COMMON_PATH)/vendor/perf/configs/test,$(TARGET_COPY_OUT_VENDOR)/etc)
|
|
|
|
# Disable IOP HAL for select platforms.
|
|
ifeq ($(call is-board-platform-in-list, msm8937 msm8953 msm8998 qcs605 sdm660 sdm710),true)
|
|
PRODUCT_COPY_FILES += \
|
|
$(QCOM_COMMON_PATH)/vendor/perf/vendor.qti.hardware.iop@2.0-service-disable.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.iop@2.0-service-disable.rc
|
|
endif
|
|
|
|
# Disable the poweropt service for <5.4 platforms.
|
|
ifeq (,$(filter 5.4 5.10, $(TARGET_KERNEL_VERSION)))
|
|
PRODUCT_COPY_FILES += \
|
|
$(QCOM_COMMON_PATH)/vendor/perf/poweropt-service-disable.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/poweropt-service-disable.rc
|
|
endif
|
|
|
|
# Packages
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.thermal@2.0.vendor \
|
|
init.aospa.perf.rc \
|
|
libavservices_minijail.vendor \
|
|
libpsi.vendor \
|
|
libtflite \
|
|
vendor.qti.hardware.servicetracker@1.2.vendor
|
|
|
|
# Only copy task_profiles.json for 5.4 targets.
|
|
ifeq ($(TARGET_KERNEL_VERSION),5.4)
|
|
PRODUCT_COPY_FILES += \
|
|
system/core/libprocessgroup/profiles/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
|
|
endif
|
|
|
|
# Properties
|
|
PRODUCT_VENDOR_PROPERTIES += \
|
|
ro.vendor.perf-hal.ver=2.3 \
|
|
ro.vendor.extension_library=libqti-perfd-client.so \
|
|
ro.vendor.perf.scroll_opt=true \
|
|
ro.vendor.qspm.enable=true \
|
|
vendor.power.pasr.enabled=true
|
|
|
|
ifeq ($(call is-board-platform-in-list, kona lahaina parrot taro),true)
|
|
PRODUCT_VENDOR_PROPERTIES += \
|
|
ro.vendor.beluga.p=0x3 \
|
|
ro.vendor.beluga.c=0x4800 \
|
|
ro.vendor.beluga.s=0x900 \
|
|
ro.vendor.beluga.t=0x240
|
|
endif
|
|
|
|
ifneq (,$(filter 4.14 4.19 5.4 5.10, $(TARGET_KERNEL_VERSION)))
|
|
ifeq ($(TARGET_BOARD_PLATFORM), holi)
|
|
PRODUCT_VENDOR_PROPERTIES += vendor.pasr.activemode.enabled=false
|
|
else
|
|
PRODUCT_VENDOR_PROPERTIES += vendor.pasr.activemode.enabled=true
|
|
endif
|
|
endif
|
|
|
|
# Get non-open-source specific aspects
|
|
$(call inherit-product-if-exists, vendor/qcom/common/vendor/perf/perf-vendor.mk)
|