Treehugger Robot
1d6e69cda7
Merge "Export build flags to soong." into main am: 2ab031f467
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2803674
Change-Id: I4904c9cd21307c4d690f683b3c9c1ecdbc600052
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-08 04:44:06 +00:00
Treehugger Robot
2ab031f467
Merge "Export build flags to soong." into main
2023-11-08 04:15:17 +00:00
Inseob Kim
e4e85d5f9f
Export build flags to soong.
...
This exports a map of build flags used in this release config to Soong.
Bug: 302514918
Test: manual
Change-Id: Id95c03e14cfbb91c0cb9c8c37a065b8387733317
2023-11-08 04:01:38 +00:00
Treehugger Robot
9865ce419b
Merge "Only enable MLGO for ARM64 ThinLTO targets" into main am: 6a8eb37d90
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2817703
Change-Id: I7e49577418fdf4f564534f73b15e064318585df2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-08 03:32:00 +00:00
Treehugger Robot
6a8eb37d90
Merge "Only enable MLGO for ARM64 ThinLTO targets" into main
2023-11-08 02:51:16 +00:00
Treehugger Robot
0b7bebe722
Merge changes from topic "apex-elf-checker" into main am: a19c9141aa
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2817254
Change-Id: I312c558d2b589005319d9cbdcdd6dc99b1ab5837
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-08 02:19:26 +00:00
Treehugger Robot
a19c9141aa
Merge changes from topic "apex-elf-checker" into main
...
* changes:
Add check for unwanted_transitive_deps
Add JoinWithPrefixSuffixAndSeperator() utility
2023-11-08 01:50:01 +00:00
LaMont Jones
03dd1407e7
Merge "Readd support for PRODUCT_RELEASE_CONFIG_MAPS" into main am: 2e55729650
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2818662
Change-Id: Ie81297effd58fafc848d7bd73f52a6ce3664ea8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-07 20:18:25 +00:00
Treehugger Robot
c3e8223cc3
Merge "Create an apex_contributions module type" into main am: 29f5f2574d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2808370
Change-Id: Ib92c3cdf7add730d191f5fedf42b098eab3f6837
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-07 20:17:45 +00:00
LaMont Jones
2e55729650
Merge "Readd support for PRODUCT_RELEASE_CONFIG_MAPS" into main
2023-11-07 20:12:50 +00:00
Treehugger Robot
29f5f2574d
Merge "Create an apex_contributions module type" into main
2023-11-07 19:49:52 +00:00
Treehugger Robot
6d7c86862b
Merge "Sandbox nos genrules" into main am: 75f20f38b1
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2817729
Change-Id: I2e95661058cc7c29bde17169556fe4930f1f8263
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-07 19:39:40 +00:00
Treehugger Robot
75f20f38b1
Merge "Sandbox nos genrules" into main
2023-11-07 19:10:19 +00:00
LaMont Jones
9a9128610b
Readd support for PRODUCT_RELEASE_CONFIG_MAPS
...
This allows product config to determine what build flags are present in
a product's build, as well as their value.
As product config moves to a declarative specification, this can be
handled with less unnecessary work.
Bug: b/302593603, b/308849337, b/309477343
Test: manual
Change-Id: Ic0551990864bba6d03b6bf49fcfd4ae2523d9c6d
2023-11-07 18:39:40 +00:00
Anton Hansson
35f97155c7
Merge "Add a new flag to stop disabling lint errors" into main am: bf3e32d870
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2816560
Change-Id: Id9090e39d1a9716be323f4689a8678c98bceefe3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-07 16:27:05 +00:00
Anton Hansson
bf3e32d870
Merge "Add a new flag to stop disabling lint errors" into main
2023-11-07 16:01:29 +00:00
Anton Hansson
fd1c0d2eaa
Add a new flag to stop disabling lint errors
...
java_sdk_library has historically suppressed a few legitimate lint
errors. Make it possible to remove these suppressions via a flag.
Bug: 306806877
Test: checkapi
Merged-In: I10577dacbd7ea8063c6e1e02f3b6c60a2bee5094
Change-Id: I10577dacbd7ea8063c6e1e02f3b6c60a2bee5094
2023-11-07 10:14:50 +00:00
Yi Kong
0fa503da2e
Only enable MLGO for ARM64 ThinLTO targets
...
The MLGO model we embed in the Android Clang is trained on ARM64
ThinLTO artefacts. Applying the model across architectures does not
necessarily translate to performance improvement. Therefore only enable
the optimisation on ARM64 ThinLTO for now.
Test: presubmit
Bug: 293827654
Change-Id: Ie64a65c11191cf700a463637a0746c8470d3aa3c
2023-11-07 14:12:51 +09:00
Jooyung Han
55a7306aeb
Add check for unwanted_transitive_deps
...
apex.unwanted_transitive_deps can break the APEX when any of listed deps
is actually needed. To avoid that, a new validation is added to see if
"unwanted" deps are actually not used by any ELF files in the APEX.
The new validation runs only for non-test apexes with
unwanted_transitive_deps set because test apexes can be broken
intentionally.
Bug: 295593640
Test: m com.android.virt
Change-Id: I29a3f7ef76b59594a08cfacca4811f16bf7172cc
2023-11-07 13:09:56 +09:00
Jooyung Han
b0864e086e
Add JoinWithPrefixSuffixAndSeperator() utility
...
Bug: n/a
Test: m blueprint_tests
Change-Id: I0fa5d291ce10d699df787feaf9fdaf667aa22686
2023-11-07 13:08:53 +09:00
Colin Cross
8776383feb
Merge "Revert "Add support for PRODUCT_RELEASE_CONFIG_MAPS"" into main am: 216ed6c918
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2818083
Change-Id: I1233ec737f41c6b4696f7a3aaf08020966df1d97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-06 22:45:27 +00:00
Colin Cross
216ed6c918
Merge "Revert "Add support for PRODUCT_RELEASE_CONFIG_MAPS"" into main
2023-11-06 22:02:50 +00:00
Colin Cross
6a4fe68cc5
Revert "Add support for PRODUCT_RELEASE_CONFIG_MAPS"
...
Revert submission 2815850-product-flags
Reason for revert: b/309477343
Reverted changes: /q/submissionid:2815850-product-flags
Bug: 302593603
Bug: 309477343
Change-Id: I5b5a5ade1d85195c43377ed7639deba6eef86e23
2023-11-06 21:32:03 +00:00
LaMont Jones
ad2c83855c
Merge "Add support for PRODUCT_RELEASE_CONFIG_MAPS" into main am: 4c01bb49da
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2816262
Change-Id: Idadea60769f0b8093b453bfff8e6b3ddf8c177d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-06 14:33:26 +00:00
LaMont Jones
4c01bb49da
Merge "Add support for PRODUCT_RELEASE_CONFIG_MAPS" into main
2023-11-06 14:08:22 +00:00
Alyssa Ketpreechasawat
aa91b88610
Merge "Disable verify_overlaps test instead of hiddenapi check." into main am: 98e555c842
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2816955
Change-Id: I328905493dcc5c71bf88139fd80520f6259604a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-06 11:33:40 +00:00
Alyssa Ketpreechasawat
98e555c842
Merge "Disable verify_overlaps test instead of hiddenapi check." into main
2023-11-06 10:53:31 +00:00
Alyssa Ketpreechasawat
7daf2786b6
Disable verify_overlaps test instead of hiddenapi check.
...
Disabling hiddenapi check entirely can be dangerous and it might change the
accessibility of @hide Api too. We should only disable verify_overlaps
test which is required for module_sdk and apexes mismatch.
Test: atest CtsInlineMockingTestCases
Bug: 308187068
Bug: 307480026
Change-Id: I44f48e85d802b3a8f2711bc2047bdab721369f08
2023-11-06 09:49:16 +00:00
Cole Faust
9f9921cbc3
Sandbox nos genrules
...
go/roboleaf-busy-beavers-sandboxing
Bug: 307824623
Test: m nos_app_avb_service_genc++ nos_app_avb_service_genc++_headers nos_app_avb_service_genc++_mock nos_app_identity_service_genc++ nos_app_identity_service_genc++_headers nos_app_identity_service_genc++_mock nos_app_keymaster_service_genc++ nos_app_keymaster_service_genc++_headers nos_app_keymaster_service_genc++_mock nos_app_weaver_service_genc++ nos_app_weaver_service_genc++_headers nos_app_weaver_service_genc++_mock nos_generator_test_service_genc++ nos_generator_test_service_genc++_headers nos_generator_test_service_genc++_mock
Change-Id: Ic2c6ff1bbc0037c59b692fd76c9050521812989e
2023-11-03 16:29:21 -07:00
Spandan Das
0d53dd289e
Create an apex_contributions module type
...
This module type does not any build actions, but provides metadata about
the contributions of the mainline module to other mainline modules/
platform. One immediate use case for this metadata is source vs
prebuilts selection
Each mainline module can have more than 1 metadata modules. Static build
flags will be used to select the right one in trunk.bzl, next.bzl, ...
Bug: 308174923
Test: go build ./android
Change-Id: I5ead0c38fe64b78de08db1736d97a8ab7374d6d9
2023-11-03 22:33:02 +00:00
Cole Faust
35ac282ccc
Merge "Sandbox LTP genrules" into main am: 74639be8a7
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2815887
Change-Id: I102d26c40efe50a48aee7327246329a244e10e31
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-03 20:34:21 +00:00
Cole Faust
74639be8a7
Merge "Sandbox LTP genrules" into main
2023-11-03 20:16:00 +00:00
LaMont Jones
127127b608
Add support for PRODUCT_RELEASE_CONFIG_MAPS
...
This allows product config to determine what build flags are present in
a product's build, as well as their value.
As product config moves to a declarative specification, this can be
handled with less unnecessary work.
Bug: b/302593603
Bug: b/308849337
Test: manual
Change-Id: If57622059bb7d1c33df7498321db621c0c2d30c0
2023-11-03 19:19:59 +00:00
Almaz Mingaleev
243926a67a
Merge "Add java.util.random to the allowed package list." into main am: 92610e18e2
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2807678
Change-Id: I0e727522e851f280640447e320427b3c1fb8b378
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-03 14:38:36 +00:00
Almaz Mingaleev
92610e18e2
Merge "Add java.util.random to the allowed package list." into main
2023-11-03 14:05:16 +00:00
Michael Stokes
b2db840da2
Merge "Revert "Use R8 for resource shrinking"" into main am: 2e09e68e56
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2816956
Change-Id: Ibf81e57b1232525a43752ab7bfa5b8d3120719c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-03 12:51:21 +00:00
Michael Stokes
2e09e68e56
Merge "Revert "Use R8 for resource shrinking"" into main
2023-11-03 12:12:40 +00:00
Treehugger Robot
c080eb1d33
Merge "Update checkapi error message to provide more guidance" into main am: 0978d6a4b1
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2816954
Change-Id: I6a1fcce0c608632161c29eff6c73a3eccf6cf1eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-03 11:40:37 +00:00
Treehugger Robot
0978d6a4b1
Merge "Update checkapi error message to provide more guidance" into main
2023-11-03 11:13:02 +00:00
Rico Wind
a9fd59a7f2
Revert "Use R8 for resource shrinking"
...
Revert submission 2816534-r8resourceshrinking
Reason for revert: b/309075997
Reverted changes: /q/submissionid:2816534-r8resourceshrinking
Change-Id: Ic173491eaf22967fbad14fbcc85f6ddb2cf54d23
2023-11-03 10:26:38 +00:00
Rico Wind
fd74f8c693
Merge "Use R8 for resource shrinking" into main am: 4ea88503e4
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2813214
Change-Id: I830d027fdfa080ca4bd29c1e24795148a6d16649
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-03 08:09:07 +00:00
Rico Wind
4ea88503e4
Merge "Use R8 for resource shrinking" into main
2023-11-03 07:29:45 +00:00
Cole Faust
9cae593d97
Sandbox LTP genrules
...
gen_ltp_config used to read files from the source tree,
but this cl refactors it to package all the files it
needs into the tool itself, so it's more hermetic and
all the genrules don't need to explicitly list the files
the tool needs.
go/roboleaf-busy-beavers-sandboxing
Bug: 307824623
Test: diff'd the files produced by the ltp_config_* genrules before/after this change
Change-Id: Ia72084965dcb8659394068b7c6877adb1c882dc2
2023-11-02 22:23:01 -07:00
Treehugger Robot
f1ba71688c
Merge "Sandbox test apex genrules" into main am: 66135a79f4
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2816478
Change-Id: I30791e8c8ed1cac5eea1459d9f8bc1b7940e3f88
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-03 02:15:42 +00:00
Treehugger Robot
df1bcdca0e
Merge "Remove retrieveLegacyEncodedBootDexFiles" into main am: 81ac6e74df
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2816477
Change-Id: Ie1ac557250fb60091e003bd3416f29955b949ea6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-03 02:15:29 +00:00
Treehugger Robot
2ba836b13a
Merge "Remove UpdatableSystemFontTest modules from sandboxing denylist" into main am: ac8052b61f
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2816476
Change-Id: I95f1fb0334d7720a7cce25ab1d90c41f93adc2dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-11-03 02:15:05 +00:00
Treehugger Robot
66135a79f4
Merge "Sandbox test apex genrules" into main
2023-11-03 02:11:36 +00:00
Treehugger Robot
81ac6e74df
Merge "Remove retrieveLegacyEncodedBootDexFiles" into main
2023-11-03 01:46:13 +00:00
Treehugger Robot
ac8052b61f
Merge "Remove UpdatableSystemFontTest modules from sandboxing denylist" into main
2023-11-03 01:36:55 +00:00
Cole Faust
06e73446de
Sandbox test apex genrules
...
With the other cls in this topic, the modules build with sandboxing.
They still fail the genrule_sandobox_test.py because their builds are
non-deterministic though. I wasn't able to find the cause of the
non-determinism, so relying on presubmits to make sure nothing breaks.
Bug: 307824623
Test: m com.android.apex.test.bar_stripped com.android.apex.test.baz_stripped com.android.apex.test.foo_stripped com.android.apex.test.pony_stripped com.android.apex.test.sharedlibs_generated com.android.apex.test.sharedlibs_secondary_generated with sandboxing enabled
Change-Id: I4006732bf1ba08e846dee2e18d89dbf45f2cd7ba
2023-11-02 18:08:20 -07:00