Merge "Add BOARD_PERFSETUP_SCRIPT as a soong config variable" into main am: eb41879e1f am: 312527a272

Original change: https://android-review.googlesource.com/c/platform/build/+/3175468

Change-Id: I4aeb1d7e63fab4e60968e6dfdabdcb4e6a547b4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2024-07-24 01:52:09 +00:00
committed by Automerger Merge Worker
2 changed files with 12 additions and 0 deletions

View File

@@ -167,3 +167,9 @@ $(call soong_config_set,bootclasspath,release_crashrecovery_module,$(RELEASE_CRA
# Enable Profiling module. Also used by platform_bootclasspath.
$(call soong_config_set,ANDROID,release_package_profiling_module,$(RELEASE_PACKAGE_PROFILING_MODULE))
$(call soong_config_set,bootclasspath,release_package_profiling_module,$(RELEASE_PACKAGE_PROFILING_MODULE))
# Add perf-setup build flag to soong
# Note: BOARD_PERFSETUP_SCRIPT location must be under platform_testing/scripts/perf-setup/.
ifdef BOARD_PERFSETUP_SCRIPT
$(call soong_config_set,perf,board_perfsetup_script,$(notdir $(BOARD_PERFSETUP_SCRIPT)))
endif

View File

@@ -105,3 +105,9 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
adb_debug.prop \
userdebug_plat_sepolicy.cil
# On eng or userdebug builds, build in perf-setup-sh by default.
ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
PRODUCT_PACKAGES += \
perf-setup-sh
endif