Commit Graph

37087 Commits

Author SHA1 Message Date
Carmen Jackson
4889c99c39 Use Profiling flag at build time
This change puts base_system and default_art_config references to
the profiling module behind the build flag.

It also adds the flag to soong_config_vars so it can be referenced
from the Profiling module and from platform_bootclasspath.

Bug: 293957254
Bug: 325523640
Test: Built locally on trunk_food (where flag is disabled) and
trunk_staging (where flag is enabled.)
Ignore-AOSP-First: Must be submitted in topic with internal-only
changes.

Change-Id: I51cfa65ff607753cc8c588793ea381419ac99260
2024-02-27 06:43:55 +00:00
Yi-Yo Chiang
5c93dbdfb9 Merge "Skip check_vintf_system_deps if not building system image" into main am: 0656d0a451 am: 5e8c4e77d2
Original change: https://android-review.googlesource.com/c/platform/build/+/2973131

Change-Id: If3b4aab1f9fe229c625756f039f864628e1473ca
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-26 04:03:40 +00:00
Yi-Yo Chiang
5e8c4e77d2 Merge "Skip check_vintf_system_deps if not building system image" into main am: 0656d0a451
Original change: https://android-review.googlesource.com/c/platform/build/+/2973131

Change-Id: I8e8b02963e741743f6725596bcc07790728d0f12
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-26 03:23:47 +00:00
Yi-Yo Chiang
0656d0a451 Merge "Skip check_vintf_system_deps if not building system image" into main 2024-02-26 02:51:26 +00:00
Yi-Yo Chiang
1fa25e3bbd Merge "core/Makefile: Define write-file-lines unconditionally" into main am: 999350475b am: 00ae5874ea
Original change: https://android-review.googlesource.com/c/platform/build/+/2972991

Change-Id: I91c3e2f80bcce63ca38dad5cf14ac40c2c7a0161
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-23 03:38:55 +00:00
Jihoon Kang
03bd260c7c Introduce the product variable PRODUCT_EXPORT_RUNTIME_APIS am: 49f08d9328 am: bb717a3c38
Original change: https://android-review.googlesource.com/c/platform/build/+/2974392

Change-Id: I45e0b523ed883066276b1a7161f69a4d8bc6ca76
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-23 02:55:29 +00:00
Jihoon Kang
c7d2fce206 Introduce product variable PRODUCT_HIDDEN_API_EXPORTABLE_STUBS am: c974a2786f am: 886cdfe157
Original change: https://android-review.googlesource.com/c/platform/build/+/2974391

Change-Id: Id2d64a7d9ebe8db67169de749ca8ed5fe8b79f71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-23 02:55:26 +00:00
Yi-Yo Chiang
53c4733636 Merge "Add system_ext.img to droidcore-unbundled" into main am: 0f68977878 am: cfef6e8ee2
Original change: https://android-review.googlesource.com/c/platform/build/+/2973132

Change-Id: If7348e8ca2616ff7b2da6429073688a29e0cd6a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-23 02:55:07 +00:00
Yi-Yo Chiang
00ae5874ea Merge "core/Makefile: Define write-file-lines unconditionally" into main am: 999350475b
Original change: https://android-review.googlesource.com/c/platform/build/+/2972991

Change-Id: I0471eabd46f39f0bb5b38dc5ca9ccebe9ce6e334
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-23 02:37:05 +00:00
Jihoon Kang
bb717a3c38 Introduce the product variable PRODUCT_EXPORT_RUNTIME_APIS am: 49f08d9328
Original change: https://android-review.googlesource.com/c/platform/build/+/2974392

Change-Id: Ifdf34587fc7ed266cf7e0604622321120048ac58
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-23 02:36:44 +00:00
Jihoon Kang
886cdfe157 Introduce product variable PRODUCT_HIDDEN_API_EXPORTABLE_STUBS am: c974a2786f
Original change: https://android-review.googlesource.com/c/platform/build/+/2974391

Change-Id: I9da44df6876255b33e8388adb05bbc3ba2f17af2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-23 02:36:39 +00:00
Yi-Yo Chiang
cfef6e8ee2 Merge "Add system_ext.img to droidcore-unbundled" into main am: 0f68977878
Original change: https://android-review.googlesource.com/c/platform/build/+/2973132

