diff options
| author | 2024-02-27 04:16:46 +0000 | |
|---|---|---|
| committer | 2024-02-27 06:06:57 +0000 | |
| commit | 32c46ea271ea5d38e170c4e90d68e7003e785b5c (patch) | |
| tree | 7ba484b308f24b14fc89ecbae0fbbf63acd9a16c | |
| parent | eb0ca0907670a6506451e5a0b5e67c891a26d8a4 (diff) | |
Use Profiling flag at build time
This change uses the flag to toggle the Profiling module in the platform
bootclasspath.
Bug: 293957254
Bug: 325523640
Test: Built locally on trunk_food (where flag is disabled) and
trunk_staging (where flag is enabled.)
Change-Id: Id386b2d57e78362e12bd6e4cb1f0bdb2dabe3ce6
| -rw-r--r-- | boot/Android.bp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/boot/Android.bp b/boot/Android.bp index cdfa7c80bc93..f60bb9e7149a 100644 --- a/boot/Android.bp +++ b/boot/Android.bp @@ -31,6 +31,7 @@ soong_config_module_type { "car_bootclasspath_fragment", "nfc_apex_bootclasspath_fragment", "release_crashrecovery_module", + "release_package_profiling_module", ], properties: [ "fragments", @@ -122,10 +123,6 @@ custom_platform_bootclasspath { module: "com.android.permission-bootclasspath-fragment", }, { - apex: "com.android.profiling", - module: "com.android.profiling-bootclasspath-fragment", - }, - { apex: "com.android.scheduling", module: "com.android.scheduling-bootclasspath-fragment", }, @@ -179,6 +176,15 @@ custom_platform_bootclasspath { }, ], }, + release_package_profiling_module: { + fragments: [ + // only used if profiling is enabled. + { + apex: "com.android.profiling", + module: "com.android.profiling-bootclasspath-fragment", + }, + ], + }, }, // Additional information needed by hidden api processing. |