Commit graph

50369 commits

Author SHA1 Message Date
Treehugger Robot
0d4833b18c Merge "Disable BannedThrow check" 2022-03-05 02:17:56 +00:00
Pirama Arumuga Nainar
b37ae58a3d Memory mapped coverage (take 2)
Add a build variable, CLANG_COVERAGE_CONTINUOUS_MODE, instead of
selecting based on paths.

Test: CLANG_COVERAGE_CONTINUOUS_MODE=true m and verify continuous mode works

Change-Id: I731172fc1f00e1cabff8efcf8b99f9a48210b446
2022-03-04 14:07:53 -08:00
Colin Cross
59c1e6ac0e Support experimental building with OpenJDK 17
Use EXPERIMENTAL_USE_OPENJDK17_TOOLCHAIN=true to build with OpenJDK 17
while still targeting java language version 11.

Bug: 219098645
Test: m EXPERIMENTAL_USE_OPENJDK17_TOOLCHAIN=true
Change-Id: I89fb04ecde4dbd1e102098f316692624dd67f8a2
2022-03-04 21:40:02 +00:00
Sam Gilbert
049af11112 Disable BannedThrow check
Bug: 222738070
Test: N/A
Change-Id: Id9d393c9b5c5c21d69c8b3a8d5456c66358426d9
2022-03-04 16:19:19 -05:00
Treehugger Robot
6e826bab74 Merge "prevent module being enabled if in existing BUILD file" am: fe86b81aab
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1999892

Change-Id: I0cca195fe44e4360006183a6d5c2203d5ea6bdde
2022-03-04 21:04:10 +00:00
Treehugger Robot
fe86b81aab Merge "prevent module being enabled if in existing BUILD file" 2022-03-04 20:37:21 +00:00
Paul Duffin
ea465fbd3b List bootclasspath_fragments in module-info.json
Bug: 202154151
Test: lunch aosp_cf_x86_64_phone-userdebug
      m out/target/product/vsoc_x86_64/module-info.json
Change-Id: I2bdb6783f7570d89f5c3150b39f1be920c2a8989
2022-03-04 18:44:47 +00:00
Sam Delmerico
9e3f98b8cf Merge "convert android_app certificate property, bp2build" am: d508a638c3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1980606

Change-Id: I38f798fa387b10288abb4250e9f941776e98088c
2022-03-04 17:56:28 +00:00
Sam Delmerico
d508a638c3 Merge "convert android_app certificate property, bp2build" 2022-03-04 17:30:31 +00:00
Kousik Kumar
1170739206 Merge "Allowlist stubby to be run within the path imposer" am: 376cd24d14
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2007970

Change-Id: If2f27a5e56021072dccc50742f0c8d29c59ef827
2022-03-04 16:28:16 +00:00
Kousik Kumar
376cd24d14 Merge "Allowlist stubby to be run within the path imposer" 2022-03-04 16:01:52 +00:00
Treehugger Robot
265f41c1dc Merge "Export binaries for shippedlibs and bom." am: 7010c53c50
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2003174

Change-Id: I5bd08c769c24638c068aed8f99e4d6d355fbfa74
2022-03-04 02:50:26 +00:00
Treehugger Robot
7010c53c50 Merge "Export binaries for shippedlibs and bom." 2022-03-04 02:23:38 +00:00
Christopher Parsons
43dc26bdab Merge "Report mkfile metrics with --mk-metrics" am: cb59ea7b2f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2007510

Change-Id: I57fc5494dd21a2178626dce1005379877e0520e0
2022-03-03 22:15:28 +00:00
Christopher Parsons
cb59ea7b2f Merge "Report mkfile metrics with --mk-metrics" 2022-03-03 21:51:29 +00:00
Chris Parsons
53f68ae3b8 Report mkfile metrics with --mk-metrics
Combined with roboleaf CI changes to pass this flag and subsequent
pipeline changes, this will allow basic mkfile metrics to be
dashboarded, which will help track mk2bp progress.

Bug: 217764943
Test: manual; verified mk_metrics.pb is generated iff --mk-metrics is
specified, used printproto on result

Change-Id: I348994b4d7e3479d0dc04de0276b94a702aac95b
2022-03-03 15:28:20 -05:00
Kousik Kumar
9eb43e26c4 Allowlist stubby to be run within the path imposer
To support using google prod credentials for Google developers, we need
to be able to make an RPC call to exchange credentials. This RPC call
needs to be issued via stubby and hence allowlisting the stubby binary.