Change-Id: I30b08a5d5e1ee416755856030041c5bb82914580
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-23 02:35:56 +00:00
Yi-Yo Chiang
999350475b Merge "core/Makefile: Define write-file-lines unconditionally" into main 2024-02-23 01:53:44 +00:00
Treehugger Robot
0a8fd1404e Merge changes from topics "product_runtime_apis", "product_var_hidden_api" into main
* changes:
  Introduce the product sdk_with_runtime_apis
  Introduce the product variable PRODUCT_EXPORT_RUNTIME_APIS
  Introduce product variable PRODUCT_HIDDEN_API_EXPORTABLE_STUBS
2024-02-23 01:53:40 +00:00
Jihoon Kang
49f08d9328 Introduce the product variable PRODUCT_EXPORT_RUNTIME_APIS
PRODUCT_EXPORT_RUNTIME_APIS is a product variable that inherits the
behavior of the build flag RELEASE_EXPORT_RUNTIME_APIS, which is being
removed. This will be utilized in the product `sdk_with_runtime_apis`,
which will be introduced in a future change.

Test: m nothing --no-skip-soong-tests
Bug: 326312949
Change-Id: I4966b7bfc7423db049acfcede67233352ba8341b
2024-02-22 20:08:53 +00:00
Jihoon Kang
c974a2786f Introduce product variable PRODUCT_HIDDEN_API_EXPORTABLE_STUBS
The new product variable behaves identical to the build flag
RELEASE_HIDDEN_API_EXPORTABLE_STUBS: if the variable is set to true, the
hiddenapi flags are generated from the "exportable" stubs (i.e. the
stubs that does not include READ_WRITE permission or DISABLE state
flagged apis) instead of the "everything" stubs (i.e. the stubs that
includes all flagged apis regardless of the state of the flags). If the
variable is set to false, the stubs are generated from the "everything"
stubs.

This product variable will be utilized for `sdk_with_runtime_apis`
product in the future changes.

Test: m nothing
Bug: 326310637
Change-Id: Iab3b46ac39972b8721d3aa07cec622c57dafbd0e
2024-02-22 20:08:18 +00:00
Yi-Yo Chiang
2aa40fbb57 Add system_ext.img to droidcore-unbundled
Otherwise system_ext.img wouldn't be built under $PRODUCT_OUT dir when
building a system.img&system_ext.img only build target.

Bug: 326359088
Test: Build a system/system_ext image only target
Change-Id: I8732f7a578350f8bc3b91f8a1db656bf95eddc95
2024-02-22 11:47:37 +00:00
Yi-Yo Chiang
600feb8a21 Skip check_vintf_system_deps if not building system image
There's no point testing the system vintf boundary on a system image
-less target.

Bug: 326354182
Bug: 326359088
Test: Build a system image -less target
Change-Id: I1ef71f93acb1e7a6252ae14e18c30cb23cb08db2
2024-02-22 11:47:22 +00:00
Yi-Yo Chiang
ab09c84c5f core/Makefile: Define write-file-lines unconditionally
Right now write-file-lines is defined only if BUILDING_SYSTEM_IMAGE is
true. This means split build / partial build targets that doesn't build
the system image, would fail to build other partition images too
because the $(<parttition>image_intermediates)/file_list.txt build rule
would be undefined.

Move the macro definition out of the `ifdef BUILDING_SYSTEM_IMAGE`
conditional block.

Bug: 326359088
Test: build a target that doesn't build system image
Change-Id: I020c28f7011bd0df0330ba3350e50bea2b75aab4
2024-02-22 11:47:02 +00:00
Mark White
f84a4c85c0 Don't trigger messaging eng build for Android -eng builds
This was the only app target with this kind of configuration, and is not actively developed.

Change-Id: I57d99703bd5c40100c19aa0086a8711409b14c54
2024-02-22 11:12:25 +00:00
Treehugger Robot
0c1bb63856 Merge "Add crashrecovery build flag to move files" into main am: 7f081d9262
Original change: https://android-review.googlesource.com/c/platform/build/+/2942585

Change-Id: I16552671e03893fb79a154f67563a7388a504bf5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-21 22:18:10 +00:00
Treehugger Robot
7f081d9262 Merge "Add crashrecovery build flag to move files" into main 2024-02-21 22:05:18 +00:00
Treehugger Robot
a98e26d3b9 Merge "Move RELEASE_PLATFORM_VERSION_KNOWN_CODENAMES out to release configs." into main am: 97d0ec9b05
Original change: https://android-review.googlesource.com/c/platform/build/+/2972071

Change-Id: Id2cfee405bdb4dcf5fe052cd559169d50a376940
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-21 21:56:37 +00:00
Luca Farsi
d51e32afb3 Merge "Split out host shared libs target from general-tests" into main am: ba6f6806c6 am: aff5705707
Original change: https://android-review.googlesource.com/c/platform/build/+/2957818

Change-Id: Id27eeae9589a6f6a05f5d4d418384c175faf4de0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-21 21:33:31 +00:00
Treehugger Robot
97d0ec9b05 Merge "Move RELEASE_PLATFORM_VERSION_KNOWN_CODENAMES out to release configs." into main 2024-02-21 21:23:57 +00:00
Luca Farsi
aff5705707 Merge "Split out host shared libs target from general-tests" into main am: ba6f6806c6
Original change: https://android-review.googlesource.com/c/platform/build/+/2957818

Change-Id: I3db62673775c37a52762dc5283af04435ba0852f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-21 20:53:24 +00:00
Luca Farsi
ba6f6806c6 Merge "Split out host shared libs target from general-tests" into main 2024-02-21 20:05:54 +00:00
Harshit Mahajan
9edbf981f2 Add crashrecovery build flag to move files
Files need to be moved from platform to the new apex.
Adding a flag to control this movement.
More Details: go/conditionally-move-android-files

Bug: b/289203818
Test: m
Change-Id: Id3674bd6a8a32f64d189b8ac17b222b9d7966f69
Merged-In: Id3674bd6a8a32f64d189b8ac17b222b9d7966f69
2024-02-21 18:16:51 +00:00
Treehugger Robot
dd6a111283 Merge "Add CrashRecovery build flag to move files" into main 2024-02-21 18:14:28 +00:00
Ian Kasprzak
1b2eea56e6 Move RELEASE_PLATFORM_VERSION_KNOWN_CODENAMES out to release configs.
We have more known codenames then we are releasing, and need a way to
override this in release configs.

Bug: 307733231
Test: m nothing
Change-Id: I2215dc449ca28cae253f514183507550b58f267b
Merged-In: I2215dc449ca28cae253f514183507550b58f267b
(cherry picked from commit 569b9e08fa)
2024-02-21 17:12:16 +00:00
Harshit Mahajan
b9d09c68fd Add CrashRecovery build flag to move files
Files need to be moved from platform to the new apex.
Adding a flag to control this movement.
More Details: go/conditionally-move-android-files