dwillemsen@ also pointed out that this should be less effective for
other tools running within the build since network access is disabled
for the other tools anyway via sandboxing.

Bug: b/222484146
Change-Id: I29aec9576e86b9ed3051df7943404abd478c549b
2022-03-03 15:07:32 -05:00
Cole Faust
9d7a52dbde Merge "Fix include paths that match one file being included unconditionally" am: 560834669e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2004901

Change-Id: Ica5e38108d70452ade7df029f316f7e98495c219
2022-03-03 19:45:20 +00:00
Cole Faust
560834669e Merge "Fix include paths that match one file being included unconditionally" 2022-03-03 19:22:17 +00:00
Rob Seymour
912a9b7478 Merge "Add JSON module graph to dist" am: 5e0278ea96
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2006213

Change-Id: I4e1de159d478102f9dc13ee8167f2244aa54b8c8
2022-03-03 19:11:10 +00:00
Rob Seymour
5e0278ea96 Merge "Add JSON module graph to dist" 2022-03-03 18:47:51 +00:00
Liz Kammer
a1b33112b1 Merge "Export variant/features via soong_injection" am: 6e4cd27bec
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2000396

Change-Id: I6da248db7bca983d0ce5b121412f904e48f67a21
2022-03-03 18:36:17 +00:00
Liz Kammer
6e4cd27bec Merge "Export variant/features via soong_injection" 2022-03-03 18:11:25 +00:00
Ulya Trafimovich
22d87c16b1 Add markdown docs for dexpreopt.
Bug: 219442893
Change-Id: I61b6fbd6d1b9d62f87b98a8eb8cea7fd7ccfa77c
2022-03-03 17:08:25 +00:00
Trevor Radcliffe
ecdb9f701a Add support for privileged apps to androidmk
Fixes: 221894523
Test: Added unit tests
Test: Manual test
Change-Id: I2285e4e24d94d519ee68dde74edc2d4fb2120146
2022-03-03 15:22:08 +00:00
Charisee Chiw
927d949035 Merge "Update RustDefaultVersion to 1.59.0" am: 81be410e07
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2003172

Change-Id: Iac018fd040d943745086f0f48667409e2f1d216e
2022-03-03 05:15:33 +00:00
Charisee Chiw
81be410e07 Merge "Update RustDefaultVersion to 1.59.0" 2022-03-03 04:52:38 +00:00
Remi NGUYEN VAN
285ce79db5 Merge "Support overriding APEX java contents" am: 979b652dec
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2005472

Change-Id: Ic61f91405cdc67544468dd9431e2aad2cc1ad83b
2022-03-03 01:57:03 +00:00
Remi NGUYEN VAN
979b652dec Merge "Support overriding APEX java contents" 2022-03-03 01:26:19 +00:00
Rob Seymour
33cd10d745 Add JSON module graph to dist
Test: m json-module-graph dist nothing
Change-Id: I2a8a89cc5fb767365c9ba92dccc4509c41c6bbb5
2022-03-02 23:12:37 +00:00
Treehugger Robot
9688f00e3a Merge "ensure out/bazel_metrics exists before writing to cquery-buildroot_bazel_profile.gz" am: 7ed6612fa6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2004236

Change-Id: I9401f672367864c89afdee750fa910f9ba217409
2022-03-02 22:42:16 +00:00
Sam Delmerico
94d26c2bc0 prevent module being enabled if in existing BUILD file
If a module is enabled via the module-level allow list,
bp2buildModuleAlwaysConvertList, then we should error if that same
module is hidden by an existing BUILD file.

Bug: 220875679
Test: add a module in a directory covered by an existing BUILD file
Change-Id: I5426bd9edac593690c0989b68a421ac1c3216010
2022-03-02 22:15:14 +00:00
Treehugger Robot
7ed6612fa6 Merge "ensure out/bazel_metrics exists before writing to cquery-buildroot_bazel_profile.gz" 2022-03-02 22:14:16 +00:00
Cole Faust
93f8d3987a Fix include paths that match one file being included unconditionally
In aosp/1962181 an "optimization" was added where if an include
path with a variable only matches one file, that file would be
called directly instead of going through the whole _entry
variable.

This doesn't work when there is an inherit-product-if-exists call
that matches one file, but that file isn't the one that is specified
at runtime. In reality, the inherit-product-if-exists call should
see that the file doesn't exist and not include anything.