Bug: b/289203818
Test: m
Ignore-AOSP-First: merge conflicts in AOSP aosp/2942585
Change-Id: Id3674bd6a8a32f64d189b8ac17b222b9d7966f69
---
(cherry picked from https://android-review.googlesource.com/q/commit:b99913a726a99b85616270ebfccb4e74a0c71052 due to merge conflicts)
2024-02-21 15:34:57 +00:00
Hsin-Yi Chen
52a9fb0d1b Merge "Define a make target for all LLNDK dumps" into main am: bc5a4271ee am: 4acf2f7541
Original change: https://android-review.googlesource.com/c/platform/build/+/2968542

Change-Id: If5397e4b223234ed7037869074b633c772d176c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-21 09:11:02 +00:00
Hsin-Yi Chen
4acf2f7541 Merge "Define a make target for all LLNDK dumps" into main am: bc5a4271ee
Original change: https://android-review.googlesource.com/c/platform/build/+/2968542

Change-Id: I67bd741967cfab8d2114b81a7e7aa05a231c2015
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-21 08:31:05 +00:00
Hsin-Yi Chen
bc5a4271ee Merge "Define a make target for all LLNDK dumps" into main 2024-02-21 07:42:50 +00:00
Hsin-Yi Chen
23d855680c Define a make target for all LLNDK dumps
- Define findlsdumps_LLNDK that vFRC process will build.
- Move LSDUMP_PATHS_FILE to target/product/gsi/Android.mk.
- Allow LLNDK dumps in prebuilts/abi-dumps/vndk.

Test: m findlsdumps_LLNDK check-vndk-list
Bug: 314010764
Change-Id: I6329cd4b1b919069291a13bd03720ceea46b95ff
2024-02-21 03:46:57 +00:00
Luca Farsi
a677887047 Split out host shared libs target from general-tests
Split out the building of the host shared libs zip from the
general-tests target so it can be built separately. building
general-tests will still build both.

Test: m general-tests, m general-tests-shared-libs
Bug: 314171817
Change-Id: I99f6d7ae5578d8bc97ddc0c047398defbf9b8cc9
2024-02-20 14:06:02 -08:00
Spandan Das
753ac5e516 Merge "Revert "Revert "Create a product variable for skipping apex cont..."" into main am: 9001b9afbf am: 200c9588ae
Original change: https://android-review.googlesource.com/c/platform/build/+/2967068

Change-Id: I599a1fb33b12e0fd4b14d2c6f056be337ce46bf8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-20 09:22:20 +00:00
Spandan Das
200c9588ae Merge "Revert "Revert "Create a product variable for skipping apex cont..."" into main am: 9001b9afbf
Original change: https://android-review.googlesource.com/c/platform/build/+/2967068

Change-Id: Ic094fbd2adb507a5ac4da63ce282d341fc20250a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-20 08:42:23 +00:00
Spandan Das
9001b9afbf Merge "Revert "Revert "Create a product variable for skipping apex cont..."" into main 2024-02-20 07:53:04 +00:00
Nikita Ioffe
ecfe0ef1fa Merge "Remove unused PRODUCT_AVF_KERNEL_MODULES_ENABLED" into main am: 68e2e5375c am: 839d2b4665
Original change: https://android-review.googlesource.com/c/platform/build/+/2962203

Change-Id: If067820feb4b68c02a26fea841fd4239df7d9d44
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-19 18:42:01 +00:00
Nikita Ioffe
839d2b4665 Merge "Remove unused PRODUCT_AVF_KERNEL_MODULES_ENABLED" into main am: 68e2e5375c
Original change: https://android-review.googlesource.com/c/platform/build/+/2962203

Change-Id: Ia5d091aeff88bb91df3529c8dfa9b32315d2122e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-19 18:02:20 +00:00
Nikita Ioffe
68e2e5375c Merge "Remove unused PRODUCT_AVF_KERNEL_MODULES_ENABLED" into main 2024-02-19 17:29:09 +00:00
Treehugger Robot
167f111b40 Merge "Disable reboot to ram dump on zygote crash loop for -eng builds" into main am: 7298b076e1 am: cdf83d02e2
Original change: https://android-review.googlesource.com/c/platform/build/+/2963308

Change-Id: If2567931cf1c6384c42bd9c6f4f60193dc6a3b1d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-18 15:09:56 +00:00
Treehugger Robot
cdf83d02e2 Merge "Disable reboot to ram dump on zygote crash loop for -eng builds" into main am: 7298b076e1
Original change: https://android-review.googlesource.com/c/platform/build/+/2963308

Change-Id: I1d12c2b3a554e4a60cd67647a50f54b4e3c773da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-18 14:44:48 +00:00
Treehugger Robot
7298b076e1 Merge "Disable reboot to ram dump on zygote crash loop for -eng builds" into main 2024-02-18 13:45:25 +00:00
Spandan Das
7416360cb3 Revert "Revert "Create a product variable for skipping apex cont..."
Revert submission 2966055-revert-2964509-skip-apex-contributions-EOKWOFHENC

Reason for revert: The root cause CL has been reverted https://googleplex-android-review.git.corp.google.com/c/platform/vendor/google/build/+/26268799

Reverted changes: /q/submissionid:2966055-revert-2964509-skip-apex-contributions-EOKWOFHENC

Change-Id: I9a40b652d38f1a4a4693e0cdb66cbe48632bafff
2024-02-17 03:31:51 +00:00
Treehugger Robot
d11fb36b2c Merge "Revert "Create a product variable for skipping apex contribution..."" into main am: cdf6054f03
Original change: https://android-review.googlesource.com/c/platform/build/+/2966055

Change-Id: Id31f9685f6edad909ae846280d4de18d1ac89121
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-17 02:29:38 +00:00
Treehugger Robot
cdf6054f03 Merge "Revert "Create a product variable for skipping apex contribution..."" into main 2024-02-17 02:24:02 +00:00
Treehugger Robot
3902cfc368 Merge "Revert "Create a product variable for skipping apex contribution..."" into main 2024-02-17 00:53:13 +00:00
Jihoon Kang
8804a8e2bd Revert "Create a product variable for skipping apex contribution..."
Revert submission 2964509-skip-apex-contributions

Reason for revert: 325666427

Reverted changes: /q/submissionid:2964509-skip-apex-contributions

Change-Id: I0172bdf99adce7b0eef42161c79cc7c1fdf977eb
2024-02-16 23:25:08 +00:00