Fixes: 222341691
Test: go test
Change-Id: If8789de0013726137683078355161eecdec009b1
2022-03-02 13:31:30 -08:00
Usta Shrestha
902fd17a99 ensure out/bazel_metrics exists before writing to cquery-buildroot_bazel_profile.gz
Bug: 222133546
Test: `rm -rf out` then `USE_BAZEL_ANALYSIS m libnativehelper` and ensure 'out/bazel_metrics' exists
Change-Id: I6803aba830e1c40f3618bfc41109728d721fd2af
2022-03-02 15:27:49 -05:00
Charisee
5ddec43280 Update RustDefaultVersion to 1.59.0
bug: 215232614
Test: TreeHugger and compiling with m rust
Change-Id: Ia60c77637ab2e41844010e021656fad0870013ac
2022-03-02 19:54:47 +00:00
Cole Faust
a25eeab5e1 Merge "Convert add-product-dex-preopt-module-config to Starlark" am: fc74246c98
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2002770

Change-Id: Ic7d041f29438ef77a9395ec4e0ccfa0238a62149
2022-03-02 19:07:52 +00:00
Cole Faust
fc74246c98 Merge "Convert add-product-dex-preopt-module-config to Starlark" 2022-03-02 18:40:36 +00:00
Liz Kammer
cda3d14ad8 Merge "Improve clarity of arch decoding." am: b3fe72fc78
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2002771

Change-Id: Ibeb07556427c29a0d4a1a9b099b8c6b83783304a
2022-03-02 16:04:45 +00:00
Liz Kammer
b3fe72fc78 Merge "Improve clarity of arch decoding." 2022-03-02 15:44:26 +00:00
Remi NGUYEN VAN
be90172f0a Support overriding APEX java contents
In addition to the current "apps", support overriding
bootclasspath_fragments, systemserverclasspath_fragments, and java_libs.

This is useful to build APEXes with slightly different contents, for
example where the base APEX could contain libraries that only use stable
APIs, but the overriding APEX could contain a variant that also uses
non-finalized APIs.

Bug: 222247869
Test: m (runs apex tests)
Change-Id: I14da6f835c58b44be31e517598695ec8ff830648
2022-03-02 21:23:15 +09:00
Wei Li
171410478a Keep Bazel build file in build/bazel/vendor/google and prebuilts/bundletool.
Test: b test //build/bazel/tests/apex:build.bazel.examples.apex.minimal_mainline-module
Bug: 217838178

Change-Id: If94a2086db2a4afabe600b691f65b388ea19dcfe
2022-03-02 02:09:46 -08:00
Treehugger Robot
3807ca1cdf Merge "Revert "[cc_fuzz] Revert 'disable LTO' patches."" am: 5c8693f5d7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2004383

Change-Id: Iac444e44a508d443d533973b25d442c766ff5b8b
2022-03-02 05:33:43 +00:00
Treehugger Robot
5c8693f5d7 Merge "Revert "[cc_fuzz] Revert 'disable LTO' patches."" 2022-03-02 05:08:27 +00:00
Treehugger Robot
7148807eeb Merge "Fix issue with referencing the loop variable in a foreach" am: d5f7ad3fb4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2004753

Change-Id: I011c9f474b23404de69484cc7416b3be7bcce8ec
2022-03-02 03:52:23 +00:00
Treehugger Robot
60b02a09a5 Merge "Inline board configuration call into printvars call" am: 6028b556ec
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2002772

Change-Id: Iad8b3da5691dea461d5029afa41616d3a7ed4a9d
2022-03-02 03:52:14 +00:00
Treehugger Robot
d5f7ad3fb4 Merge "Fix issue with referencing the loop variable in a foreach" 2022-03-02 03:32:54 +00:00
Treehugger Robot
6028b556ec Merge "Inline board configuration call into printvars call" 2022-03-02 03:31:25 +00:00
Mitch Phillips
5007c4a06d Revert "[cc_fuzz] Revert 'disable LTO' patches."
Revert submission 1976512-revert-nolto-fuzzing

Reason for revert: b/222160662
Reverted Changes:
Iacee4fa29:[cc_fuzz] Revert 'disable LTO' patches.
Ic509b00a1:[cc_fuzz] Revert 'disable LTO' patches.
If85931f09:[cc_fuzz] Revert 'disable LTO' patches.

Change-Id: I84e01a4f84145e3331c2955836c8cc9bfa05c36b
2022-03-02 01:25:22 +00:00
Treehugger Robot
998e34c8fd Merge "[cc_fuzz] Revert 'disable LTO' patches." am: 6c0de9938e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1976512

Change-Id: I3c89bb0f399f3e898d9538ddc0e5fd9771348636
2022-03-02 00:11:53 +00:00